Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm planning to run a PHP/MySQL application using Amazon Elastic Beanstalk. In the settings I can define when it should launch new instances automatically (Auto-Scaling).

However, as I understand this, this only creates new EC2-Instances and does not touch the RDS-Data-Layer (which I also configured in the settings).

Is there any way to auto-scale this RDS, with automated Read-Replicas or database size upgrade, or do I have to do this manually in some way?

share|improve this question

2 Answers 2

No, Elastic Beanstalk can only create new RDS instances (and I think that even this can only be done through the web interface). Elastic Beanstalk really only manages EC2 instances and does not directly manage RDS.

Note that RDS "scaling" is not seamless; an instance size change will result in some downtime as the underlying EC2 instance that the RDS DB is running on is basically being shut down and restarted.

share|improve this answer

Today we faced that problem.

We launched a mobile app that report continuously data to be saved in RDS MySQL, this resulted in a high performance impact, we were using db.t2.micro to take advantage the free tier.

I can confirm, Elastic Beanstalk does not autoscale RDS. However, the environment were re-configured and set other server for RDS, db.m3.medium, the process was smooth from the users, the database was able to continue serving read/write queries and the server was upgraded without downtime.

So, There is a way to perform a manual, but fast and easy scale, but there is not auto-scale.

Programatically, I think you can make some script to monitor your databases and do:

aws elasticbeanstalk --update-environment --environment-name <your-env-name> --option-settings Namespace=aws:rds:dbinstance,OptionName=DBInstanceClass,Value=db.m1.small
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.