Questions tagged [keepalived]

keepalived is a daemon process used in network administration. Questions about this are almost certainly off-topic here.

keepalived is a daemon process used in network administration. Questions about this are almost certainly off-topic here.

51 questions
3
votes
1 answer

Unable to setup floating IP using keepalived and VRRP

I've a ubuntu machine hosting two VMs, each of them running an application, for which i need to provide high availability, so i implemented a floating IP using keepalived and VRRP, But i cannot ping the master VM using the virtual IP from the host,…
2
votes
0 answers

go http client transport set DisableCompression is true, then my client cant reuse socket

client transport is http.Transport{DisableKeepAlives: false, DisableCompression: true} http server normal, and keepalive is starting. in this case, cant reuse socket, every request will create new socket. First. server use…
lio
  • 21
  • 1
2
votes
1 answer

How to get a Virtual IP for Keepalived with bare-metal infrastructure

I am configuring a High Availability load balancing based on HAProxy and Keepalived. Everywhere I do research they talk about Virtual IP like something that fell off the sky – I mean, with little to none explanation about how to get one. By now, I…
RicHincapie
  • 3,275
  • 1
  • 18
  • 30
1
vote
1 answer

Keepalived - VIP on device different from one where VRRP instance configured

I have 2 VMs with Linux and keepalived installed. Their hostnames are master and slave. Each VM has 2 network interfaces configured for different subnets: master: eth1 - 192.168.1.101/24 eth2 - 192.168.56.101/24 slave: eth1 -…
Al Ryz
  • 65
  • 1
  • 8
1
vote
1 answer

Configure keepalived for services (NodePort) on kubernates

I have a k8s cluster which contains 2 nodes. And in the cluster I deployed 2 pods for the same application. Due to some reason I have to deploy a service (NodePort IP) for each pod, so totally I have 2 services the application, for example the…
TangHongWan
  • 645
  • 1
  • 6
  • 18
1
vote
0 answers

K3S HA installation issue - adding floating ip to cluster

I am trying to create a HA k3s cluster using HAProxy and Keepalived. For new installations ( where --tls-san param is added on first time install ) everything works great. I am encountering an issue when I have an existing cluster, and I try to…
1
vote
0 answers

Why keepalived vrrp does not add virtual ip to openvpn tun0?

I am running two instances of keepAlived on local Haproxy node and a remote Haproxy node, the local haproxy node works just fine but for remote it doesn't add virtual ip 10.8.0.2 to the remote node. vrrp_instance RH_EXT { state BACKUP …
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
1
vote
0 answers

haproxy not load balancing the test app in docker swarm

I have 3 vm (virtualbox). All of them setup to use a single VIP with keepalived. (192.168.100.200). I have one proxy on each vm and one test app on each vm. ( I am testing a high availability scenario where loosing one or two nodes, keeps the setup…
CodeWeed
  • 971
  • 2
  • 21
  • 40
1
vote
0 answers

Skip IP only if to much time elapsed Keepalived

I have 2 servers (A and B), where A is a master. This are haproxy servers if important. I want keepalived to skip the VIP from A to B only if A was down for more than 15 seconds. I saw the advert_int option but unless I am using it incorrectly it…
Tom Sebty
  • 307
  • 2
  • 8
1
vote
1 answer

When a Python Script Runs and Ends With sys.exit(0) Gives Error: exited with status 2

I am trying to make keepalived configurations and a script which I use and ends directly with sys.exit(0) gives that error: /usr/bin/script.py exited with status 2 What can I do to correct that? My Script's code: import sys sys.exit(0) My…
1
vote
0 answers

Keepalived dedicated network for heartbeat and vrrp_sync_group

I have a requirement for Keepalived running VRRP on 2 load balancers (NGINX) with 2 interfaces - eth0 (external) and eth1 (internal). I am trying to configure a setup where all VRRP traffic (preferably unicast) is run via the dedicated internal…
JaneD
  • 149
  • 1
  • 2
  • 15
1
vote
0 answers

I use 2 networks, keepalived doesn't work

There are 2 servers, 2 Ethernet comes in for each server (one is main and one is secondary) keepalived.conf(Server 1) vrrp_instance vi_1 { state MASTER interface enp2s0 virtual_router_id 100 priority 255 advert_int 1 …
1
vote
0 answers

How to configure keepalived for one HAProxy container without the Ingress routing mesh on Docker Swarm

I try to follow this blog post to setup "One HAProxy Container Without the Ingress Routing Mesh" on the Docker Swarm. Except that instead of 3 VMs I have 3 VPS nodes and each has its own static public ip address. I'm not familiar with keepalived and…
Alexandre A.
  • 1,619
  • 18
  • 29
1
vote
1 answer

How to detect all keepalived virtual_router_id on netwerk level?

We have different machines with keepalived instances on and I'm looking for a way to check (on networksegment-level) all the virtual_router_id's. (To avoid duplicates.) So 1 tool that listens on the network for virtual_router_id's and prints…
Luc Jusgen
  • 21
  • 3
1
vote
0 answers

"notify" is not getting called in Keepalived

I have these setting in the keepalived.conf file but when I stop the HAProxy service it's not executing the notify script but when I restart the keepalived service it's getting executed every time. Here are the details, HAProxy: 1.8.8 Keepalived:…
Rohan
  • 477
  • 7
  • 22
1
2 3 4