<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Arial",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE-CH link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>hello kea users<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>I’m once again looking for a way to make our dhcp setup more stable. Currently we use the isc dhcpd without failover. For each active dhcp server, there is an inactive one (cold standby?), which gets the configuration and lease file every few minutes. If something breaks, we have to manually take the broken server offline and activate the second one. This setup worked more or less stable for more than 10 years.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>But still this setup has it’s disadvantages that I’d like to get rid of. Of we have a maintenance window and have to take the router, where the active server is connected to down, we don’t have a running dhcp setup. New clients won’t be able to get a lease and existing clients fail to renew their lease. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>From the kea-user-guid (</span><span lang=EN-GB style='mso-fareast-language:DE-CH'><a href="https://kea.isc.org/docs/kea-guide.html#high-availability-library">https://kea.isc.org/docs/kea-guide.html#high-availability-library</a></span><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>The Kea HA hook library supports two configurations also known as HA modes: <b>load balancing</b> and <b>hot standby</b>…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>In the <b>load balancing</b> mode…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>When one of the servers allocates a lease for a client, it notifies the partner server over the control channel (RESTful API), so as the partner can save the lease information in its own database. <b>If the communication with the partner is unsuccessful, the DHCP query is dropped and the response is not returned to the DHCP client</b>. If the lease update is successful, the response is returned to the DHCP client by the server which has allocated the lease.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>In the <b>hot standby</b> configuration…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>The secodary server receives lease updates from the primary over the control channel…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>When the secondary server detects the failure of the primary, it starts responding to all DHCP queries.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>My question is:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>In the load balancing mode, when one server dies, both servers won’t hand out leases, because the notification over the control channel fails, right?. If so, where is the HA part in here?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>In a hot standby configuration, what happens when the lease update fails? Will the “primary” server hand out the lease or not?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>Prior to 1.4 there were several messages on this list about a setup with multiple (two) kea instances accessing both the same database (cluster). Is such a setup supported/recommended or not? I guess not, because the initial text on the above url states, that “supports two configurations also known as HA modes”<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>Best regards<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:DE-CH'>Philippe<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p></div></body></html>