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:
- https://code.i-harness.com/en/q/1373c4c
- https://forums.aws.amazon.com/thread.jspa?threadID=240756&tstart=0
- https://docs.aws.amazon.com/pt_br/autoscaling/ec2/userguide/as-suspend-resume-processes.html
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.