1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Linux Anyone with any Seesaw v2 Load Balancer experience?

Discussion in 'Tech Support' started by dynamis_dk, 14 Feb 2020 at 20:43.

  1. dynamis_dk

    dynamis_dk Grr... Grumpy!!

    Joined:
    23 Nov 2005
    Posts:
    3,411
    Likes Received:
    223
    So bit of a weird one this. I'm trying to get Seesaw Load balancer working on VMware workstation as a test before I look to utilise it at work. Everything is being built in Ubuntu 18.04.4

    So far I've built two web with apache2 as a backend to balance between and I've built one VM to load Seesaw on. I've done the initial install and build from various sources online but I'm really struggling to get my head around the config side. I'm afraid I have very little Linux experience and even less network knowledge :wallbash:

    Roughly in my head I believe it should look a but like this:

    [​IMG]

    I'm expecting to have some form of Virtual IP which clients connect to, this could then be setup as an A record in DNS for me to hit as my website FQDN.

    In the background LB1 & LB2 would be a HA pair so say LB1 is the active node, it would load balance request between WEB1 and WEB2. If the HA is failed over to LB2, it takes over the active role and load balances between WEB1 and WEB2.

    Now presuming I have that scenario right, I've just no idea how to config it within Seesaw and what little documentation is available I'm struggling to understand.
     
  2. deathtaker27

    deathtaker27 #noob

    Joined:
    17 Apr 2010
    Posts:
    2,100
    Likes Received:
    128
    Not used it heard if seesaw but haproxy with keepalived should be able to do this?
     
  3. dynamis_dk

    dynamis_dk Grr... Grumpy!!

    Joined:
    23 Nov 2005
    Posts:
    3,411
    Likes Received:
    223
    Cheers, I'll take a look at that one and see if its suitable. We've been recommended Seesaw by the 3rd party as they've used it before and said good things but I'll admit as an admin I'm more Windows and powershell than Linux and network :)

    There does seem to be a lot more guides out there for haproxy with keepalived.

    Do you know if it will handle multiple floating IP's / multiple load destinations with only the 2 nodes? I'm looking at it for a specific reason right now but we might look to expand other systems onto it as an alternative to DNS based load balancing.
     
  4. yuusou

    yuusou Well-Known Member

    Joined:
    5 Nov 2006
    Posts:
    2,156
    Likes Received:
    343
    Keepalived handles virtual IPs, has a few application layer features but not many.

    However, paired with haproxy, haproxy is silly powerful, load balancing, active / passive, based in session, load, connections, etc.

    Let me know specifically what you need and I can help you, got a lot of haproxy and keepalived baggage. I'd also consider nginx instead of apache.
     
  5. deathtaker27

    deathtaker27 #noob

    Joined:
    17 Apr 2010
    Posts:
    2,100
    Likes Received:
    128
    100% this, from a load balancing perspective I have yet to find something haproxy cannot do.

    Likewise if you need help do ask
     
  6. dynamis_dk

    dynamis_dk Grr... Grumpy!!

    Joined:
    23 Nov 2005
    Posts:
    3,411
    Likes Received:
    223
    Cheers guys, I might just take you up on that.

    the use of web servers in this instance is just to allow a simple proof of concept on my personal machine as spinning up a couple Ubuntu web severs with Apache takes only a minutes.

    The actual real world use for this is to load balance Smoothwall web filtering nodes (I think there is 3 - I don’t really have much to do with them and I’ve ended up involved as the guy looking at it has even less Linux experience then me).

    i figures I could get away with learning the concepts with 2 LB servers and 2 web servers then apply that to whatever they chuck at me at work next week.

    mid the theory behind configuration the same regardless of what service is being load balanced in the backend or would the approach for web servers be different to say the Smoothwall filters?
     
  7. dynamis_dk

    dynamis_dk Grr... Grumpy!!

    Joined:
    23 Nov 2005
    Posts:
    3,411
    Likes Received:
    223
    Thanks guys, quick update on this so I've had a quick go with haproxy & keepalived, with 4 VM's (two LB and two Web) all working well it would seem. I can take down a LB note and confirm traffic still round robin's between the two web server. I can take down a web server and the webpage still loads from a single web node without any not found errors so I'd say so far, so good.

    It would seem to HAproxy status page allows me to drain/maintain each backend server (web in this case) but I can't seem to find anything which give me status of the actual HA LB itself. From the status page it shows the host name of the HA node I'm connected to so it theory I'd guess if I'm on node HAProxy2, then HAProxy1 is down and its failed over to HAProxy2 as the master. Is there a web gui or anything which give the status for the HA cluster? I've set the weights so that if HAProxy1 comes back then it takes back the master status but a view would be very hand as the team don't really have much Linux experience between them.

    I think the next thing will be speaking to Smoothwall to see if this setup is compatible with the web filter servers (I'm not sure but I think we have 2 maybe 3).
     
  8. yuusou

    yuusou Well-Known Member

    Joined:
    5 Nov 2006
    Posts:
    2,156
    Likes Received:
    343
    frontend stats
    bind *:8404
    stats enable
    stats uri /stats
    stats refresh 10s
    stats admin if LOCALHOST
    stats Auth user:password
     

Share This Page