From c1e397b7465e92e4021d4f542e9edc16c624d1f3 Mon Sep 17 00:00:00 2001 From: Dina Belova Date: Mon, 9 Apr 2012 16:59:45 +0400 Subject: [PATCH] Information about DifferentHostFilter and SameHostFilter added. Change-Id: Ice5f03db5f3d24455c43af86bf5722b863cbe959 --- doc/source/devref/filter_scheduler.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/source/devref/filter_scheduler.rst b/doc/source/devref/filter_scheduler.rst index 9f51462d3bc3..1a7be47cb6af 100644 --- a/doc/source/devref/filter_scheduler.rst +++ b/doc/source/devref/filter_scheduler.rst @@ -42,6 +42,10 @@ There are some standard filter classes to use (:mod:`nova.scheduler.filters`): enough available RAM. * |SimpleCIDRAffinityFilter| - allows to put a new instance on a host within the same IP block. +* |DifferentHostFilter| - allows to put the instance on a different host from a + set of instances. +* |SameHostFilter| - puts the instance on the same host as another instance in + a set of of instances. Now we can focus on these standard filter classes in details. I will pass the simplest ones, such as |AllHostsFilter|, |CoreFilter| and |RamFilter| are, @@ -87,6 +91,13 @@ 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. +|DifferentHostFilter| - its method `host_passes` returns `True` if host to +place instance on is different from all the hosts used by set of instances. + +|SameHostFilter| does the opposite to what |DifferentHostFilter| does. So its +`host_passes` returns `True` if the host we want to place instance on is one +of the set of instances uses. + |SimpleCIDRAffinityFilter| looks at the subnet mask and investigates if the network address of the current host is in the same sub network as it was defined in the request. @@ -243,3 +254,5 @@ in :mod:`nova.tests.scheduler`. .. |JsonFilter| replace:: :class:`JsonFilter ` .. |RamFilter| replace:: :class:`RamFilter ` .. |SimpleCIDRAffinityFilter| replace:: :class:`SimpleCIDRAffinityFilter ` +.. |DifferentHostFilter| replace:: :class:`DifferentHostFilter ` +.. |SameHostFilter| replace:: :class:`SameHostFilter `