summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorPhil Day <philip.day@hp.com>2013-05-03 17:21:35 +0100
committerPhil Day <philip.day@hp.com>2013-05-10 16:49:06 +0100
commit76f24ac1c750d4e04673db201c315e226b2aa596 (patch)
treec14caee06d22bcdd0df892986dfe21f9ca8c198f /nova/utils.py
parent3303ef95e425f9dc5d295a41ca79de40841b81a6 (diff)
downloadnova-76f24ac1c750d4e04673db201c315e226b2aa596.tar.gz
nova-76f24ac1c750d4e04673db201c315e226b2aa596.tar.xz
nova-76f24ac1c750d4e04673db201c315e226b2aa596.zip
Adds useful debug logging to filter_scheduler
On a large system (>500 hosts) the amount of logging information if everything is at DEBUG is vasts, due to the number of hosts checked for each filter However at the moment some useful information is only available within the filter's debug entrys (such as parts of the request_spec). Also instance uuids are not logged making it hard to search for instance entries. This set of changes allows it to be used in a very large install with debug turned off for everything except nova.filters Specifically: - Log.Info the instance_uuids at the start of schedule - Log.debug the request_spec at the start of schedule - Log.debug hosts in weighted order - Log.info which host has been allocated to a specific instance_uuid - Log.debug how many hosts are returned by each filter To get a count from each filter nova.filters had to be changed to generate a list after each filter rather than building a recursive generator object. Although this new approach is less elegant it does provide simple and useful insight into the behaviour of the filters, and s the impact on execution time on a system with several hundred hosts and 10 filters was negligible Change-Id: Ibbdd14f87b1dfd3cee8bf3cf6388e40b474e530a
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions