yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #96205
[Bug 2117701] [NEW] Nova speed up for periodic update_available_resource
Public bug reported:
Currently nova's compute/manager.py will perform a periodic update for
every instance in its update_available_resource method.
The current implementation has several inefficiencies that can be
squashed leading to less API calls/messages and a faster loop iteration.
The general issue is we are iterating over nodes regardless of whether
we need too or not. We only need to iterate over all the nodes if we a
reshape is required and the current node if the provider_tree was
updated.
https://github.com/openstack/nova/blob/master/nova/compute/resource_tracker.py#L1390
Instead we should make use of the driver_reshape variable
https://github.com/openstack/nova/blob/master/nova/compute/resource_tracker.py#L1329
in addition to whether the provider_tree has changed to decide whether
to iterate over the node.
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2117701
Title:
Nova speed up for periodic update_available_resource
Status in OpenStack Compute (nova):
New
Bug description:
Currently nova's compute/manager.py will perform a periodic update for
every instance in its update_available_resource method.
The current implementation has several inefficiencies that can be
squashed leading to less API calls/messages and a faster loop
iteration.
The general issue is we are iterating over nodes regardless of whether
we need too or not. We only need to iterate over all the nodes if we a
reshape is required and the current node if the provider_tree was
updated.
https://github.com/openstack/nova/blob/master/nova/compute/resource_tracker.py#L1390
Instead we should make use of the driver_reshape variable
https://github.com/openstack/nova/blob/master/nova/compute/resource_tracker.py#L1329
in addition to whether the provider_tree has changed to decide whether
to iterate over the node.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2117701/+subscriptions