Scheduler Service
Bases: manila.manager.Manager
Chooses a host to create shares.
Get a list of hosts from the HostManager.
Get active pools from the scheduler’s cache.
Get the normalized set of capabilities for this zone.
Ensure that the host exists and can accept the share.
Process a capability update from a service node.
Scheduler base class that all Schedulers should inherit from
Bases: object
The base class that all Scheduler classes should inherit from.
Get a list of hosts from the HostManager.
Must override schedule method for scheduler to work.
Get the normalized set of capabilities for the services.
Must override schedule method for migration to work.
Return the list of hosts that have a running service for topic.
Must override schedule method for scheduler to work.
Must override schedule method for scheduler to work.
Must override schedule method for scheduler to work.
Process a capability update from a service node.
Set the host and set the updated_at field of a consistency group.
Returns: | A CG with the updated fields set properly. |
---|
Set the host and set the scheduled_at field of a share.
Returns: | A Share with the updated fields set properly. |
---|
Simple Scheduler
Bases: manila.scheduler.chance.ChanceScheduler
Implements Naive Scheduler that tries to find least loaded host.
Picks a host that is up and has the fewest shares.