[Openstack-operators] HAPROXY 504 errors in HA conf
Pedro Sousa
pgsousa at gmail.com
Tue Jan 13 18:23:38 UTC 2015
Hi John,
I use keepalived that runs also on the 3 controllers in a MASTER
configuration, all with the same priority.
vrrp_script haproxy-check {
script "killall -0 haproxy"
interval 2
weight 10
}
vrrp_script mysql {
script "/sbin/service mysqld status"
interval 5 # execute check every 5 seconds
weight -2 # adjust priority by -2 if OK
rise 2 # required number of failures for KO switch
fall 2 # required number of successes for OK switch
}
vrrp_instance mysql-vip {
state MASTER
priority 101
interface bond0
virtual_router_id 48
advert_int 3
virtual_ipaddress {
172.16.21.21
}
track_script {
mysql
}
}
vrrp_instance api-vip {
state MASTER
priority 101
interface bond0
virtual_router_id 49
advert_int 3
virtual_ipaddress {
172.16.21.20
}
track_script {
haproxy-check
}
}
}
Thanks
On Tue, Jan 13, 2015 at 6:21 PM, John Dewey <john at dewey.ws> wrote:
> Are you using ucarp or keepalived to manage the VIP address? Basically,
> are you rebooting the load balancer, which everything is configured to use?
>
> John
>
> On Tuesday, January 13, 2015 at 5:04 AM, Pedro Sousa wrote:
>
> Hi all,
>
> I have 3 nodes that are loadbalacing some API Openstack Based Services.
> When I reboot one of my servers to test HA, and when that server comes
> online I start getting 504 errors, specially with nova-api, glance and
> keystone APIS. This only happens If I reboot the server.
>
> Then to recover from that errors I have to restart all my services in all
> the servers, without rebooting, running openstack-service restart.
>
> I'm providing my haproxy conf in attach case someone can assist me.
>
> Thank you.
>
>
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
> Attachments:
> - haproxy.cfg
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20150113/227cd082/attachment.html>
More information about the OpenStack-operators
mailing list