35 lines
695 B
YAML
35 lines
695 B
YAML
# Sample scaling policy that can be attached to a cluster
|
|
# This policy scales out a cluster when a threshold alarm on ceilometer
|
|
# reaches alarm state
|
|
|
|
policy_type: ScalingPolicy
|
|
version: 1.0
|
|
|
|
alarm:
|
|
type: SENLIN::ALARM::CEILOMETER
|
|
properties:
|
|
meter: cpu_util
|
|
op: lt
|
|
threshold: 15
|
|
period: 60
|
|
evaluations: 1
|
|
repeat: True
|
|
|
|
schedule:
|
|
start_time: "2015-05-07T07:00:00Z"
|
|
end_time: "2015-06-07T07:00:00Z"
|
|
|
|
handlers:
|
|
- type: webhook
|
|
action: SENLIN::ACTION::RESIZE
|
|
params:
|
|
type: CHANGE_IN_CAPACITY
|
|
number: -1
|
|
strategy: BEST_EFFORT
|
|
credentials:
|
|
user: john
|
|
password: secrete
|
|
- type: email
|
|
addresses:
|
|
- joe@cloud.com
|