diff options
| author | Jordan Rinke <jordan@openstack.org> | 2011-01-27 17:56:54 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-01-27 17:56:54 +0000 |
| commit | 05f49c2942d53e648f07300754fdd4338c0964cf (patch) | |
| tree | 50820c58750f431460d5ac44755dae4a1d05d5da | |
| parent | e70e9cdd4fe91d61cb5292699ff1ce20842bbc17 (diff) | |
| parent | 498171d2212f51185e9479da1222f0753acab779 (diff) | |
Changed cpu limit to a static value of 100000 (100%) instead of using the vcpu value of 1. There is no weight/limit variable now so I see no other solution than the static max limit.
| -rw-r--r-- | Authors | 1 | ||||
| -rw-r--r-- | nova/virt/hyperv.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -24,6 +24,7 @@ Joe Heck <heckj@mac.com> Joel Moore <joelbm24@gmail.com> John Dewey <john@dewey.ws> Jonathan Bryce <jbryce@jbryce.com> +Jordan Rinke <jordan@openstack.org> Josh Durgin <joshd@hq.newdream.net> Josh Kearney <josh.kearney@rackspace.com> Joshua McKenty <jmckenty@gmail.com> diff --git a/nova/virt/hyperv.py b/nova/virt/hyperv.py index 5afa3221d..29d18dac5 100644 --- a/nova/virt/hyperv.py +++ b/nova/virt/hyperv.py @@ -191,7 +191,7 @@ class HyperVConnection(object): vcpus = long(instance['vcpus']) procsetting.VirtualQuantity = vcpus procsetting.Reservation = vcpus - procsetting.Limit = vcpus + procsetting.Limit = 100000 # static assignment to 100% (job, ret_val) = vs_man_svc.ModifyVirtualSystemResources( vm.path_(), [procsetting.GetText_(1)]) |
