CAPÍTULO III LA EMOCIÓN
5.11 DIRECCIÓN DE LA COMUNICACIÓN
You define which filters you would like the scheduler to use in the
sched ul er_d efaul t_fi l ters option (/etc/no va/no va. co nf file; you must have either ro o t or no va user permissions). Filters can be added or removed.
By default, the following filters are configured to run in the scheduler:
No t e
Some filters use information in parameters passed to the instance in the no va bo o t command. For more information on the command, see the "Command-Line Interface Reference" in
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/.
All available filters are listed in the following table.
scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter ,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,Server GroupAntiAffinityFilter,ServerGroupAffinityFilter
Filt er Descrip t io n AggregateCoreFilter
Uses the host-aggregate metadata key
cpu_al l o cati o n_rati o to filter out hosts exceeding the over-commit ratio (virtual CPU to physical CPU allocation ratio); only valid if a host aggregate is specified for the instance.
If this ratio is not set, the filter uses the cpu_al l o cati o n_rati o value in the
/etc/no va/no va. co nf file. The default value is '16.0' (16 virtual CPU can be allocated per physical CPU).
AggregateDiskFilter
Uses the host-aggregate metadata key
d i sk_al l o cati o n_rati o to filter out hosts exceeding the over-commit ratio(virtual disk to physical disk allocation ratio); only valid if a host aggregate is specified for the instance.
If this ratio is not set, the filter uses the d i sk_al l o cati o n_rati o value in the
/etc/no va/no va. co nf file. The default value is '1.0' (one disk can be allocated for each physical CPU).
AggregateImagePropertiesIs olation
Only passes hosts in host aggregates whose metadata matches the instance's image metadata; only valid if a host aggregate is specified for the instance. For more
information, see Section 1.1, “ Create an Image”. AggregateInstanceExtraSpe
csFilter
Metadata in the host aggregate must match the host's flavor metadata. For more information, see Section 3.4, “ Update Flavor Metadata”.
AggregateMultiTenancyIsol ation
A host with the specified fi l ter_tenant_i d can only contain instances from that tenant (project). No t e: The tenant can still place instances on other hosts.
AggregateRamFilter
Uses the host-aggregate metadata key
ram_al l o cati o n_rati o to filter out hosts exceeding the over commit ratio (virtual RAM to physical RAM allocation ratio); only valid if a host aggregate is specified for the instance.
If this ratio is not set, the filter uses the ram_al l o cati o n_rati o value in the
/etc/no va/no va. co nf file. The default value is '1.5' (1.5 RAM can be allocated for each physical RAM).
AllHostsFilter Passes all available hosts (however, does not disable other filters).
AvailabilityZ oneFilter Filters using the instance's specified availability zone.
ComputeCapabilitiesFilter Ensures Compute metadata is read correctly. Anything before the ':' is read as a namespace. For example, 'quota:cpu_period' uses 'quota' as the namespace and 'cpu_period' as the key.
ComputeFilter Passes only hosts that are operational and enabled.
CoreFilter Uses the cpu_al l o cati o n_rati o in the
/etc/no va/no va. co nf file to filter out hosts exceeding the over commit ratio(virtual CPU to physical CPU
allocation ratio). The default value is '16.0' (16 virtual CPU can be allocated per physical CPU).
DifferentHostFilter Enables an instance to build on a host that is different from one or more specified hosts. Specify 'different' hosts using the no va bo o t option --d i fferent_ho st option.
DiskFilter Uses d i sk_al l o cati o n_rati o in the
/etc/no va/no va. co nf file to filter out hosts exceeding the over commit ratio(virtual disk to physical disk allocation ratio). The default value is '1.0' (one disk can be allocated for each physical CPU).
ImagePropertiesFilter Only passes hosts that match the instance's image properties. For more information, see Section 1.1, “ Create an Image”.
IsolatedHostsFilter Passes only isolated hosts running isolated images that are specified in the /etc/no va/no va. co nf file using isolated_hosts and isolated_images (comma-separated values).
JsonFilter
Recognises and uses an instance's custom JSON filters:
Valid operators are: =, <, >, in, <=, >=, not, or, and Recognised variables are: $free_ram_mb,
$free_d i sk_mb, $to tal _usabl e_ram_mb,
$vcpus_to tal , $vcpus_used
The filter is specfied as a query hint in the no va bo o t command. For example:
--hi nt q uery= ' [' >= ' , ' $free_d i sk_mb' , 20 0 * 10 24 ]'
MetricFilter Filters out hosts with unavailable metrics.
RamFilter Uses ram_al l o cati o n_rati o in the
/etc/no va/no va. co nf file to filter out hosts exceeding the over commit ratio (virtual RAM to physical RAM
allocation ratio). The default value is '1.5' (1.5 RAM can be
Filt er Descrip t io n
RetryFilter Filters out hosts that have failed a scheduling attempt; valid if sched ul er_max_attempts is greater than zero (by default,sched ul er_max_attempts= 3).
SameHostFilter
Passes one or more specified hosts; specify hosts for the instance using the --hint same_host option for no va bo o t.
ServerGroupAffinityFilter
Only passes hosts for a specific server group:
Give the server group the affinity policy (no va server-g ro up-create --po l i cy affi ni ty server-groupName).
Build the instance with that group (no va bo o t option --hi nt g ro up= UUID).
ServerGroupAntiAffinityFilter
Only passes hosts in a server group that do not already host an instance:
Give the server group the anti-affinity policy (no va server-g ro up-create --po l i cy anti -affi ni ty groupName).
Build the instance with that group (no va bo o t option --hi nt g ro up= UUID).
SimpleCIDRAffinityFilter
Only passes hosts on the specified IP subnet range specified by the instance's ci d r and
bui l d _new_ho st_i p hints. Example:
--hi nt bui l d _near_ho st_i p= 19 2. 0 . 2. 0 --hi nt ci d r= /24
Filt er Descrip t io n