Monday, August 3, 2015

AWS autoscaling groups for a fixed number of instances

AWS autoscaling groups are a way to scale capacity up and down when it is needed. However, autoscaling groups are a great way to just keep a fixed number of instances alive. Let's say we have an app that we always want two instances of running. If one of them dies, it would nice to automatically restart it. To do this, simply create an autoscaling group with a fixed size:
"myautoscalinggroup" : {
   "Type" : "AWS::AutoScaling::AutoScalingGroup",
   "Properties" : {
      "DesiredCapacity" : 2,
      "MinSize" : 2,
      "MaxSize" : 2,
   }
Now Amazon does the heavy lifting for us, and we'll always have a pool of two instances.

4 comments:

  1. Hey just wanted to give you a quick heads up. The text in your article seem to be running off the screen in Safari. I'm not sure if this is a formatting issue or something to do with browser compatibility but I figured I'd post to let you know. The design and style look great though! Hope you get the issue fixed soon. Thanks

    ReplyDelete
  2. The blog was really amazing, Your writing skills are really amazing.
    Keep posting for us.
    Also, want Best Software Development Company in Noida, then kindly click on the given link.

    ReplyDelete