vrrp_script chk_haproxy {
script "pidof haporxy" # check the haproxy process
interval 2 # every 2 seconds
weight 2 # add 2 points if OK
}
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 10
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass newpassword
}
virtual_ipaddress {
192.168.10.25324 dev eth0
}
track_script {
chk_haproxy
}
The rest of the configuration file is the default mode
And other script I gave the form configuration
192.168.20.241
Code:
backend app
balance roundrobin
server app1 192.168.20.242:80 check
server app2 192.168.20.243:80 check
server app3 192.168.10.242:80 check
server app4 192.168.10.243:80 check
192.168.10.241
Code:
backend app
balance roundrobin
server app1 192.168.20.242:80 check
server app2 192.168.20.243:80 check
server app3 192.168.10.242:80 check
server app4 192.168.10.243:80 check
192.168.10.241
Code:
vrrp_script chk_haproxy {
script "pidof haporxy" # check the haproxy process
interval 2 # every 2 seconds
weight 2 # add 2 points if OK
}
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 10
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass newpassword
}
virtual_ipaddress {
192.168.10.25324 dev eth0
}
track_script {
chk_haproxy
}
Easier to ask!
In two network connected by VPN
Ihave Two itemes ha by keepalive
The problem is when i set virtual ip in network range frist network dont see that this problem just for virtual ip 2 networks ping together ...
Hello guys,
Hope you are doing great!!
Right now I'm using keepalived daemon in order to ensure a Load Balancing function between my two servers.
First of all, I tried using the famous "Round-Robin Scheduling" algorithm and it worked well, but I'm kind of obligated to use the "Source Hashing ... (7 Replies)
I have a single SSL eg. www.abc.com.
Im trying to get haproxy to accept any request eg. xyz.com or ijk.com to redirect to https://www.abc.com. Is this possible?
#---------------------------------------------------------------------
# main frontend for XXX which proxys to the backends... (0 Replies)