airavata-courses / spring17-laravel-portal

Web Portal to experiment with Load Balancing
Apache License 2.0
4 stars 2 forks source link

Strategy for spawning & managing spot instances? #7

Closed Ameya05 closed 7 years ago

mjaglan commented 7 years ago

Taking this part.

Ameya05 commented 7 years ago

@marpierc @smarru Hello professors, I was trying to set up an autoscale group in AWS, but looks like I do not have permissions to do so. I could configure the settings, but the AWS wizard fails when "Creating launch configuration Failure" I am also unable to see the AutoScaling group dashboard which leads me to believe it is a permission issue.

Ameya05 commented 7 years ago

The Autoscale group is setup and running in Ohio.

One question which popped in my mind regarding spot instance is, considering the fact that these can get shutdown anytime and the Autoscale group will try to get another EC2 instance - We need a way to initialize this newly spawned EC2 instance with our application.

I know that on next deployment trigger, our application will get deployed to this instance. But prior to that we will be down 1 service inspite of having a Box up and running.

anujbhan commented 7 years ago

Use the userdata script

On Feb 2, 2017 2:22 AM, "Ameya Advankar" notifications@github.com wrote:

The Autoscale group is setup and running in Ohio.

One question which popped in my mind regarding spot instance is, considering the fact that these can get shutdown anytime and the Autoscale group will try to get another EC2 instance - We need a way to initialize this newly spawned EC2 instance with our application.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/airavata-courses/spring17-laravel-portal/issues/7#issuecomment-276886049, or mute the thread https://github.com/notifications/unsubscribe-auth/AOOY4QtRpvWtsFAF9e7vXknwJkgpoQQ4ks5rYYQogaJpZM4LwI-c .

mjaglan commented 7 years ago

FYI. For reference: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html