Refrence:
[OpenStack Orchestration In Depth]
https://developer.rackspace.com/blog/openstack-orchestration-in-depth-part-1-introduction-to-heat/
[Heat Orchestration Template]
http://docs.openstack.org/developer/heat/template_guide/hot_spec.html
[OpenStack Resource Types and Properties]
http://docs.openstack.org/developer/heat/template_guide/openstack.html
[Deploying Services in SUSE by heat]
http://www.susecon.com/doc/2014/sessions/HO5893.pdf
[HOT examples]
https://github.com/openstack/heat-templates/tree/master/hot
orchestration by openstack heat 05-A-auto scaling
OS::Heat::AutoScalingGroup
root@node-6:~/heat/auto-scale# cat instance.yaml
root@node-6:~/heat/auto-scale# cat asg_of_stacks.yaml
查看scale的web hook url
如果有独立的监控系统,OS::Heat::ScalingPolicy的alarm url属性,是个非常有意义的实现。
root@node-6:~/heat/auto-scale# openstack stack output show asg-stack --all
扩容集群规模
root@node-6:~/heat/auto-scale# curl -X POST 'http://192.168.32.8:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3A828076867d8242c98423c6064a7f4e6e%3Astacks%2Fasg-stack%2Ffee39f2c-cfb9-466e-a331-d087b385cc36%2Fresources%2Fscale_up_policy?Timestamp=2017-01-09T09%3A35%3A37Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=83737133a505471493d4d88bebbdbb0d&SignatureVersion=2&Signature=eCgV6KfQv%2FKSUsE6yPuULdWBwljHi7dHHn9rzrSS4wg%3D'
收缩集群规模
root@node-6:~# curl -X POST 'http://192.168.32.8:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3A828076867d8242c98423c6064a7f4e6e%3Astacks%2Fasg-stack%2Ffee39f2c-cfb9-466e-a331-d087b385cc36%2Fresources%2Fscale_dn_policy?Timestamp=2017-01-09T09%3A35%3A37Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=61ef2253f40e4962a3e8c4def51d0def&SignatureVersion=2&Signature=NQx9BDE1Gf5GcZDvVjmPACwHhKv5ZwyR8xNxp%2BKErtY%3D'
root@node-6:~/heat/auto-scale# openstack stack resource list asg-stack -n 1