0025c345f6
This patch added best-effort option to both ScalingInPolicy and ScalingOutPolicy. If user defines this option to True, scaling policy will resize the cluster to its minimum or maximum size when scaling count breaks the size limitation. Change-Id: I2270855fd967e1a76c2cbd1278b6305a95c62063 Implements: blueprint scaling-policy-simple
23 lines
815 B
Python
23 lines
815 B
Python
# Sample scaling policy that can be attached to a cluster
|
|
|
|
adjustment:
|
|
# Adjustment type, valid values include:
|
|
# EXACT_CAPACITY, CHANGE_IN_CAPACITY, CHANGE_IN_PERCENTAGE
|
|
type: CHANGE_IN_CAPACITY
|
|
|
|
# A number that will be interpreted based on the type setting
|
|
# Define negative number for scaling in policy and positive
|
|
# number for scaling out policy.
|
|
number: 1
|
|
|
|
# When type is set CHNAGE_IN_PERCENTAGE, min_step specifies
|
|
# that the cluster size will be changed by at least the number
|
|
# of nodes specified here.
|
|
min_step: 1
|
|
|
|
# When scaling operation will break the size limitation of
|
|
# cluster, whether to do best effort scaling, e.g. decrease
|
|
# cluster size to min_size or increase cluster size to max_size
|
|
# Default False means reject scaling request directly.
|
|
best_effort: True
|