Commit 6a13306a authored by Walter Heck's avatar Walter Heck

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

parent f2b5d69a
......@@ -92,13 +92,13 @@ class ASG():
scale_to = self.get_current_scale(active_asg)
logging.info("Scaling ASG down")
logging.info("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):
logging.info("Waiting for instances in ASG to terminate")
logging.info("Waiting for instances in ASG '{}' to terminate".format(inactive_asg))
sleep(10)
logging.info("Scaling ASG back up")
logging.info("Scaling ASG '{}' back up to ({}, {}, {})".format(inactive_asg, scale_to['min'], scale_to['max'], scale_to['desired']))
self.scale(
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