Advanced Caching for High Traffic Website

April 11, 2014 2k views
Guys Need Some Help! what would you recommand for a high traffic wordpress website decided to go with highest plan in DO. need to face 25k real time traffic. (i mean 25k users will be, online in website) i thought to go with this nginx + memcached + varnish + w3totalcache any suggestions..
9 Answers
Spread the load over more droplets.

For nginx:
location / {
try_files $uri $uri/ /index.php?args;
expires max;

thanks for the quick reply mate :)

not familiar with these things :(

any detailed tutorial would be much appreciated.... :(
I use nginx + fastcgi_cache + php+fpm with zend opcache + memcached + w3totalcache (only for object cache and database cache).

bro any recommended tutorial for that installation please....

and have you changed any settings/config in ngnix or all defaults ?
4 clusters.
1 in AMS2;
1 in SGP1 and;
2 in NY2.

Each cluster contains (upgrade as needed):
1 Caching load balancer (2 cores, 4GB of RAM)
2 web servers (2 cores, 2GB of RAM each)
1 MySQL server (2 cores, 2GB of RAM)

Use private networking to let the droplets communicate with other droplets in the cluster.

Decide on a cluster that you want to push edits to and use rsync to keep the other clusters synced and are mirrors of eachother.

For DNS, use something like Dyn or Route53 to route traffic to the closest cluster and enable failover if a cluster goes offline.
hmm :) thanks a lot mate :) need to experiment some thing :)
I use nginx + fastcgi_cache + php+fpm + Xcache and MySQL query caching configurations.
@André Pereira da Silva, can you please share your MySQL query caching configurations please.. :)

My suggestion: Offload the heavy-weight traffic to a CDN. It will definitely solve some of your problems and you don't need to worry about traffic spikes (I don't have good experience with traffic spikes on droplets).

I can recommend KeyCDN or compare some CDNs at CDNCost

Have another answer? Share your knowledge.