Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. heat_template_version: 2013-05-23
  2. parameters: {}
  3. resources:
  4. G1:
  5. properties:
  6. cooldown: 60
  7. desired_capacity: 2
  8. max_size: 3
  9. min_size: 1
  10. resource: {type: scaling.yaml}
  11. type: OS::Heat::AutoScalingGroup
  12. SP1_scale_in:
  13. properties:
  14. adjustment_type: change_in_capacity
  15. auto_scaling_group_id: {get_resource: G1}
  16. cooldown: 60
  17. scaling_adjustment: '-1'
  18. type: OS::Heat::ScalingPolicy
  19. SP1_scale_out:
  20. properties:
  21. adjustment_type: change_in_capacity
  22. auto_scaling_group_id: {get_resource: G1}
  23. cooldown: 60
  24. scaling_adjustment: 1
  25. type: OS::Heat::ScalingPolicy
  26. down_notification:
  27. properties: {address: 'http://ubuntu:9890/v1.0/vnfs/a590f513-54f4-41fb-855c-6fca3d5f1e08/vdu_lcpu_usage_scaling_in/SP1-in/38wd29e7',
  28. type: webhook}
  29. type: OS::Monasca::Notification
  30. up_notification:
  31. properties: {address: 'http://ubuntu:9890/v1.0/vnfs/a590f513-54f4-41fb-855c-6fca3d5f1e08/vdu_hcpu_usage_scaling_out/SP1-out/1vujnggu',
  32. type: webhook}
  33. type: OS::Monasca::Notification
  34. vdu_hcpu_usage_scaling_out:
  35. properties:
  36. alarm_actions:
  37. - {get_resource: up_notification}
  38. description: utilization greater_than 10%
  39. expression:
  40. str_replace:
  41. params: {scale_group_id: SG1}
  42. template: avg(cpu.utilization_perc{scale_group=scale_group_id}) > 10 times
  43. 1
  44. match_by: [scale_group]
  45. name: hcpu_util
  46. severity: high
  47. type: OS::Monasca::AlarmDefinition
  48. vdu_lcpu_usage_scaling_in:
  49. properties:
  50. alarm_actions:
  51. - {get_resource: down_notification}
  52. description: utilization less_than 50%
  53. expression:
  54. str_replace:
  55. params: {scale_group_id: SG1}
  56. template: avg(cpu.utilization_perc{scale_group=scale_group_id}) < 5 times
  57. 1
  58. match_by: [scale_group]
  59. name: lcpu_util
  60. severity: low
  61. type: OS::Monasca::AlarmDefinition
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement