Previous topic

The cinder.scheduler.chance Module

Next topic

The cinder.scheduler.host_manager Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.scheduler.driver Module

Scheduler base class that all Schedulers should inherit from

class Scheduler

Bases: object

The base class that all Scheduler classes should inherit from.

get_host_list()

Get a list of hosts from the HostManager.

get_service_capabilities()

Get the normalized set of capabilities for the services.

hosts_up(context, topic)

Return the list of hosts that have a running service for topic.

schedule(context, topic, method, *_args, **_kwargs)

Must override schedule method for scheduler to work.

update_service_capabilities(service_name, host, capabilities)

Process a capability update from a service node.

cast_to_host(context, topic, host, method, update_db=True, **kwargs)

Generic cast to host

cast_to_volume_host(context, host, method, update_db=True, **kwargs)

Cast request to a volume host queue