This Page

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

The nova.scheduler.vsa Module

VSA Simple Scheduler

nova.scheduler.vsa.BYTES_TO_GB(bytes)
nova.scheduler.vsa.GB_TO_BYTES(gb)
class nova.scheduler.vsa.VsaScheduler(*args, **kwargs)

Bases: nova.scheduler.simple.SimpleScheduler

Implements Scheduler for volume placement.

host_selection_algorithm(request_spec, all_hosts, selected_hosts, unique)

Must override this method for VSA scheduler to work.

schedule_create_volume(context, volume_id, *_args, **_kwargs)

Picks the best host based on requested drive type capability.

schedule_create_volumes(context, request_spec, availability_zone=None, *_args, **_kwargs)

Picks hosts for hosting multiple volumes.

class nova.scheduler.vsa.VsaSchedulerLeastUsedHost(*args, **kwargs)

Bases: nova.scheduler.vsa.VsaScheduler

Implements VSA scheduler to select the host with least used capacity of particular type.

host_selection_algorithm(request_spec, all_hosts, selected_hosts, unique)
class nova.scheduler.vsa.VsaSchedulerMostAvailCapacity(*args, **kwargs)

Bases: nova.scheduler.vsa.VsaScheduler

Implements VSA scheduler to select the host with most available capacity of one particular type.

host_selection_algorithm(request_spec, all_hosts, selected_hosts, unique)