Merge "[config-ref] add Compute cell scheduling filters"

This commit is contained in:
Jenkins 2016-06-19 15:44:44 +00:00 committed by Gerrit Code Review
commit a993ae49c3
1 changed files with 31 additions and 6 deletions

View File

@ -62,6 +62,8 @@ see `Evacuate instances <http://docs.openstack.org/admin-guide/
compute-node-down.html#evacuate-instances>`_ section of the
OpenStack Administrator Guide.
.. _compute-scheduler-filters:
Filter scheduler
~~~~~~~~~~~~~~~~
@ -70,11 +72,6 @@ is the default scheduler for scheduling virtual machine instances.
It supports filtering and weighting to make informed decisions on
where a new instance should be created.
.. _compute-scheduler-filters:
Filters
~~~~~~~
When the filter scheduler receives a request for a resource, it first
applies filters to determine which hosts are eligible for consideration
when dispatching a resource. Filters are binary: either a host is
@ -113,7 +110,10 @@ service. The default filters are:
scheduler_default_filters = RetryFilter, AvailabilityZoneFilter, RamFilter, ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, ServerGroupAntiAffinityFilter, ServerGroupAffinityFilter
The following sections describe the available filters.
Compute filters
~~~~~~~~~~~~~~~
The following sections describe the available compute filters.
AggregateCoreFilter
-------------------
@ -801,6 +801,31 @@ Dynamically limits hosts to one instance type. An instance can only be
launched on a host, if no instance with different instances types
are running on it, or if the host has no running instances at all.
Cell filters
~~~~~~~~~~~~
The following sections describe the available cell filters.
DifferentCellFilter
-------------------
Schedules the instance on a different cell from a set of instances.
To take advantage of this filter, the requester must pass a scheduler hint,
using ``different_cell`` as the key and a list of instance UUIDs as the value.
ImagePropertiesFilter
---------------------
Filters cells based on properties defined on the instances image.
This filter works specifying the hypervisor required in the image
metadata and the supported hypervisor version in cell capabilities.
TargetCellFilter
----------------
Filters target cells. This filter works by specifying a scheduler
hint of ``target_cell``. The value should be the full cell path.
.. _weights:
Weights