diff options
author | Yassine Lamgarchal <yassine.lamgarchal@enovance.com> | 2013-08-02 16:44:54 +0200 |
---|---|---|
committer | Yassine Lamgarchal <yassine.lamgarchal@enovance.com> | 2013-08-21 10:36:33 +0200 |
commit | 35925e5d280412028362f5be87a66fbc3f6532e9 (patch) | |
tree | 3d16408d9fffccbb2bb7c6d4c4fc088823836d16 /doc | |
parent | c6d5325ef64b5abe9b1e3b37c03816ed8c3dbb6f (diff) | |
download | nova-35925e5d280412028362f5be87a66fbc3f6532e9.tar.gz |
Add flag to make IsolatedHostsFilter less restrictive
This patch allows to run 'isolated' and 'non isolated'
images on isolated hosts by adding a flag
'restrict_isolated_hosts_to_isolated_images'.
If the flag is set to True then 'non isolated' images
can't be run on isolated hosts (same behaviour as the
current filter) otherwise they can be run on isolated
hosts.
DocImpact
blueprint improve-isolatedhostsfilter
Change-Id: I8c092caf32c05be88a547a7e8cb0530cc4925080
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/devref/filter_scheduler.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/source/devref/filter_scheduler.rst b/doc/source/devref/filter_scheduler.rst index a5a0ef988c..9b75ab4a44 100644 --- a/doc/source/devref/filter_scheduler.rst +++ b/doc/source/devref/filter_scheduler.rst @@ -79,8 +79,8 @@ There are some standard filter classes to use (:mod:`nova.scheduler.filters`): 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 differenet aggregate with different ratio settings), the minimum value will be used. -* |IsolatedHostsFilter| - filter based on ``image_isolated`` and ``host_isolated`` - flags. +* |IsolatedHostsFilter| - filter based on ``image_isolated``, ``host_isolated`` + 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 to host the instance are passed. @@ -166,7 +166,8 @@ 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. This Scheduler checks if ``image_isolated`` flag named in instance specifications is the same -that the host has. +that the host has. Isolated hosts can run non isolated images if the flag +``restrict_isolated_hosts_to_isolated_images`` is set to false. |DifferentHostFilter| - its method ``host_passes`` returns ``True`` if host to place instance on is different from all the hosts used by set of instances. |