Strategies to disconnect instances linked to Amazon Elastic Beanstalk

Asked

Viewed 110 times

3

I’m looking for alternatives to shut down managed applications via Elastic Beanstalk for a few hours daily in order to reduce costs with AWS.

My current setting is:

  • EB type "load Balancing" with auto scaling of at least 1 and at most 2 instances;
  • ELB type "application";
  • RDS instance for the database.

EB apparently does not have this functionality via console, the closest I found is the "Terminate" option, which eliminates all configuration performed - it is not what I want. Therefore, I tried to disconnect the instances individually. RDS is ok but the EC2 instance does not work because of the autoscaling (Beanstalk eliminates it and creates a new one). In relation to Load Balancer also found nothing to turn it off.

Searching for possible solutions I found the following links:

I thought about suspend autoscaling "Replaceunhealthy" action to disable the closure of unhealthy instances and the creation of new ones to replace them, in parallel configure the disconnection of the EC2 instance and the RDS at the desired times. As for the DHD I found no alternative to the temporary shutdown.

I ask for help to analyze the feasibility of such a strategy and possible consequences unwanted and/or sharing some alternative to perform the shutdowns of instances in the current configuration.

Grateful.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.