How to scale MySQL with multiple machines?
Posted
by erotsppa
on Stack Overflow
See other posts from Stack Overflow
or by erotsppa
Published on 2009-04-24T14:36:44Z
Indexed on
2010/05/06
1:08 UTC
Read the original article
Hit count: 413
I have a web app running LAMP. We recently have an increase in load and is now looking at solutions to scale. Scaling apache is pretty easy we are just going to have multiple multiple machines hosting it and round robin the incoming traffic.
However, each instance of apache will talk with MySQL and eventually MySQL will be overloaded. How to scale MySQL across multiple machines in this setup? I have already looked at this but specifically we need the updates from the DB available immediately so I don't think replication is a good strategy here? Also hopefully this can be done with minimal code change.
PS. We have around a 1:1 read-write ratio.
© Stack Overflow or respective owner