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
1
vote
1 answer

Keepalived sync daemon

I've enabled lvs_sync_daemon_interface option however it looks like sync daemon is not working Active node: [MASTER:~]# ipvsadm -Lnc IPVS connection entries pro expire state source virtual destination TCP 00:37 SYN_RECV…
HTF
  • 3,148
  • 14
  • 52
  • 82
1
vote
1 answer

keepalived - random re-elections

We have set up 3 servers running keepalived . We started noticing some random re-elections occurring which we can't explain so I cam here looking for advice. Here is our configuration: MASTER: global_defs { notification_email { …
milosgajdos
  • 1,828
  • 2
  • 21
  • 30
1
vote
1 answer

Make keepalived send 0 priority when going to FAULT state

When stopping (service keepalived stop), keepalived does send the priority 0 adverts so the backup server takes over almost immediately. However, when it goes to fault mode (check script returns not zero) then it just shuts up and then the other…
Pentium100
  • 453
  • 1
  • 5
  • 15
1
vote
0 answers

Keepalived, Junos, and ARP caching

I'm trying to configure an active-passive stunnel setup, with the aid of Keepalived, for a public IP address at our company datacenter. I would like to know if a router or switch reconfiguration is recommended given the following scenario. I…
1
vote
1 answer

query keepalived

*Note: I have trouble deciding what should go in serverfault and what should go in superuser, if some kindly admin decides this is in the wrong place please move it for me - many thanks. I am implementing a basic HA system with keepalived. I only…
tdimmig
  • 283
  • 2
  • 6
1
vote
1 answer

Why state is needed for keepalived

From the doc ! MASTER and BACKUP state are determined by the priority ! even if you specify MASTER as the state, the state will ! be voted on by priority (so if your state is MASTER but your ! priority is lower than the router with BACKUP, you…
Howard
  • 2,135
  • 13
  • 48
  • 72
1
vote
1 answer

Loadbalance nginx proxies with keepalived possible?

I was wondering if I could load balance 2 nginx proxies with keepalived. I have already established high availability for 2 proxies in MASTER - BACKUP setup with keepalived. So Failover is working but not enough for me. I want to load balance…
fcukinyahoo
  • 145
  • 1
  • 2
  • 6
1
vote
0 answers

keepalived - service not available on the 'passive' host

I've got ip failover configured on two hosts for a mysql (percona) cluster with keepalived; the failover works as expected, but I cannot access the service from the host that is passive or in 'backup' state. I'll try to explain better. Both HOST1…
Vito Botta
  • 327
  • 1
  • 7
  • 14
1
vote
1 answer

MySQL port 3306 became filtered when configured with Keepalived on Ubuntu server 12.04 lts

I'm configuring two load balancer (lb01 & lb02) with keepalived for my two mysql server (db01 & db02) with standard port 3306. There is virtual ip address (192.168.205.10) to access it also act as failover, but somehow the web server in the front…
Ludwig
  • 23
  • 2
  • 4
1
vote
1 answer

keepalived with --log-file doesnt work

I have keepalived 2.0.19 running in Ubuntu 20.04. Trying to add the --log-file= option to DAEMON_ARGS in /etc/default/keepalived results in this. keepalived[454603]: -g requires configure option --enable-log-file But if i also add --enable-log-file…
1
vote
0 answers

Keepalived operation when interface has not yet acquired an IP address

I have an application that requires 2 servers to coordinate their service using keepalived running VRRP on a particular network where each has an interface. I want the VRRP traffic to be unicast and where each server uses (and expects the other to…
Ajit
  • 11
  • 2
1
vote
1 answer

KeepAlived service running but does not executes the check haproxy script

I have configured a failover load balancer, so that it acts as a backup whenever my primary goes down. So I have setup Keepalived that switches the floating virtual IP address to the other machine whenever it is unable to find the service HAProxy…
1
vote
1 answer

IP forwarding with IPTables for lvs nat mode

I am learning about the L3 loadbalancers and now working on the keepalived NAT mode.The packet flow should be Client ------> L3(lvs DNAT)------> real servers and the return flow should be exact opposite to request flow.But the lvs DNAT changes only…
1
vote
0 answers

keepalived virtual and real server in different subnets

My goal is to forward the SMTP traffic from one unused server to another using keepalived. The problem is, that the other SMTP server is in different subnet. I have configured keepalive in the following way. virtual_server 192.168.111.111 25 { …
spaceman117X
  • 111
  • 2
1
vote
0 answers

On Debian system, keepalived is consuming full cpu usage on both kibana nodes

I have master/slave kibana machines on Debian 10. From few days, cpu usage of keepalived daemon on both nodes are reaching to 100%. After keepalived restart it goes to normal, and this loops forever. I am not sure, what exactly is wrong with my…