Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Load balancer with two cpanel servers
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.

Load balancer with two cpanel servers

Hello,

We are trying to setup load balancer with two dedicated WHM server. We have done following things.

Our main purpose is setup webserver with zero downtime.

Some know how to setup load balancer with 2 cpanel servers.

Thanks

Comments

  • FHRFHR Member, Host Rep

    @ping4support said:
    Hello,

    We are trying to setup load balancer with two dedicated WHM server. We have done following things.

    Our main purpose is setup webserver with zero downtime.

    Some know how to setup load balancer with 2 cpanel servers.

    Thanks

    The word you're looking for is "High Availability", although load balancing and HA aren't mutually exclusive terms.

    Anyway, cPanel doesn't support any HA features natively. Your best bet (and easiest method by far) is to do HA on a lower level, i.e. run cPanel in a HA virtual environment, for example using VMWare vSphere clustering features.

  • Only ever used Haproxy for load balancing WHM/Cpanel servers myself :)

  • ExonHostExonHost Member, Host Rep
    Thanked by 1Shazan
  • Hello eva2000,

    Is cpanel domain work with haproxy ?

    Because we have tried ngnix with load balancer. When we forward request from Load balancer to WHM server, it will loads only default cpanel page.

    Could you please advise ?

    Thanks

  • haproxy and nginx both can load balance for whm/cpanel just you need to know how to configure them to do so. If unsure maybe ask your web host.

    Thanked by 1Zerpy
  • Hello,

    Could you please share with us loadbalancer config like example stuffs how we can do it, we have working for fews without prior knowledge about it.

    Please help us:)

    Thanks!

  • solufsoluf Member
    edited November 2018

    Well, nginx load balacing is pretty intuitive but can be highly optimized to your own needs. The simplest config can be found here. I would suggest you to read the full manual page here.
    TL;DR You need nginx. Two backend entry points. Simple config.
    Note: this may and would have some latency time.

  • Hello,

    Thanks for your ideas :)

    We have tried those with plain server, it works like a charm.But in Cpanel its always redirecting too default site.

    Any way can we overcome this haproxy and suggesstion plz.

    Thanks!

  • @ping4support said:
    Hello,

    Thanks for your ideas :)

    We have tried those with plain server, it works like a charm.But in Cpanel its always redirecting too default site.

    Any way can we overcome this haproxy and suggesstion plz.

    Thanks!

    You have to understand how proxying works, to make it work :) such as passing down the host header etc :) Go read the docs.

  • FranciscoFrancisco Top Host, Host Rep, Veteran

    Not going to happen.

    cPanel doesn't have any sort of multi server support so unless you have a smart way to sync files and databases without loss, you're going to have a bad time.

    Francisco

  • edited November 2018

    What about e.g. with a floating IP / BGP at the front, and then rsync 2 machines Vultr doc and Digital Ocean. Not sure on best practice with the rsync ?

Sign In or Register to comment.