heat_template_version: '2013-05-23' resources: alarm_1: properties: alarm_actions: - get_attr: [server_1_scaling_1, alarm_url] comparison_operator: gt evaluation_periods: 1 meter_name: cpu_util period: 60 query: - field: metadata.user_metadata.stack_id op: eq value: {get_param: 'OS::stack_id'} - {field: metadata.user_metadata.resource_name, op: eq, value: server_1} statistic: avg threshold: 80 type: OS::Ceilometer::Alarm alarm_2: properties: alarm_actions: - get_attr: [server_1_scaling_2, alarm_url] comparison_operator: lt evaluation_periods: 1 meter_name: cpu_util period: 60 query: - field: metadata.user_metadata.stack_id op: eq value: {get_param: 'OS::stack_id'} - {field: metadata.user_metadata.resource_name, op: eq, value: server_1} statistic: avg threshold: '20' type: OS::Ceilometer::Alarm server_1: properties: desired_capacity: 1 max_size: 10 min_size: 1 resource: properties: flavor: m1.small image: precise-server-cloudimg-amd64 key_name: id_rsa metadata: metering.resource_name: server_1 metering.stack_id: {get_param: 'OS::stack_id'} networks: - {network: d5dc235a-5373-4aaa-bf76-88ffbbb7295c} user_data: {get_resource: config} user_data_format: RAW type: OS::Nova::Server type: OS::Heat::AutoScalingGroup server_1_scaling_1: properties: adjustment_type: change_in_capacity auto_scaling_group_id: {get_resource: server_1} cooldown: 300 scaling_adjustment: 1 type: OS::Heat::ScalingPolicy server_1_scaling_2: properties: adjustment_type: change_in_capacity auto_scaling_group_id: {get_resource: server_1} cooldown: 300 scaling_adjustment: '-1' type: OS::Heat::ScalingPolicy
heat_template_ version: '2013-05-23' actions: 1_scaling_ 1, alarm_url] n_operator: gt n_periods: 1 user_metadata. stack_id user_metadata. resource_ name, op: eq, value: server_1} :Alarm actions: 1_scaling_ 2, alarm_url] n_operator: lt n_periods: 1 user_metadata. stack_id user_metadata. resource_ name, op: eq, value: server_1} :Alarm capacity: 1 server- cloudimg- amd64
metering. resource_ name: server_1
metering. stack_id: {get_param: 'OS::stack_id'} 5373-4aaa- bf76-88ffbbb729 5c}
user_ data: {get_resource: config}
user_ data_format: RAW :AutoScalingGro up 1_scaling_ 1: t_type: change_in_capacity scaling_ group_id: {get_resource: server_1} adjustment: 1 :ScalingPolicy 1_scaling_ 2: t_type: change_in_capacity scaling_ group_id: {get_resource: server_1} adjustment: '-1' :ScalingPolicy
resources:
alarm_1:
properties:
alarm_
- get_attr: [server_
compariso
evaluatio
meter_name: cpu_util
period: 60
query:
- field: metadata.
op: eq
value: {get_param: 'OS::stack_id'}
- {field: metadata.
statistic: avg
threshold: 80
type: OS::Ceilometer:
alarm_2:
properties:
alarm_
- get_attr: [server_
compariso
evaluatio
meter_name: cpu_util
period: 60
query:
- field: metadata.
op: eq
value: {get_param: 'OS::stack_id'}
- {field: metadata.
statistic: avg
threshold: '20'
type: OS::Ceilometer:
server_1:
properties:
desired_
max_size: 10
min_size: 1
resource:
properties:
flavor: m1.small
image: precise-
key_name: id_rsa
metadata:
networks:
- {network: d5dc235a-
type: OS::Nova::Server
type: OS::Heat:
server_
properties:
adjustmen
auto_
cooldown: 300
scaling_
type: OS::Heat:
server_
properties:
adjustmen
auto_
cooldown: 300
scaling_
type: OS::Heat: