<div dir="ltr">Just to add my 2 cents to this thread.  I am currently working on a 3-host galera MySQL cluster along with 2 kea servers that will handle my DHCP failover seemlessly.  Built on Debian Stretch, the last piece I am writing is a migration script to take the lease4.csv file and import it into mysql.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 22, 2017 at 8:34 AM, Hugh Connolly <span dir="ltr"><<a href="mailto:hconnolly@gcet.net" target="_blank">hconnolly@gcet.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_3443994900214866688divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>I'm working on something similar.</p>
<p><br>
</p>
<p>It uses 2+ Kea instances with the postgresql lease db in Amazons RDS. </p>
<p>To manage the VIP the cluster uses <span>ocf_heartbeat_IPaddr2 (pacemaker)</span></p>
<p><span><br>
</span></p>
<p><span>Works quite well thus far.</span><span style="font-size:12pt"> </span></p>
<p><span><br>
</span></p>
<p><span>What do you think?</span></p>
<p><span><br>
</span></p>
<p><span>One improvement (beyond in-housing the Postgresql cluster) that comes to mind is better fencing in PCS to restart the service or shutdown the node if there is a problem. Something beyond just checking that the service is running, maybe checking the
 ports?</span></p>
<p><span><br>
</span></p>
<p><span>Was fairly straight forward to setup</span></p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_3443994900214866688divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Kea-users <<a href="mailto:kea-users-bounces@lists.isc.org" target="_blank">kea-users-bounces@lists.isc.<wbr>org</a>> on behalf of Klaus Steden <<a href="mailto:klausfiend@gmail.com" target="_blank">klausfiend@gmail.com</a>><br>
<b>Sent:</b> Friday, November 17, 2017 4:14:00 PM<br>
<b>To:</b> SoupNazi izaNpuoS<br>
<b>Cc:</b> KEA-Users (<a href="mailto:kea-users@lists.isc.org" target="_blank">kea-users@lists.isc.org</a>)<br>
<b>Subject:</b> Re: [Kea-users] DHCP redundancy</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr"><br>
<div>Our implementation uses a single database backend (which is itself HA, but the endpoint is a VIP, so it appears to be just a single host)  with a different server per environment running a Kea server. It seems they coexist quite happily as long as they're
 not trying to both handle the same row/table, which means each environment only uses a single IP helper.</div>
<div><br>
</div>
<div>We use Monit on the servers themselves to keep the Kea daemon running, since as noted it doesn't retry when it encounters an error talking to the database; the whole system is generally fairly resilient, FWIW, even if it's less than industrial strength.</div>
<div><br>
</div>
<div>cheers,</div>
<div>Klaus</div>
</div>
<div class="m_3443994900214866688x_gmail_extra"><br>
<div class="m_3443994900214866688x_gmail_quote">On Fri, Nov 17, 2017 at 6:48 AM, SoupNazi izaNpuoS <span dir="ltr">
<<a href="mailto:soupnazi34@gmail.com" target="_blank">soupnazi34@gmail.com</a>></span> wrote:<br>
<blockquote class="m_3443994900214866688x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Not at all.  It does split the pools, automatically.  You just need to make sure you don't use more than 90% of your addresses as it may have difficulty transferring IPs amongst the devices if you do (say if the secondary runs out, the primary
 may not be able to send IPs to it).</div>
<div class="m_3443994900214866688x_HOEnZb">
<div class="m_3443994900214866688x_h5">
<div class="m_3443994900214866688x_gmail_extra"><br>
<div class="m_3443994900214866688x_gmail_quote">On Fri, Nov 17, 2017 at 9:44 AM, John Ratliff <span dir="ltr">
<<a href="mailto:john@bluemarble.net" target="_blank">john@bluemarble.net</a>></span> wrote:<br>
<blockquote class="m_3443994900214866688x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span>On 11/17/2017 9:37 AM, SoupNazi izaNpuoS wrote:<br>
<blockquote class="m_3443994900214866688x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Out of curiosity, was there a reason you didn't use the built in failover configuration in ISC DHCP?<br>
</blockquote>
<br>
</span>It's extremely confusing to me. Perhaps my understanding is flawed, but as I understand it, you need to split your pool and have one side responsible for their individual split. Our pools do not have enough spare IPs to allow that. It just never seemed
 work the effort.<br>
<br>
--John<br>
<br>
<blockquote class="m_3443994900214866688x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="m_3443994900214866688x_m_-8273576410030861158h5"><br>
On Fri, Nov 17, 2017 at 9:25 AM, John Ratliff <<a href="mailto:john@bluemarble.net" target="_blank">john@bluemarble.net</a> <mailto:<a href="mailto:john@bluemarble.net" target="_blank">john@bluemarble.net</a>>> wrote:<br>
<br>
    I'm seeking best practice advice on how to setup DHCP server<br>
    redundancy with kea.<br>
<br>
    With ISC DHCP, I used VRRP with two servers and configured it to<br>
    send the dhcp-server-identifier option as the VRRP IP. Then I would<br>
    run a script that sync'd the lease database automatically via cron.<br>
<br>
    This process is messy and error prone, so I would like to use kea<br>
    instead.<br>
<br>
    The subnets I am allocating via DHCP is not the same subnet that the<br>
    server is in, so we use ip-helper statements to forward DHCP<br>
    requests to the server.<br>
<br>
    I have kea using mySQL as a lease backend. The mySQL server is not<br>
    on the same machine as kea.<br>
<br>
    My first thought was to use VRRP and supply the<br>
    dhcp-server-identifier option again. I ran into a problem though<br>
    that if kea started before VRRP, it wouldn't listen on the VRRP IP.<br>
    There is probably a solution to that, but I don't have one yet.<br>
<br>
    So then I changed the router configuration to use two ip-helper<br>
    statements, sending the request to both primary and secondary kea<br>
    servers; I also removed the dhcp-server-identifier option. This<br>
    seems to work.<br>
<br>
    Is this a reasonable setup for DHCP redundancy with kea? Is there a<br>
    better option I might want to consider? Are there any concerns I<br>
    should be aware of with both servers being active?<br>
<br>
    Thanks.<br>
    ______________________________<wbr>_________________<br>
    Kea-users mailing list<br>
</div>
</div>
    <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a> <mailto:<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.or<wbr>g</a>><br>
    <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">
https://lists.isc.org/mailman/<wbr>listinfo/kea-users</a><br>
    <<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman<wbr>/listinfo/kea-users</a>><br>
<br>
<br>
</blockquote>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/kea-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>

<br>______________________________<wbr>_________________<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/kea-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Munroe Sollog<div>Senior Network Engineer</div><div><a href="mailto:munroe@lehigh.edu" target="_blank">munroe@lehigh.edu</a></div></div></div>
</div>