From f3a6de6a1647b1d86e9d8750228536663b23cd3e Mon Sep 17 00:00:00 2001 From: Qiu Yu Date: Thu, 20 Jun 2013 19:49:20 +0800 Subject: Add AggregateRamFilter Implements blueprint per-aggregate-resource-ratio * AggregateRamFilter to support per-aggregate ram_allocation_ratio * Falls back to global setting if per-aggregate value not found DocImpact Change-Id: I93e069f0ac3f595d9a2a17119274c7bfbe8fca31 --- doc/source/devref/filter_scheduler.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') diff --git a/doc/source/devref/filter_scheduler.rst b/doc/source/devref/filter_scheduler.rst index 1a5ed11a2..6cde0d61c 100644 --- a/doc/source/devref/filter_scheduler.rst +++ b/doc/source/devref/filter_scheduler.rst @@ -78,6 +78,11 @@ There are some standard filter classes to use (:mod:`nova.scheduler.filters`): * |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. +* |AggregateRamFilter| - filters hosts by RAM with per-aggregate + ram_allocation_ratio setting. If no per-aggregate value is found, it will + fall back to the global default ram_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. * |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 @@ -285,6 +290,7 @@ in :mod:`nova.tests.scheduler`. .. |IsolatedHostsFilter| replace:: :class:`IsolatedHostsFilter ` .. |JsonFilter| replace:: :class:`JsonFilter ` .. |RamFilter| replace:: :class:`RamFilter ` +.. |AggregateRamFilter| replace:: :class:`AggregateRamFilter ` .. |SimpleCIDRAffinityFilter| replace:: :class:`SimpleCIDRAffinityFilter ` .. |GroupAntiAffinityFilter| replace:: :class:`GroupAntiAffinityFilter ` .. |DifferentHostFilter| replace:: :class:`DifferentHostFilter ` -- cgit