Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b8c9b426
authored
2 years ago
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
celery hotplug mem and vcpu set
parent
494675f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
vmdriver.py
+15
-0
No files found.
vmdriver.py
View file @
b8c9b426
...
@@ -550,6 +550,21 @@ def migrate(name, host, live=False):
...
@@ -550,6 +550,21 @@ def migrate(name, host, live=False):
bandwidth
=
0
)
bandwidth
=
0
)
# return _parse_info(domain.info())
# return _parse_info(domain.info())
@celery.task
@req_connection
@wrap_libvirtError
def
hotplug_memset
(
name
,
memory
):
"""Hotplug (live) memory set to max mem limit"""
domain
=
lookupByName
(
name
)
domain
.
setMemory
(
memory
)
@celery.task
@req_connection
@wrap_libvirtError
def
hotplug_vcpuset
(
name
,
vcpu
):
"""Hotplug (live) vcpu set to max vcpu limit"""
domain
=
lookupByName
(
name
)
domain
.
setVcpus
(
vcpu
)
@celery.task
@celery.task
@req_connection
@req_connection
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment