cinder/cinder/scheduler
Gorka Eguileor a130387b45 Short-circuit notifications when not enabled
When running Cinder with notifications disabled we are still doing all
the work and calls to Oslo message notifier and it's there, at the very
last moment when it's going to send the message that it checks that
there's no actual extension loaded in the driver manager and skips the
actual send of the data.

This is considerably wasteful considering that for some of the
notifications we are actually querying the DB to get data, for example
volume attachments and glance metadata information when notifying about
volume usage.

This patch proposes short-circuiting notification methods as much as
possible to optimize code execution when Cinder has no notification
transport mechanism configured, as is the case when deployed as a
standalone SDS service.

Closes-Bug: #1660303
Change-Id: I77f655d3ef90088ce71304da5d4ea7b543991e90
2017-01-30 12:31:45 +01:00
..
evaluator Avoid Forcing the Translation of Translatable Variables 2016-12-25 12:43:45 +00:00
filters Cosmetic changes to scheduler 2016-12-14 17:48:53 +01:00
flows Short-circuit notifications when not enabled 2017-01-30 12:31:45 +01:00
weights Fix CapacityWeiger to accept None volume type 2016-09-02 11:56:55 +02:00
__init__.py Files with no code must be left completely empty 2016-09-28 16:29:30 +07:00
base_filter.py Add logging when filtering returns nothing 2016-07-05 07:26:04 -04:00
base_handler.py Move oslo-incubator's scheduler module to cinder 2015-11-24 15:49:31 +01:00
base_weight.py Move oslo-incubator's scheduler module to cinder 2015-11-24 15:49:31 +01:00
driver.py Make notify_service_capabilities cluster aware 2017-01-20 10:44:35 +01:00
filter_scheduler.py Fix volume manage 2017-01-17 19:08:12 +01:00
host_manager.py Make notify_service_capabilities cluster aware 2017-01-20 10:44:35 +01:00
manager.py Merge "Fix volume manage" 2017-01-23 23:36:29 +00:00
rpcapi.py Merge "Add assert_min_rpc_version decorator" 2017-01-26 08:58:57 +00:00
scheduler_options.py Logging not using oslo.i18n guidelines (scheduler) 2015-04-22 15:24:20 -05:00