@@ -131,12 +131,10 @@ There are many standard filter classes which may be used
131
131
If more than one value is found for a host (meaning the host is in two or more
132
132
different aggregates with different ratio settings), the minimum value will
133
133
be used.
134
- * |NumInstancesFilter | - filters compute nodes by number of running instances.
135
- Nodes with too many instances will be filtered.
136
- :oslo.config:option: `filter_scheduler.max_instances_per_host ` setting.
137
- Maximum number of instances allowed to run on this host. The host will be
134
+ * |NumInstancesFilter | - filters compute nodes by number of instances.
135
+ Nodes with too many instances will be filtered. The host will be
138
136
ignored by the scheduler if more than
139
- :oslo.config:option: `filter_scheduler.max_instances_per_host ` already exists
137
+ :oslo.config:option: `filter_scheduler.max_instances_per_host ` already exist
140
138
on the host.
141
139
* |AggregateNumInstancesFilter | - filters hosts by number of instances with
142
140
per-aggregate :oslo.config:option: `filter_scheduler.max_instances_per_host `
@@ -197,7 +195,10 @@ There are many standard filter classes which may be used
197
195
198
196
Now we can focus on these standard filter classes in some detail. Some filters
199
197
such as |AllHostsFilter | and |NumInstancesFilter | are relatively simple and can be
200
- understood from the code. For example, |NumInstancesFilter | has the following implementation::
198
+ understood from the code. For example, |NumInstancesFilter | has the following
199
+ implementation:
200
+
201
+ .. code-block :: python
201
202
202
203
class NumInstancesFilter (filters .BaseHostFilter ):
203
204
""" Filter out hosts with too many instances."""
@@ -212,7 +213,7 @@ understood from the code. For example, |NumInstancesFilter| has the following im
212
213
return passes
213
214
214
215
Here :oslo.config:option: `filter_scheduler.max_instances_per_host ` means the
215
- maximum number of instances that be active on a host.
216
+ maximum number of instances that can be on a host.
216
217
217
218
The |AvailabilityZoneFilter | looks at the availability zone of compute node
218
219
and availability zone from the properties of the request. Each compute service
0 commit comments