cinder.scheduler.scheduler_options module

SchedulerOptions monitors a local .json file for changes and loads it if needed. This file is converted to a data structure and passed into the filtering and weighing functions which can use it for dynamic configuration.

class SchedulerOptions

Bases: object

SchedulerOptions monitors a local .json file for changes.

The file is reloaded if needed and converted to a data structure and passed into the filtering and weighing functions which can use it for dynamic configuration.

get_configuration(filename=None) dict

Check the json file for changes and load it if needed.