nova/nova/scheduler
Matt Riedemann 901fb45421 Remove lock on SchedulerReportClient._create_client
This is a follow up to change Idf6e548d725db0181629a451f46b6a3a5850d186
where the compute API started lazy-loading the SchedulerReportClient
because of slow startup times, presumably because of the locking
when creating SchedulerReportClient.

The lock on SchedulerReportClient._create_client is removed
since there is no clear indication that it is necessary. It was
added in change I02ac615dc26a4a0d1fd28a638f622777e41d14e4 as a
precaution:

  "I've made the _client method synchronized so that in the unlikely event
   that the resource tracker is trying to do its update job while some
   other thing is happening, we won't waste the client. This may not be
   necessary, but probably doesn't harm anything."

Long-term we could consider making SchedulerReportClient a global
singleton so a TODO is left for that since it would require inspecting
cache-sensitive methods to see if a lock is necessary.

Change-Id: I127e8b78c0dfd5c42a1e1f509dc4fca1af3d5f89
Related-Bug: #1807219
Related-Bug: #1806912
2018-12-12 12:34:32 -05:00
..
client Remove lock on SchedulerReportClient._create_client 2018-12-12 12:34:32 -05:00
filters Remove the CachingScheduler 2018-10-18 17:55:36 -04:00
weights Change deprecated policies to policy 2018-07-27 02:20:30 +00:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
driver.py Remove the CachingScheduler 2018-10-18 17:55:36 -04:00
filter_scheduler.py Transform scheduler.select_destinations notification 2018-11-30 13:20:35 +01:00
host_manager.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
manager.py Use INFO for logging no allocation candidates 2018-09-27 10:58:30 -04:00
request_filter.py Honor availability_zone hint via placement 2018-05-22 08:56:50 -07:00
rpcapi.py Use long_rpc_timeout in select_destinations RPC call 2018-11-20 09:03:53 -05:00
utils.py Merge "Transform compute_task notifications" 2018-12-09 15:36:22 +00:00