Fix docs for IsolatedHostsFilter
The docs were using variable names from the filter code rather
than the actual config options.
Change-Id: I2694b32e9c90ad098101e41e4e3ae36ddafd8d0f
Related-Bug: #1746483
(cherry picked from commit 60bbec15ed
)
This commit is contained in:
parent
4c6443c0b5
commit
c1dfe464bb
|
@ -514,6 +514,7 @@ configuration options. For example:
|
|||
|
||||
.. code-block:: ini
|
||||
|
||||
[filter_scheduler]
|
||||
isolated_hosts = server1, server2
|
||||
isolated_images = 342b492c-128f-4a42-8d3a-c5088cf27d13, ebd267a6-ca86-4d6c-9a0e-bd132d6b7d09
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ There are many standard filter classes which may be used
|
|||
fall back to the global default ``cpu_allocation_ratio``. If more than one value
|
||||
is found for a host (meaning the host is in two different aggregates with
|
||||
different ratio settings), the minimum value will be used.
|
||||
* |IsolatedHostsFilter| - filter based on ``image_isolated``, ``host_isolated``
|
||||
* |IsolatedHostsFilter| - filter based on ``isolated_images``, ``isolated_hosts``
|
||||
and ``restrict_isolated_hosts_to_isolated_images`` flags.
|
||||
* |JsonFilter| - allows simple JSON-based grammar for selecting hosts.
|
||||
* |RamFilter| - filters hosts by their RAM. Only hosts with sufficient RAM
|
||||
|
@ -236,9 +236,9 @@ enabled and operational.
|
|||
Now we are going to |IsolatedHostsFilter|. There can be some special hosts
|
||||
reserved for specific images. These hosts are called **isolated**. So the
|
||||
images to run on the isolated hosts are also called isolated. The filter
|
||||
checks if ``image_isolated`` flag named in instance specifications is the same
|
||||
as the host. Isolated hosts can run non isolated images if the flag
|
||||
``restrict_isolated_hosts_to_isolated_images`` is set to false.
|
||||
checks if ``isolated_images`` flag named in instance specifications is the same
|
||||
as the host specified in ``isolated_hosts``. Isolated hosts can run non-isolated
|
||||
images if the flag ``restrict_isolated_hosts_to_isolated_images`` is set to false.
|
||||
|
||||
|DifferentHostFilter| - method ``host_passes`` returns ``True`` if the host to
|
||||
place an instance on is different from all the hosts used by a set of instances.
|
||||
|
|
Loading…
Reference in New Issue