<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><p>Hi Dareen,</p>
<p>Thanks for sharing the answers, yes yesterday while I was exploring more about the Kea-HA, I came to know that if we use multithreading then we don't need to use a kea-control agent and I did try the test case it worked well for me.</p>
<blockquote>
<blockquote>
<p><code>You can log kea-ctrl-agent.http in the kea-ctrl-agent config and probably kea-dhcp4.ha-hooks will contain the kea-dhcp4 perspective.</code> </p></blockquote></blockquote></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote><blockquote><p>
<code>--> ok sure</code></p>
</blockquote>
</blockquote>
<p> >>In any case, after Kea loses contact with the other server it won't answer clients until max-unacked-clients is reached.
-> Got it</p>
<p>One more question regarding the load balancing HA mode, in the document (<a href="https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#supported-configurations">https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#supported-configurations</a>) it says that</p>
<p>However, it is not always clear to the operators that using the load-balancing mode requires manually splitting the address pools between two Kea instances using client classification, to preclude both servers from allocating the same address to different clients. Such a split is not needed in the hot-standby mode</p>
<p>--->So do we need to manually split the scope in the load balancing configuration by associating the classes in HA mode for load balancing type like this ?`</p>
<p>Config: </p></blockquote><div> <span class="gmail-s2" style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box;color:rgb(186,33,33)">"subnet4"</span><span class="gmail-p" style="color:rgb(64,64,64);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">:</span><span style="color:rgb(64,64,64);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span class="gmail-p" style="color:rgb(64,64,64);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">[{</span></div><pre style="box-sizing:border-box;line-height:1.4;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;padding:12px;overflow:auto;color:rgb(64,64,64)"> <span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"subnet"</span><span class="gmail-p" style="box-sizing:border-box">:</span> <span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"<a href="http://192.0.3.0/24">192.0.3.0/24</a>"</span><span class="gmail-p" style="box-sizing:border-box">,</span>
<span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"pools"</span><span class="gmail-p" style="box-sizing:border-box">:</span> <span class="gmail-p" style="box-sizing:border-box">[{</span>
<span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"pool"</span><span class="gmail-p" style="box-sizing:border-box">:</span> <span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"192.0.3.100 - 192.0.3.150"</span><span class="gmail-p" style="box-sizing:border-box">,</span>
<span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"client-class"</span><span class="gmail-p" style="box-sizing:border-box">:</span> <span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"HA_server1"</span>
<span class="gmail-p" style="box-sizing:border-box">},</span> <span class="gmail-p" style="box-sizing:border-box">{</span>
<span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"pool"</span><span class="gmail-p" style="box-sizing:border-box">:</span> <span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"192.0.3.200 - 192.0.3.250"</span><span class="gmail-p" style="box-sizing:border-box">,</span>
<span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"client-class"</span><span class="gmail-p" style="box-sizing:border-box">:</span> <span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"HA_server2"</span>
<span class="gmail-p" style="box-sizing:border-box">}],</span>
<span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"option-data"</span><span class="gmail-p" style="box-sizing:border-box">:</span> <span class="gmail-p" style="box-sizing:border-box">[{</span>
<span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"name"</span><span class="gmail-p" style="box-sizing:border-box">:</span> <span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"routers"</span><span class="gmail-p" style="box-sizing:border-box">,</span>
<span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"data"</span><span class="gmail-p" style="box-sizing:border-box">:</span> <span class="gmail-s2" style="box-sizing:border-box;color:rgb(186,33,33)">"192.0.3.1"</span>
<span class="gmail-p" style="box-sizing:border-box">}],</span></pre><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p>Something like this: HA_Server1 and HA_Server2?`</p>
<p>I am asking because I have around 5 to 6 DHCP pairs with hundreds of subnets configured on each failover peer in ISC DHCP. Most of the subnets have multiple scopes, ranging from 5 to 6 and with different ranges. For example, the first scope may have 17 IPs, the second 35, and the third around 200. This is in a spread-out environment where we use ISC.</p>
<p>Generally, in ISC, we define the scopes and split percentages, and DHCP takes care of sharing the IPs between them. However, in Kea, there doesn't seem to be a similar mechanism, or I could be wrong. Could you please let me know if the process of manual splitting should be done in Kea when migrating from ISC to Kea? <code>Or do we have any other configuration parameter that makes the Kea DHCP server automatically split the IPs 50-50% from all available scopes of the subnet?</code></p></blockquote><div><br></div><div>Thanks </div><div>Kraishak </div></div></div>