ServerMom’s New Server Setup
|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
- Apache
- Varnish Cache
- MYSQL : with master and slave replication
- Rsync : to sync all files between servers
The Services used:
- CrocWeb Shared Hosting
- Ramnode
- Iniz
- GreenValueHost (because it is a spare account)
- CloudNS (Free solid DNS hosting)
- Incapsula
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.
hey could you write a tutorial about how to host a website like you.
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)
I wanna host my website in different server how could i
Congratulation for the new web layout. Looks really nice 🙂
Thanks. It’s Point from MyThemeShop.com 🙂
Hi, I’m curious about this guide. Can you guide me sharedhosting and vps combination is not?
thank you
The basic is still the same as long as your shared hosting supports SSH
thanks much Sawiyati you are N1 teacher for newbie or babies as you says .. i didn’t leave any topic without reading it .. you helped me much to establish my “un-managed” vps and install panels on it “some time Zpanel or Vestapanel”…
this topic especially is very important cause after of searching for weeks for a “baby” 😛 tutorials for how to make a load balancing for our servers but i didn’t found what i searched for.so i hope to continue in this series ..especially “Rsync : to sync all files between servers”
but for now i use a dns service “i use cloudflare ♥” for load balancing
my main shared host on “hostgator”
and my other vps on “Digitalocean”
so i created a new “@” record my my dns manager pointed to my new vps server ip
so it like this
@ —> my first ip server
another @—–> my second ip server
and it works and some visitors go to server 1 and other sent to server 2
but does it randomly or sequential ?
Yes. You can send me an email through the installation guide?
Hello,
Can you make guide on, how to make a setup like this?
I definitely hope to see that MySQL master – slave setup explained. 🙂
Please send me the setup details i need to update my servers for more liability and performance
Nice availability scenario. However, I believe that, since 4 VPSs were needed, you could simply had a fifth and replace your shared hosting package that would have given a small boost on your files’ side when it comes to CHOICE A routing from load balancer, compared to the shared package.
I plan to do so since my shared hosting will expire soon. Thanks for the tip George
hi mom. what virtualization of vps you’re using on ramnode?
Obviously OVZ 🙂
hi mom, why you using rsync for data synchronization? how about i/o? I think it’s better to using mountfs or glusterfs 🙂
because it is simple. I/O is stable so far because the files synced are not too many. Plus, rsync only sync changes not all files.