Questions tagged [keepalived]

an open source daemon that implements the VRRP standard.

The keepalived project is an open source implementation of the VRRP protocol as well as a configuration interface to the Linux ipvs framework. VRRP is based on Cisco's proprietary Hot Standby Router Protocol (HSRP) concepts. When these two portions of the application are used in concert, a pair of linux servers can be a stable, low-cost alternative to commercial load balancers.

Cisco has claimed that VRRP is protected under HSRP patents, so using keepalived is legally questionable.

239 questions
0
votes
1 answer

How can a server respond with a different IP (Virtual IP) when using Keepalived?

I have been studying Keepalived for High Availability purposes. I have some fundamental questions concerning TCP/IP behavior when Keepalived is in place. With Keepalived, clients can access the servers through its Virtual IP address. This is…
0
votes
0 answers

Keepalived triggers failover while MASTER node is healthy

I have a Master/Slave setup of Keepalived in AWS for Haproxy and EIP is being used as VIP. Once in a while backup server triggers failover yet MASTER node is healthy. Following are corresponding logs. Backup Server Oct 10 04:14:32 Prod-WebAccessLb2…
xs2rashid
  • 204
  • 1
  • 7
0
votes
1 answer

Smooth transfer of service IP to backup system

I'm trying to research the best way to find a HA solution plus (little) load balancing for our TCP services. All solutions I found (e.g. HAProxy, LVS) use a master machine which holds the TCP service IP and when the master crashes a backup system…
0
votes
1 answer

Keepalived VIP is active on both servers

I have configured keepalived on two RHEL 7 servers as below Primary server vrrp_instance VI_1 { state MASTER interface eth0 virtual_router_id 51 priority 100 advert_int 1 authentication { auth_type PASS …
Asha
  • 3
  • 1
  • 3
0
votes
1 answer

keepalived virtual_ipaddress and network mask

I have the following keepalived.conf file: vrrp_script chk_nginx { script "curl http://localhost/vrrp_healthcheck/" interval 2 # every 2 seconds weight 2 # add 2 points if OK } vrrp_instance VI_1 { interface ens160 # interface to monitor …
Jeroen Jacobs
  • 1,386
  • 3
  • 16
  • 25
0
votes
1 answer

Nginx with keepalived

I got 2 nginx servers which are handling 1) reverse proxy and 2) load balancing on two webservers. Since I cannot provide any of the nginx machines IP to the customer so I was thinking to have keepalived on top of 2 Nginx machines with VIP it also…
user3332404
  • 411
  • 1
  • 4
  • 7
0
votes
1 answer

architecture for no fail request with keepalived

I have a local cluster of 3 CentOs servers, I've installed Keepalived on each server, Then I run some benchmark tests with ab like this : ab -c 1000 -n 100000 -r host Then in the middle of benchmark test I poweroff the Master Server, and Keepalived…
Mairon
  • 159
  • 3
  • 12
0
votes
1 answer

2-host MariaDB Galera cluster with keepalived only, no HAproxy?

We're about to replace a legacy MySQL database using master-slave replication (only 2 hosts total - one master, one slave) with a MariaDB Galera master-master replication cluster to ensure more hassle-free failovers. The tutorials I've read through…
user408931
  • 3
  • 1
  • 2
0
votes
1 answer

Apache httpd with active passive setup

I have two servers both having Apache httpd with identical configurations Server1 and Server2. I want to create active and passive setup for these servers. Server1(lbserver.my.com) IP:192.168.10.88 (Active) Server2(lbserver.my.com) IP:192.168.10.89…
0
votes
1 answer

Ubuntu 16.04, Keepalived VMAC

I'm trying to build up two redundant forward-facing load balancers (using either IPVS or NGINX), but first I'm trying to get the floating VRRP virtual-ip/mac to work properly before moving forward through the process. I've got a stock Ubuntu 16.04…
0
votes
0 answers

How to pass selinux error when executing netstat via script in keepalived?

Is there a way to pass selinux security when executing netstat command in keepalived? I get below message when I execute netstat in vrrp_scrpt of keepalived. My goal is to monitor udp/2048 change Master and Backup when the port is down. Nov 24…
Yu Watanabe
  • 616
  • 2
  • 8
  • 18
0
votes
1 answer

HAProxy direct routing and keepalived

I cant seem to find decent documentation that explains this properly or maybe better way to see in what I think is clear. I understand what HAProxy/keepalived and have worked with many different types of load balancers over the years. What I can't…
0
votes
1 answer

System outage when only one of two HAProxy servers is down. Failover doesn't seem to be working

First of all my experience with HAProxy stack is just one day old so I hope my question makes sense. I have 2 HAProxy VMs and 2 Apache VMs (vagrant machines) as follows. 192.168.50.11 HAPROXY VM1 192.168.50.12 HAPROXY VM2 192.168.50.21 APACHE…
BentCoder
  • 331
  • 6
  • 21
0
votes
1 answer

keepalived track_script never runs

Here's my keepalived.conf for the MASTER node: vrrp_script chk_test { script "exit 1" interval 2 weight 2 } vrrp_instance VI_1 { interface eth0 state MASTER priority 200 virtual_router_id 33 …
Flo
  • 173
  • 1
  • 3
  • 11
0
votes
1 answer

HAProxy/Keepalived and DNS

We have some HAProxy/keepalived clusters on CentOS7 and found that the virtual IPs managed with keepalived have registered in DNS. Does anyone know of a way to block dns registration for address registered with keepalived or to block DNS…
tweeks200
  • 351
  • 1
  • 3
  • 11