Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- heat_template_version: 2013-05-23
- parameters: {}
- resources:
- G1:
- properties:
- cooldown: 60
- desired_capacity: 2
- max_size: 3
- min_size: 1
- resource: {type: scaling.yaml}
- type: OS::Heat::AutoScalingGroup
- SP1_scale_in:
- properties:
- adjustment_type: change_in_capacity
- auto_scaling_group_id: {get_resource: G1}
- cooldown: 60
- scaling_adjustment: '-1'
- type: OS::Heat::ScalingPolicy
- SP1_scale_out:
- properties:
- adjustment_type: change_in_capacity
- auto_scaling_group_id: {get_resource: G1}
- cooldown: 60
- scaling_adjustment: 1
- type: OS::Heat::ScalingPolicy
- down_notification:
- properties: {address: 'http://ubuntu:9890/v1.0/vnfs/a590f513-54f4-41fb-855c-6fca3d5f1e08/vdu_lcpu_usage_scaling_in/SP1-in/38wd29e7',
- type: webhook}
- type: OS::Monasca::Notification
- up_notification:
- properties: {address: 'http://ubuntu:9890/v1.0/vnfs/a590f513-54f4-41fb-855c-6fca3d5f1e08/vdu_hcpu_usage_scaling_out/SP1-out/1vujnggu',
- type: webhook}
- type: OS::Monasca::Notification
- vdu_hcpu_usage_scaling_out:
- properties:
- alarm_actions:
- - {get_resource: up_notification}
- description: utilization greater_than 10%
- expression:
- str_replace:
- params: {scale_group_id: SG1}
- template: avg(cpu.utilization_perc{scale_group=scale_group_id}) > 10 times
- 1
- match_by: [scale_group]
- name: hcpu_util
- severity: high
- type: OS::Monasca::AlarmDefinition
- vdu_lcpu_usage_scaling_in:
- properties:
- alarm_actions:
- - {get_resource: down_notification}
- description: utilization less_than 50%
- expression:
- str_replace:
- params: {scale_group_id: SG1}
- template: avg(cpu.utilization_perc{scale_group=scale_group_id}) < 5 times
- 1
- match_by: [scale_group]
- name: lcpu_util
- severity: low
- type: OS::Monasca::AlarmDefinition
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement