New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Recommend how to setup anycast/CDN/anti-DDoS/load balancing for cP shared hosting server?
Hello,
having Linux server with cPanel for public shared hosting reselling, is it good idea to setup some anycast/loadbalancing network in case i need:
- DDoS protection
- enhanced caching (maybe Nginx proxy? Currently i need to stick to Apache on my hosting server, but does not mean i can setup some proxy right?)
- load balancing (seems no to be easy as i have not found any good tutorial to load balance cPanel shared hosting server, so any other CDN/Anycast type of the way?)
- content of the client's websites be served as close to the visitors as possible (multiple points of presence)
Please what do you suggest regarding points i mentioned, any tutorials or google phrases, so i find more info targeted on my usage case (public cpanel shared hosting server)? Thank You
Comments
DDoS Protection: Always a good idea.
Nginx: You will run into countless issues. Also cPanel does not support nginx. If you can spent monty on Litespeed, do it.
Load Balancing: cPanel does not support Loadbalancing/HA, period. However, JetApps are working on providing this functionality. Their ETA is 4~ months, so we'll see.
Just have you users use CDN or CloudFlare.
CloudLinux + OptimumCache enabled + memcache for caching
There is an NGINX module I believe. I'm not sure about it though, since I've never used it
FYI, There is Nginx/cPanel integration. Just nothing official from cPanel.
is it even possible to load balance cpanel? You have to have a license for each cpanel install - so if you have two geographically dispersed VPSs that you manage to sync using e.g. rsync or other - you'll still need two cpanel licenses - so it can get expensive. Perhaps better to look at e.g. Sentora or webmin with Nginx - then duplicate in multiple DCs and use e.g. rsync or Keepalived / floating IPs for HA. As for DDOS protection, you could put all domains through e.g. Cloudflare.
See this: https://assets.digitalocean.com/articles/high_availability/ha-diagram-animated.gif
https://www.digitalocean.com/community/tutorials/how-to-create-a-high-availability-setup-with-heartbeat-and-floating-ips-on-ubuntu-14-04