summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2012-11-15 18:08:07 +0000
committerChris Behrens <cbehrens@codestud.com>2013-05-27 18:28:02 +0000
commit7a5ed3e76766596e45716d0fc05ff1e6e9199213 (patch)
treee10f8de59c7c3a6d6df8b40ccf9dae8736c020e4 /etc
parent719ec4725eb7ae458810cbd2be0eb4a2cb5edf9d (diff)
downloadnova-7a5ed3e76766596e45716d0fc05ff1e6e9199213.tar.gz
nova-7a5ed3e76766596e45716d0fc05ff1e6e9199213.tar.xz
nova-7a5ed3e76766596e45716d0fc05ff1e6e9199213.zip
Cells: Add filtering and weight support
This adds filtering and weighing support to the cells scheduler. Adds the following config options to the 'cells' group: scheduler_filter_classes -- list of filter classes scheduler_weight_classes -- list of weight classes Adds a couple of weighing modules as defaults (which removes the random cell selection): ram_by_instance_type: Select cells with the most capacity for the instance type being requested. weight_offset: Allows modifying the DB to weight a particular cell (useful for disabling a cell) Adds a filter class (TargetCellFilter) that allows specifying a scheduler hint to direct a build to a particular cell if you're an admin. DocImpact Implements blueprint cells-filter-scheduler Change-Id: I027c5734e3d6134127fcd4dd28b8ff39047416dc
Diffstat (limited to 'etc')
-rw-r--r--etc/nova/policy.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/nova/policy.json b/etc/nova/policy.json
index 26a227ae2..6dde9ed4e 100644
--- a/etc/nova/policy.json
+++ b/etc/nova/policy.json
@@ -3,6 +3,7 @@
"admin_or_owner": "is_admin:True or project_id:%(project_id)s",
"default": "rule:admin_or_owner",
+ "cells_scheduler_filter:TargetCellFilter": "is_admin:True",
"compute:create": "",
"compute:create:attach_network": "",