<div dir="ltr">Hi John,<div><br></div><div>I use keepalived that runs also on the 3 controllers in a MASTER configuration, all with the same priority. </div><div><br></div><div><div>vrrp_script haproxy-check {</div><div> script "killall -0 haproxy"</div><div> interval 2</div><div> weight 10</div><div>}</div><div>vrrp_script mysql {</div><div> script "/sbin/service mysqld status"</div><div> interval 5 # execute check every 5 seconds</div><div> weight -2 # adjust priority by -2 if OK</div><div> rise 2 # required number of failures for KO switch</div><div> fall 2 # required number of successes for OK switch</div><div>}</div><div>vrrp_instance mysql-vip {</div><div> state MASTER</div><div> priority 101</div><div> interface bond0</div><div> virtual_router_id 48</div><div> advert_int 3</div><div> virtual_ipaddress {</div><div> 172.16.21.21</div><div> }</div><div> track_script {</div><div> mysql</div><div> }</div><div>}</div><div>vrrp_instance api-vip {</div><div> state MASTER</div><div> priority 101</div><div> interface bond0</div><div> virtual_router_id 49</div><div> advert_int 3</div><div> virtual_ipaddress {</div><div> 172.16.21.20</div><div> }</div><div> track_script {</div><div> haproxy-check</div><div> }</div><div>}</div><div>}</div></div><div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 13, 2015 at 6:21 PM, John Dewey <span dir="ltr"><<a href="mailto:john@dewey.ws" target="_blank">john@dewey.ws</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
Are you using ucarp or keepalived to manage the VIP address? Basically, are you rebooting the load balancer, which everything is configured to use?</div><div><br></div><div>John</div><div><div class="h5">
<div></div>
<p style="color:#a0a0a8">On Tuesday, January 13, 2015 at 5:04 AM, Pedro Sousa wrote:</p>
</div></div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">
<span><div><div><div class="h5"><div><div dir="ltr">Hi all,<div><br></div><div>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. </div><div><br></div><div>Then to recover from that errors I have to restart all my services in all the servers, without rebooting, running openstack-service restart. <br></div><div><br></div><div>I'm providing my haproxy conf in attach case someone can assist me. </div><div><br></div><div>Thank you.</div><div><br></div><div><br></div><div><br></div><div><br></div></div>
</div></div></div><div><div>_______________________________________________</div><div>OpenStack-operators mailing list</div><div><a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a></div><div><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a></div></div></div></span>
<div style="border-bottom:1px solid #f0f0f0;min-height:10px">
</div>
<br>
<div style="font-weight:bold;font-size:14px;margin-bottom:5px">Attachments:</div>
<div>
<div>- haproxy.cfg</div>
</div>
</blockquote>
<div>
<br>
</div>
</blockquote></div><br></div>