Linux load balancer ping redirect to other interface
Im configuring centos with load balance with ip route and ip rule
Code:
Eth0 192.168.1.5
Eth1 192.168.5.128
[root@host1 testscripts]# ip route
192.168.5.0/24 dev eth1 scope link src 192.168.5.128
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.5
169.254.0.0/16 dev eth1 scope link
[root@host1 testscripts]# ip route show table wan2
default via 192.168.5.2 dev eth1 src 192.168.5.128
[root@host1 testscripts]# ip route show table wan1
default via 192.168.1.1 dev eth0 src 192.168.1.5
[root@host1 testscripts]# ip rule show
0: from all lookup 255
32762: from 192.168.5.128 lookup wan2
32763: from all to 192.168.1.5 lookup wan1
32765: from 192.168.1.5 lookup wan1
32766: from all lookup main
32767: from all lookup default
I'm not an expert on this product but I might write a few things that might help.
With this form of load balancing (sometimes called clustering), each real node has a fixed ip address that doesn't ever move. These are the REAL ip addresses. There is a VIP (virtual ip address) that all the clients use that is the address which, in the event of a failure, switches from one real box to the other. The clients aren't aware of the real IP addresses, only the virtual one.
I also notice that Centos users often configure a 'director' service on a third separate machine but I don't believe this is mandatory.
Hope that helps. Perhaps a Centos expert will contribute to this thread.
Anyway, you need to configure a VIP. Search Google if you need help.
Pinging one of the real ip's will only ever get a response from that particular box.
Hello,
in case somebody has a NoMachine NX cluster, and is suffering from its dumb round-robin dispatcher, here is a solution:
nxpub (NX Pluggable User Balancer).
It should run on all LUnix OS. Scripts for install/uninstall are supplied.
While tested with NX 3 (NX 3.5 is the latest), it might... (2 Replies)
Hello Guys,
Hope you all doing well . :)
I was checking load balance command (uptime)on VM server and got below output.
# uptime
07:08:40 up 52 min, 2 users,a load average: 0.45, 0.11, 0.03
A :How we can calculate load average?
Thank you in advance !!
Cheers:)
Dont forget... (1 Reply)
we use piranha load balancer with two nodes
even the primary node is running fine and up failover happend to secondary node
this happend quite few times ehy node2 cannot talk to node1
what logs are to be checked and investigate why failover occured
pulse: partner dead: activating... (0 Replies)
Hi,
What's the best load balancer for Linux (CentOS, SuSE) according to your personal experience?
Linux Virtual Server (LVS) is a famous one, but their download site has not been updated since 2007. Their web and mailing list are so quiet. Is the Ultra Monkey project including LVS... (1 Reply)
Hi All,
How do I failover on the ip load balancer (back and forth)? It involves first to load a new config on the passive ip. If success, load the new config on the ip active (which is now passive).
Any idea, please.
Thanks in advance. (0 Replies)