<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I deployed a PoC kea cluster to achieve HA<div class=""><br class=""></div><div class="">at the backend are 3 mysql servers in a galera cluster</div><div class="">on each node runs kea that uses the localhost mysql instance as a backend</div><div class=""><br class=""></div><div class="">this way everything is synchronized</div><div class=""><br class=""></div><div class="">it's not the cleanest solution but it works and it should not break evein in split-brain scenarios, in theory :-)</div><div class=""><br class=""></div><div class="">I need a 3-way high-availabilty cluster for DHCP and this was the only solution I could think of, all the other solutions were either even more hack-ish or limited to master/slave (and you can't do true HA with just 2 nodes...)</div><div class=""><br class=""></div><div class="">Jan</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 26 Apr 2016, at 21:42, Jonis Maurin Ceara <<a href="mailto:jonis@fearp.usp.br" class="">jonis@fearp.usp.br</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;" class="">For us, is a matter of availability. We have all of our servers in two different phisical sites and sometimes, we need to shutdown for maintenance or update these sites (one at a time) and we need services to  keep running for users......that why we need services running in more than one servers without 'manual switching' between then.<div class=""><br class=""></div><div class="">Our MySQL is running in both machine and using syncronous data sync. For external clients, there is two floating IP's that are allocated on both servers and balanced using DNS. If one server fails, both floating IP's are allocated in one machine (the running one) and clients still with connection.</div><div class=""><br class=""><br class=""><div class=""><span name="x" class=""></span>Jonis Maurin Ceará<br class="">Analista de Sistemas<br class="">FEA-RP<br class="">Help Desk +55 (16) 3315-3898<br class="">Audiovisual +55 (16) 3315-3927<br class="">Desenv. Sistemas +55 (16) 3315-4485<br class="">Infraestrutura +55 (16) 3315-8539 / 0672<br class="">Atendimento Web:<span class="Apple-converted-space"> </span><a href="http://suporte.fearp.usp.br/" class="">http://suporte.fearp.usp.br</a><span name="x" class=""></span><br class=""></div><br class=""><hr id="zwchr" class=""><blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-size: 12pt;" class=""><b class="">De:<span class="Apple-converted-space"> </span></b>"Thomas Andersen" <<a href="mailto:than@itu.dk" class="">than@itu.dk</a>><br class=""><b class="">Para:<span class="Apple-converted-space"> </span></b>"Wlodek Wencel" <<a href="mailto:wlodek@isc.org" class="">wlodek@isc.org</a>><br class=""><b class="">Cc:<span class="Apple-converted-space"> </span></b><a href="mailto:kea-users@lists.isc.org" class="">kea-users@lists.isc.org</a><br class=""><b class="">Enviadas:<span class="Apple-converted-space"> </span></b>Terça-feira, 26 de Abril de 2016 16:27:15<br class=""><b class="">Assunto:<span class="Apple-converted-space"> </span></b>Re: [Kea-users] Fail-over<br class=""><br class=""><div style="margin: 0px;" class="">The reason for dual dhcp server is not a matter of availability for me. The old dhcp server has been running for about 4 years rock solid. But dual server allow me to ease the upcoming updates one server at a time.</div><div style="margin: 0px;" class="">/Thomas<span class="Apple-converted-space"> </span></div><div style="margin: 0px;" class="">Sent from my Cyanogen phone</div><div class="quote">Den 26/04/2016 21.03 skrev Wlodek Wencel <<a href="mailto:wlodek@isc.org" class="">wlodek@isc.org</a>>:<br class=""><blockquote class="quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><font size="2" class=""><span style="font-size: 10pt;" class=""><div class="PlainText">Hello,<br class="">it good to hear that someone is using kea in such way and it's working!<br class="">Internally we just started to test such solution. It's not strict<br class="">failover protocol but high availability should be secured but we want<br class="">make sure.<br class=""><br class="">If time allows us we will publish white paper "How to setup failover in<br class="">kea using db backend".<br class=""><br class="">Regards,<br class="">Włodek Wencel<br class="">ISC QA engineer.<br class=""><br class="">On 04/26/2016 08:17 PM, Thomas Andersen wrote:<br class="">> I have 2 kea with mysql lease. They are both connecting to the same<br class="">> mysqlserver though. Not local mysql.<br class="">><span class="Apple-converted-space"> </span><br class="">> Exact same config file from a local Github instance.<br class="">><span class="Apple-converted-space"> </span><br class="">> Br<br class="">> Thomas<br class="">><span class="Apple-converted-space"> </span><br class="">> Sent from my Cyanogen phone<br class="">><span class="Apple-converted-space"> </span><br class="">> Den 26/04/2016 20.04 skrev Jonis Maurin Ceara <<a href="mailto:jonis@fearp.usp.br" class="">jonis@fearp.usp.br</a>>:<br class="">><span class="Apple-converted-space"> </span><br class="">>     Hi again :)<br class="">><span class="Apple-converted-space"> </span><br class="">>     I read that there's no specific function or option to make an DHCP<br class="">>     master/slave in Kea.....but it's possible to make 2 servers with<br class="">>     SAME configurations (subnet, options, etc...) and both using SAME<br class="">>     lease and host configuration database? This could cause any problem<br class="">>     or is ok to use?<br class="">><span class="Apple-converted-space"> </span><br class="">>     This is what I'm thinking:<br class="">><span class="Apple-converted-space"> </span><br class="">>     Server-A - MySQL and KEA (always started)<br class="">>     |<br class="">>     |<br class="">>     |<br class="">>     Master/Master MySQL replication between both servers<br class="">>     |<br class="">>     |<br class="">>     |<br class="">>     Server B - MySQL and KEA (always started)<br class="">><span class="Apple-converted-space"> </span><br class="">><span class="Apple-converted-space"> </span><br class="">><span class="Apple-converted-space"> </span><br class="">>     Jonis Maurin Ceará<br class="">>     Analista de Sistemas<br class="">>     FEA-RP<br class="">>     Help Desk +55 (16) 3315-3898<br class="">>     Audiovisual +55 (16) 3315-3927<br class="">>     Desenv. Sistemas +55 (16) 3315-4485<br class="">>     Infraestrutura +55 (16) 3315-8539 / 0672<br class="">>     Atendimento Web:<span class="Apple-converted-space"> </span><a href="http://suporte.fearp.usp.br/" target="_blank" class="">http://suporte.fearp.usp.br</a><br class="">><span class="Apple-converted-space"> </span><br class="">><span class="Apple-converted-space"> </span><br class="">><span class="Apple-converted-space"> </span><br class="">> _______________________________________________<br class="">> Kea-users mailing list<br class="">><span class="Apple-converted-space"> </span><a href="mailto:Kea-users@lists.isc.org" class="">Kea-users@lists.isc.org</a><br class="">><span class="Apple-converted-space"> </span><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank" class="">https://lists.isc.org/mailman/listinfo/kea-users</a><br class="">><span class="Apple-converted-space"> </span><br class="">_______________________________________________<br class="">Kea-users mailing list<br class=""><a href="mailto:Kea-users@lists.isc.org" class="">Kea-users@lists.isc.org</a><br class=""><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank" class="">https://lists.isc.org/mailman/listinfo/kea-users</a><br class=""></div></span></font></blockquote></div><br class="">_______________________________________________<br class="">Kea-users mailing list<br class=""><a href="mailto:Kea-users@lists.isc.org" class="">Kea-users@lists.isc.org</a><br class=""><a href="https://lists.isc.org/mailman/listinfo/kea-users" class="">https://lists.isc.org/mailman/listinfo/kea-users</a><br class=""></blockquote><br class=""></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Kea-users mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Kea-users@lists.isc.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Kea-users@lists.isc.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.isc.org/mailman/listinfo/kea-users" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://lists.isc.org/mailman/listinfo/kea-users</a></div></blockquote></div><br class=""></div></body></html>