Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gobetween HA #289

Open
ghost opened this issue Jun 28, 2020 · 7 comments
Open

gobetween HA #289

ghost opened this issue Jun 28, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Jun 28, 2020

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

@papalii
Copy link

papalii commented Jun 28, 2020

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

@ghost
Copy link
Author

ghost commented Jun 28, 2020

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

@papalii
Copy link

papalii commented Jul 1, 2020

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

@ghost
Copy link
Author

ghost commented Jul 1, 2020

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
Copy link
Author

ghost commented Jul 1, 2020

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 ?

@papalii
Copy link

papalii commented Jul 1, 2020

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

@ghost
Copy link
Author

ghost commented Jul 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant