<div dir="ltr">Hello<div><br></div><div>How long secondary should start to response when primary goes down?</div><div><br></div><div>I shut down the primary and secondary didn't answered :(</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">czw., 4 cze 2020 o 08:53 Marcin Romanowski <<a href="mailto:marcin@nicram.net">marcin@nicram.net</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello</div><div>I've moved "hooks-libraries" key from the very beginning to before "shared-networks" key and HA started to be worked</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">śr., 3 cze 2020 o 09:10 Marcin Romanowski <<a href="mailto:marcin@nicram.net" target="_blank">marcin@nicram.net</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div>I try to run high-availability <a href="https://downloads.isc.org/isc/kea/1.6.2/doc/html/arm/hooks.html#ha-high-availability" target="_blank">https://downloads.isc.org/isc/kea/1.6.2/doc/html/arm/hooks.html#ha-high-availability</a><br>I my config I added:</div><div><br></div><div><font face="monospace">{<br>  "Dhcp4": {<br>    "hooks-libraries": [{<br>        "library": "/opt/kea/lib/kea/hooks/libdhcp_lease_cmds.so",<br>        "parameters": { }<br>    }, {<br>        "library": "/opt/kea/lib/kea/hooks/libdhcp_ha.so",<br>        "parameters": {<br>            "high-availability": [{<br>                "this-server-name": "server1",<br>                "mode": "hot-standby",<br>                "heartbeat-delay": 10000,<br>                "max-response-delay": 10000,<br>                "max-ack-delay": 5000,<br>                "max-unacked-clients": 5,<br>                "peers": [{<br>                    "name": "server1",<br>                    "url": "<a href="http://10.249.1.205:8080/" target="_blank">http://10.249.1.205:8080/</a>",<br>                    "role": "primary",<br>                    "auto-failover": true<br>                }, {<br>                    "name": "server2",<br>                    "url": "<a href="http://10.249.1.206:8080/" target="_blank">http://10.249.1.206:8080/</a>",<br>                    "role": "standby",<br>                    "auto-failover": true<br>                }]<br>            }]<br>        }<br>    }],<br></font></div><div><font face="monospace">[...]</font></div><div><br></div><div>but in log there is no info abut any tries to connect to second server. Even when I get config an list-commands from api no ha arguments.</div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:14px;line-height:19px;white-space:pre-wrap"><div>curl -X POST -H <span style="color:rgb(206,145,120)">"Content-Type: application/json"</span> -d '{</div><div>    <span style="color:rgb(156,220,254)">"command"</span>: <span style="color:rgb(206,145,120)">"list-commands"</span>,</div><div>    <span style="color:rgb(156,220,254)">"service"</span>: [</div><div>        <span style="color:rgb(206,145,120)">"dhcp4"</span></div><div>    ]</div><div>}' http: <span style="color:rgb(106,153,85)">//<a href="http://10.249.1.205:8080" target="_blank">10.249.1.205:8080</a> [</span></div><div>    {</div><div>        <span style="color:rgb(156,220,254)">"arguments"</span>: [</div><div>            <span style="color:rgb(206,145,120)">"build-report"</span>,</div><div>            <span style="color:rgb(206,145,120)">"config-get"</span>,</div><div>            <span style="color:rgb(206,145,120)">"config-reload"</span>,</div><div>            <span style="color:rgb(206,145,120)">"config-set"</span>,</div><div>            <span style="color:rgb(206,145,120)">"config-test"</span>,</div><div>            <span style="color:rgb(206,145,120)">"config-write"</span>,</div><div>            <span style="color:rgb(206,145,120)">"dhcp-disable"</span>,</div><div>            <span style="color:rgb(206,145,120)">"dhcp-enable"</span>,</div><div>            <span style="color:rgb(206,145,120)">"leases-reclaim"</span>,</div><div>            <span style="color:rgb(206,145,120)">"libreload"</span>,</div><div>            <span style="color:rgb(206,145,120)">"list-commands"</span>,</div><div>            <span style="color:rgb(206,145,120)">"server-tag-get"</span>,</div><div>            <span style="color:rgb(206,145,120)">"shutdown"</span>,</div><div>            <span style="color:rgb(206,145,120)">"statistic-get"</span>,</div><div>            <span style="color:rgb(206,145,120)">"statistic-get-all"</span>,</div><div>            <span style="color:rgb(206,145,120)">"statistic-remove"</span>,</div><div>            <span style="color:rgb(206,145,120)">"statistic-remove-all"</span>,</div><div>            <span style="color:rgb(206,145,120)">"statistic-reset"</span>,</div><div>            <span style="color:rgb(206,145,120)">"statistic-reset-all"</span>,</div><div>            <span style="color:rgb(206,145,120)">"statistic-sample-age-set"</span>,</div><div>            <span style="color:rgb(206,145,120)">"statistic-sample-age-set-all"</span>,</div><div>            <span style="color:rgb(206,145,120)">"statistic-sample-count-set"</span>,</div><div>            <span style="color:rgb(206,145,120)">"statistic-sample-count-set-all"</span>,</div><div>            <span style="color:rgb(206,145,120)">"version-get"</span></div><div>        ],</div><div>        <span style="color:rgb(156,220,254)">"result"</span>: <span style="color:rgb(181,206,168)">0</span></div><div>    }</div><div>]</div></div></div><div><br></div><div>Now, when I get config and write the same config via REST api then hooks librares are deleted :(</div><div><br></div><div>Kea version stable 1.6.2</div><div><br></div><div>Best regards</div><div>Marcin</div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><br></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Marcin Romanowski / nicraM<br></div><div><img src="https://docs.google.com/uc?export=download&id=1tF66ovI5kS7h-4bp0atR0UMIQMnsAEbm&revid=0B1o0UzQJ45KxQ3VhbEhEQ2szRXV6SEhaS1hpVmx6UWNxV2pFPQ" width="96" height="26"><br><br></div></div></div></div></div>