My experience in using Varnish Cache to load-balancing a LiteSpeed Shared Hosting with VPS from RamNode – So here it is the time to be honest with you my fellow readers. This blog is originally hosted at CrocWeb on a shared hosting environment powered with LiteSpeed and pure SSD. Why didn’t I host it on my own VPS (while most of this blog’s guide are about setting up vps)? Good question! Firstly because I have spare account at CrocWeb which is still valid for 3 years ahead. Secondly because CrocWeb is a good company with good reputation and great server performance. But then the more-than-3-days-downtime occurred. The downtime was caused by massive DDOS attack on all CrocWeb’s server. It was so pain painful.
So I decided “that’s it, it’s time to move“.
But then their servers were up after 3 days and they sent me email offering free 3 months credit. Also, starting from that point they have been implementing to use BlackLotus technology to prevent such DDOS attacks ever happen again (recently the infrastructure has upgraded to 400 Gbps of additional internal capacity to improve network resiliency).
So I started to re-think of leaving CrocWeb.
Then comes the solution and idea to use a combination of Shared Hosting and VPS as load balancing. So this is what I currently use for this blog:
- CrocWeb Shared Hosting (as main host for all files)
- RamNode 512MB SSD VPS (as second host for all files)
- RamNode 128MB SSD VPS (as main MYSQL server)
- RamNode 256MB SSD VPS (running Varnish Cache as Load Balancing server)
- Iniz 128MB VPS (as mirror MYSQL server)
- GreenValueHost 768MB VPS (as mirror server to backup all files)
The software / technology used:
- CrocWeb : LiteSpeed with SSD
- Varnish Cache
- MYSQL : with master and slave replication
- Rsync : to sync all files between servers
The Services used:
- CrocWeb Shared Hosting
- GreenValueHost (because it is a spare account)
- CloudNS (Free solid DNS hosting)
How to setup all of those?
It will be too long to explain here but I promise you I will sometime write a tutorial / guide about how to setup load balancing using Varnish Cache. However it will not be exactly as mine but all practical steps you can follow, even for newbies.
Comments / Issues ?
Found any issues while accessing this blog? Please do not hesitate to report it to me. Thanks in advanced.