gobetween icon indicating copy to clipboard operation
gobetween copied to clipboard

gobetween HA

Open ghost opened this issue 5 years ago • 7 comments

Hi , I'm looking for a way to implement gonetween in a live env. One of the requirements is to have the gobetween run in some form of HA , A/A or A/P or any other . couldn't find any solution . Does gobetween support such deployment ? or should I implement it with HAProxy ?

thanks, Leon

ghost avatar Jun 28 '20 14:06 ghost

I use a HA solution with 2 servers with gobetween for UDP and HAProxy for TCP, while the HA is managed by KeepAlived

papalii avatar Jun 28 '20 15:06 papalii

Thanks, Does it mean that gobetween has no 'Built-in' Solution for HA ? :(

ghost avatar Jun 28 '20 15:06 ghost

not that I know of, but with keepalived it works perfectly.

papalii avatar Jul 01 '20 03:07 papalii

Thanks papalii,

so, if I understand correctly , in gobetween conf file , [servers.default] bind = "172.203.128.23:5060" protocol = "udp"

VIP will be the IP I define in keepalived :

virtual_ipaddress { 172.203.128.23 # VIRTUAL IP CREATED }

ghost avatar Jul 01 '20 08:07 ghost

I tried the configuration as written above. problem is that gobetween on Backup node is not coming up because it doesnt have the VIP running . it is only running on Master . Is there a way to have it start even if the IP is not present on machine ?

ghost avatar Jul 01 '20 12:07 ghost

see https://packetpushers.net/vrrp-linux-using-keepalived-2/ section "Services & Address Binding"

papalii avatar Jul 01 '20 15:07 papalii

Thanks papalii . it worked . I missed the net.ipv4.ip_nonlocal_bind=1 from my configuration .

ghost avatar Jul 02 '20 04:07 ghost