Autoscaling your webserver tier is typically straightforward.
Image your Apache server with source code or without, then sync
down files from S3 upon spinup. Roll that image into the
autoscale configuration and you’re all set.
With the database tier though, things can be a bit tricky. The
typical configuration we see is to have a single master database
where your application writes. But scaling out or horizontally on
Amazon EC2 should be as easy as adding more slaves, right? Why
not automate that process?
Below we’ve set out to answer some of the questions you’re likely to face when setting up slaves against your master. We’ve included instructions on building an AMI that automatically spins up as a slave. Fancy!
- How Can I Autoscale My Database Tier?
Step 1: Build an auto-starting MySQL slave against your master.
Step 2: Configure those to …
[Read more]