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

keepalived doesn't assign the virtual IP

I am testing haproxy with keepalive to 3 servers. Haproxy server configurations work fine (USLTS4/USLTS5), but not keepalived. The process started on both haproxy's, but the VIP is not assigned to the master (USLTS4), so not reachable from…
AJN
  • 436
  • 1
  • 4
  • 13
0
votes
2 answers

Is it possible for a child script to write output to a parent process?

I have a notify script kicked off by keepalived daemon process whenever it's state changes. The problem is, echo output from my notify script does not appear in the output displayed when running keepalived with the -l (log to local console)…
hookenz
  • 14,472
  • 23
  • 88
  • 143
0
votes
1 answer

Keepalived - Keep VIP after stop in both nodes

There's any way to keep the last VIP configuration in the case of a daemon stop in all the nodes of Keepalived? Thanks in advance.
0
votes
2 answers

Keepalived heartbeats not being sent/received on EC2 VPC

I'm trying to setup keepalived + HAProxy as a redundant load balancer on an EC2 VPC (yes, I know that ELB is an option). I believe we have things configured correctly, but killing the master server doesn't seem to failover. Server A…
0
votes
0 answers

Unable to connect to MASTER: Resource temporarily unavailable : Connecting to MASTER no:0

I'm currently working on simle active stand/by Redis clustering for query caching with Keepalived. The problem I'm facing is when I shutdown&start(restart) the host1 server for testing, it should keep the exact same virtual ip, and start…
Peco
  • 153
  • 2
  • 2
  • 8
0
votes
1 answer

Set up keepalived for MySQL Master-Master replication

I managed 2 mysqld processes that listen for connections on different ports- 3306 and 3307 on localhost. I set up MySQL Master-Master replication. And now I want to set up keepalived for MySQL Master-Master with virtual IP. Is it real to set up…
0
votes
1 answer

Keepalived failover not working - how to configure master / failover

I have following two server setup running: node1: keepadlived master -> HAProxy -> Apache node2: keepadlived failover -> HAProxy -> Apache The system works perfectly until I shut down keepalived master. Then the site is entirly down. This is where…
merlin
  • 2,093
  • 11
  • 39
  • 78
0
votes
1 answer

How to configure keepalived - not able to setup VIP

I am trying to setup a comiled keepalived 1.2.19 on ubuntu 14.04 with failover. Somehow the virtual ip never shows up: ip addr show eth0 2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 …
merlin
  • 2,093
  • 11
  • 39
  • 78
0
votes
1 answer

track script doesn't work after keepalived update

I recently updated my keepalived cluster from version 1.2.10 to 1.2.13. I noticed that my tracking script, which basicly just pings another system,doesn't work anymore. I use a simple bash script and return a 0 if everything is fine and the reciever…
mushr00mer1990
  • 351
  • 4
  • 14
0
votes
1 answer

Keepalived in the AWS autoscalling group

I want to deploy Keepalived in the AWS autoscalling group. The issue that Keepalived need to know ip address of the each node in the cluster, that is difficult in the elastic environment, where we can't manage ip address, nodes can be added and…
0
votes
1 answer

KeepAliveD + HaProxy - Only the master should run an active HaProxy service

it is possible to configure keepalived so that only the master server are running an active service from haproxy? Currently LB1 and LB2 (both with keepalived and haproxy) works great. But sometimes some requests is taken from LB2 (which is backup…
RogerSik
  • 39
  • 8
0
votes
1 answer

Keepalived disconnects

On my Sles i have keepalived, and haproxy. In two days i had 4 disconnects from keepalived. Keepalived v1.2.7 (11/20,2012) In syslog only this messages. Who can help with solving the problem? Keepalived_vrrp[28102]: VRRP_Script(chk_haproxy) timed…
user3904465
  • 11
  • 1
  • 2
  • 6
0
votes
2 answers

Keepalived loses VIP upon power cycle of master

I have two servers running Keepalived 1.2.7 with hostnames left and right. Here are the configs: # keepalived.conf on left vrrp_instance VI_1 { state MASTER interface eth1 virtual_router_id 51 priority 160 advert_int 1 …
Snowball
  • 1,503
  • 1
  • 12
  • 13
0
votes
1 answer

Keepalived + LVS not working from other hosts but working from localhost on LB

I've got a keepalived + LVS set up I'm trying to get to work Clients, LB and real servers are all on the same subnet. Keepalived config: global_defs { notification_email { admin@example.com } notification_email_from…
Tom Taylor
  • 41
  • 1
  • 4
0
votes
1 answer

Which technique should be chosen for IP failover with manual control

I have the following setup, Linux stack, with front-end running nginx proxy and static assets and back-end running Ruby on Rails and MySQL in master-master replication: Primary site: front-end.a, back-end.a Secondary site: front-end.b, back-end.b A…
Barry Kelly
  • 154
  • 2
  • 9