summaryrefslogtreecommitdiffstats
path: root/doc/source
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-09-20 20:28:58 +0000
committerGerrit Code Review <review@openstack.org>2012-09-20 20:28:58 +0000
commit1ec8b5d06cf5f5ff0dc0e2a5318ccfc05756d2a4 (patch)
tree8cf08e5bde5f4c701892e0684b532ff074fe133e /doc/source
parent779690d119409c736f1716670dfee61499e10816 (diff)
parent611ee3b213409d07f2569ce8d600fb0ec105d4be (diff)
downloadnova-1ec8b5d06cf5f5ff0dc0e2a5318ccfc05756d2a4.tar.gz
nova-1ec8b5d06cf5f5ff0dc0e2a5318ccfc05756d2a4.tar.xz
nova-1ec8b5d06cf5f5ff0dc0e2a5318ccfc05756d2a4.zip
Merge "Added description of operators for extra_specs"
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/devref/filter_scheduler.rst25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/source/devref/filter_scheduler.rst b/doc/source/devref/filter_scheduler.rst
index 18b392089..62909a6e1 100644
--- a/doc/source/devref/filter_scheduler.rst
+++ b/doc/source/devref/filter_scheduler.rst
@@ -36,9 +36,34 @@ There are some standard filter classes to use (:mod:`nova.scheduler.filters`):
host compute service satisfy any extra specifications associated with the
instance type (that have no scope, see |TrustedFilter| for details). It
passes hosts that can create the specified instance type.
+
+ The extra specifications can have an operator at the beginning of the value
+ string of a key/value pair. If there is no operator specified, then a
+ default operator of 's==' is used. Valid operators are:
+
+::
+
+ * = (equal to or greater than as a number; same as vcpus case)
+ * == (equal to as a number)
+ * != (not equal to as a number)
+ * >= (greater than or equal to as a number)
+ * <= (less than or equal to as a number)
+ * s== (equal to as a string)
+ * s!= (not equal to as a string)
+ * s>= (greater than or equal to as a string)
+ * s> (greater than as a string)
+ * s<= (less than or equal to as a string)
+ * s< (less than as a string)
+ * <in> (substring)
+ * <or> (find one of these)
+
+ Examples are: ">= 5", "s== 2.1.0", "<in> gcc", and "<or> fpu <or> gpu"
+
* |AggregateInstanceExtraSpecsFilter| - checks that the aggregate metadata
satisfies any extra specifications associated with the instance type (that
have no scope). It passes hosts that can create the specified instance type.
+ The extra specifications can have the same operators as
+ |ComputeCapabilityFilter|.
* |ComputeFilter| - passes all hosts that are operational and enabled.
* |CoreFilter| - filters based on CPU core utilization. It passes hosts with
sufficient number of CPU cores.