Optimal cluster setup for scaling plesk web hosting

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
strebel
New Forum User
New Forum User
Posts: 4
Joined: Sat Feb 27, 2010 11:13 pm

Optimal cluster setup for scaling plesk web hosting

Unread post by strebel »

Seems this is the best place to ask this question as parallels support is pretty poor.

We will be moving to a new datacenter provider soon and I want to do a a little forward thinking as we start to scale. What is the best config/setup to manage many thousands of vhosts with plesk? Seems plesk expand is defunct now so need to find a decent infrastructure setup.

What does the ideal setup look like?
We'll have access to a SAN so diskspace is not a problem.

Just want to consider how best to scale from 1 plesk server to many, considering failover protection, backup solutions, 500-1000 vhosts per server, etc.

Would love to hear some feedback on how to approach this from a server infrastructure POV
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Optimal cluster setup for scaling plesk web hosting

Unread post by scott »

There are a lot of ways to do it, probably one of the more transparent models (meaning easy) is to use vmotion with vmware. I'd also say adding a load balancing layer with acceleration (squid, nginx, haproxy, etc) in front of cluster of any kind would yield considerable benefits in flexibility and performance. This can usually make up for the latency you get from virtualization.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Optimal cluster setup for scaling plesk web hosting

Unread post by breun »

If you'll be doing 500-1000 vhosts on a single server, don't forget to enable piped logs for Apache: http://kb.parallels.com/en/2066
Lemonbit Internet Dedicated Server Management
strebel
New Forum User
New Forum User
Posts: 4
Joined: Sat Feb 27, 2010 11:13 pm

Re: Optimal cluster setup for scaling plesk web hosting

Unread post by strebel »

scott wrote:There are a lot of ways to do it, probably one of the more transparent models (meaning easy) is to use vmotion with vmware. I'd also say adding a load balancing layer with acceleration (squid, nginx, haproxy, etc) in front of cluster of any kind would yield considerable benefits in flexibility and performance. This can usually make up for the latency you get from virtualization.
could you elaborate a bit? I am kind of a newb on server setups.

How many servers, doing what tasks, is ideal.

1 server for mysql, 2 for plesk?.. where does the failover protection come in? does that require another server?

Thanks
strebel
New Forum User
New Forum User
Posts: 4
Joined: Sat Feb 27, 2010 11:13 pm

Re: Optimal cluster setup for scaling plesk web hosting

Unread post by strebel »

read the lighthttp will drop in replace apache on plesk.. how will lighty handle a clustered environment?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Optimal cluster setup for scaling plesk web hosting

Unread post by scott »

Vmware for example has an abstraction layer for clustering. The virtual machine(s) will move dynamically between the hardware nodes, thats a nice design for HA but it wont perform like a dedicated box will. Hence the acceleration layer, which is a good idea no matter what you're doing. I heard a joke once describing clustering... Better, Faster, Cheaper (pick any two). :P

Anyway, thats one way. Another would be a more elaborate distributed plesk install where you have web server nodes, mail server nodes, etc. Generally a good place to start with that is mail, the Maildir format is NFS aware so you can safely distribute mailboxes across N nodes using that (or GFS) without a whole lot of extra configuration work. You just mount /var/qmail/mailnames across N servers and you're done.

Apache is a bit different, Bruen already mentioned piped logging. Thats pretty critical for performance, but apache itself can be a bit touchy if you've got multiple daemons talking to the same files you can run into conditions where the first one that gets there wins (and potentially lose data).
zwankie
Forum User
Forum User
Posts: 5
Joined: Fri Apr 09, 2010 12:45 pm

Re: Optimal cluster setup for scaling plesk web hosting

Unread post by zwankie »

Hi,

This relates to the Piped Logs setup mentioned above.

I noticed that webstats were suddenly not showing recent data.

A closer look showed that the domain access_log were not being updated, therefore the webstats will not have any data to update from. Further investigation showed that the logs stopped working on a specific day so I checked the yum logs to see what was done on that day as an update could have caused this.

It turned out that the following was done on that day:
Yum installed:
mod_dav_svn
php-jpgraph
php-pecl-apc
php-pecl-memcache

And Apache was set to use Piped Logs as per this Parallels KB Article:
http://kb.parallels.com/en/2066

It seems that the Piped Logs caused Apache not to log the access_log for each domain with the access_log files being 0kb, even though access_ssl_log was logging just fine.

I changed the http://kb.parallels.com/en/2066 article to "false" and reconfigured Apache and the access_log files immediately started getting data again.

How should Apache be configured to Pipe Logs for over 300 domains while still retaining a proper working Webstat system?
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Optimal cluster setup for scaling plesk web hosting

Unread post by breun »

See this KB article: access_log and web statistic of domains are not updated with enabled 'piped logs' feature. I thought they'd rolled this out as an update at some point.
Lemonbit Internet Dedicated Server Management
zwankie
Forum User
Forum User
Posts: 5
Joined: Fri Apr 09, 2010 12:45 pm

Re: Optimal cluster setup for scaling plesk web hosting

Unread post by zwankie »

Thank you Breun,
Post Reply