Ansible 2 Cloud Automation Cookbook by Aditya Patawari

Ansible 2 Cloud Automation Cookbook by Aditya Patawari

Author:Aditya Patawari [Aditya Patawari]
Language: eng
Format: epub
Tags: COM091000 - COMPUTERS / Cloud Computing, COM088000 - COMPUTERS / System Administration / General, COM043000 - COMPUTERS / Networking / General
Publisher: Packt
Published: 2018-06-20T05:27:18+00:00


How it works...

The preceding task creates an instance group with an initial size of two instances, defined by size. We have named port 80 as HTTP. This can be used by other GCE components to route traffic. We have used the template that we created in the previous recipe. We also enable autoscaling with a policy to allow scaling up to five instances. At any given point, at least two instances would be running. We are scaling on two parameters, cpu_utilization, where 0.6 would trigger scaling after the utilization exceeds 60% and load_balancing_utilization where the scaling will trigger after 80% of the requests per minutes capacity is reached. Typically, when an instance is booted, it might take some time for initialization and startup. Data collected during that period might not make much sense. The parameter, cool_down_period, indicates that we should start collecting data from the instance after 90 seconds and should not trigger scaling based on data before.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.