Commit 5f158cc5 authored by Afraz Ahmadzadeh's avatar Afraz Ahmadzadeh

Merge branch 'add_asg_update_logging' into 'master'

Update to add a bit more useful logging for scaling up and down

See merge request !17
parents f2b5d69a 6a13306a
......@@ -92,13 +92,13 @@ class ASG():
scale_to = self.get_current_scale(active_asg)"Scaling ASG down")"Scaling ASG '{}' down to ({}, {}, {})".format(inactive_asg, 0, 0, 0))
self.scale(inactive_asg, 0, 0, 0)
while not self.asg_is_empty(inactive_asg):"Waiting for instances in ASG to terminate")"Waiting for instances in ASG '{}' to terminate".format(inactive_asg))
sleep(10)"Scaling ASG back up")"Scaling ASG '{}' back up to ({}, {}, {})".format(inactive_asg, scale_to['min'], scale_to['max'], scale_to['desired']))
auto_scaling_group_id = inactive_asg,
min_size = scale_to['min'],
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment