-1

Sorry, if my question looks too general, but I am looking for an answers to specific problems that I listed below and would appriciate any help.

My website is growing in popularity and I would like to provide a consistant service for my users. Now I have 3 servers and using a cloud storage for static files (like design, javascript and CSS)

server architecture

Here is the problem I have:

If webserver falls, everything falls.

I am using nginx and I was thinking of buying additional servers to scale my web server, but I have about 100 GB of user uploaded text files, user avatars etc. How do I sync all of this between several servers then? Or do I need a separate server as a storage for those files, images? How are those kind of problems solved?

A link to a good book on the topic would be appriciated as well.

Technologies I use: php-fpm, nginx, mysql (percona)

Temnovit
  • 1,107
  • 6
  • 19
  • 27
  • http://highscalability.com/ - a boatload of mostly useful and entertaining information. And yes, the question is too broad. – Deer Hunter Sep 19 '14 at 08:07

1 Answers1

2

Add HAProxy to your stack

2x small servers for HAProxy (with keepalived)

2x (or more!) web servers

for storage I would investigate into Ceph and GlusterFS

Feel free to comment on my reply so we can zero down in the problem.

thanasisk
  • 941
  • 6
  • 16