The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

load balancing

Discussion in 'Data Protection' started by mrhankey, Apr 23, 2012.

  1. mrhankey

    mrhankey Active Member

    Joined:
    Apr 6, 2012
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    hi,

    what can i install in cpanel to easily setup load balancing between my other cpanel server?

    haproxy or is there a way i can setup this in cpanel with easy configuring?

    thanks again
     
  2. NetMantis

    NetMantis BANNED

    Joined:
    Apr 22, 2012
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Utah
    cPanel Access Level:
    DataCenter Provider
    Yes, it can be done with haproxy

    (I know this because I have actually done it before using haproxy but it's not an easy setup)

    Generally speaking, Cpanel doesn't support load balancing in and of itself so you will need the haproxy.
     
  3. mrhankey

    mrhankey Active Member

    Joined:
    Apr 6, 2012
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    thanks, so what you recommend using? or is haproxy the best?

    i am looking for the easiest way to do it.

    is memcached the same thing as haproxy?

    many thanks
     
  4. mrhankey

    mrhankey Active Member

    Joined:
    Apr 6, 2012
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    ok so how does it work, does haproxy sync your files in real time amongst the servers?

    i have tried googling but not much is coming up.

    basically if a users uploads a photo to say server 2 and then someone wants to view that photo who is on server 1, does haproxy sync all files setup in real time or do i need some other software?

    many thanks
     
  5. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    I doubt haproxy will sync files for you. You may need to use other way to sync the files between two servers. I use Rsync + LVS for load balancing on two cPanel servers.
     
  6. MilesWeb

    MilesWeb Well-Known Member
    PartnerNOC

    Joined:
    May 23, 2012
    Messages:
    174
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    If you want to sync files, you either use rsync OR mount the drives using NFS. Yes, I have used haproxy and it works properly for apache on cPanel server. You can use rsync OR NFS depending on how often the data gets updated.
     
  7. jasonhk

    jasonhk Well-Known Member

    Joined:
    Nov 11, 2005
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
Loading...

Share This Page