[Kea-users] Kea HA

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] Kea HA

Marcin Romanowski
Hello,

{
  "Dhcp4": {
    "hooks-libraries": [{
        "library": "/opt/kea/lib/kea/hooks/libdhcp_lease_cmds.so",
        "parameters": { }
    }, {
        "library": "/opt/kea/lib/kea/hooks/libdhcp_ha.so",
        "parameters": {
            "high-availability": [{
                "this-server-name": "server1",
                "mode": "hot-standby",
                "heartbeat-delay": 10000,
                "max-response-delay": 10000,
                "max-ack-delay": 5000,
                "max-unacked-clients": 5,
                "peers": [{
                    "name": "server1",
                    "url": "http://10.249.1.205:8080/",
                    "role": "primary",
                    "auto-failover": true
                }, {
                    "name": "server2",
                    "url": "http://10.249.1.206:8080/",
                    "role": "standby",
                    "auto-failover": true
                }]
            }]
        }
    }],
[...]

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.
curl -X POST -H "Content-Type: application/json" -d '{
"command": "list-commands",
"service": [
"dhcp4"
]
}' http: //10.249.1.205:8080 [
{
"arguments": [
"build-report",
"config-get",
"config-reload",
"config-set",
"config-test",
"config-write",
"dhcp-disable",
"dhcp-enable",
"leases-reclaim",
"libreload",
"list-commands",
"server-tag-get",
"shutdown",
"statistic-get",
"statistic-get-all",
"statistic-remove",
"statistic-remove-all",
"statistic-reset",
"statistic-reset-all",
"statistic-sample-age-set",
"statistic-sample-age-set-all",
"statistic-sample-count-set",
"statistic-sample-count-set-all",
"version-get"
],
"result": 0
}
]

Now, when I get config and write the same config via REST api then hooks librares are deleted :(

Kea version stable 1.6.2

Best regards
Marcin

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Kea HA

Marcin Romanowski
Hello
I've moved "hooks-libraries" key from the very beginning to before "shared-networks" key and HA started to be worked

śr., 3 cze 2020 o 09:10 Marcin Romanowski <[hidden email]> napisał(a):
Hello,

{
  "Dhcp4": {
    "hooks-libraries": [{
        "library": "/opt/kea/lib/kea/hooks/libdhcp_lease_cmds.so",
        "parameters": { }
    }, {
        "library": "/opt/kea/lib/kea/hooks/libdhcp_ha.so",
        "parameters": {
            "high-availability": [{
                "this-server-name": "server1",
                "mode": "hot-standby",
                "heartbeat-delay": 10000,
                "max-response-delay": 10000,
                "max-ack-delay": 5000,
                "max-unacked-clients": 5,
                "peers": [{
                    "name": "server1",
                    "url": "http://10.249.1.205:8080/",
                    "role": "primary",
                    "auto-failover": true
                }, {
                    "name": "server2",
                    "url": "http://10.249.1.206:8080/",
                    "role": "standby",
                    "auto-failover": true
                }]
            }]
        }
    }],
[...]

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.
curl -X POST -H "Content-Type: application/json" -d '{
"command": "list-commands",
"service": [
"dhcp4"
]
}' http: //10.249.1.205:8080 [
{
"arguments": [
"build-report",
"config-get",
"config-reload",
"config-set",
"config-test",
"config-write",
"dhcp-disable",
"dhcp-enable",
"leases-reclaim",
"libreload",
"list-commands",
"server-tag-get",
"shutdown",
"statistic-get",
"statistic-get-all",
"statistic-remove",
"statistic-remove-all",
"statistic-reset",
"statistic-reset-all",
"statistic-sample-age-set",
"statistic-sample-age-set-all",
"statistic-sample-count-set",
"statistic-sample-count-set-all",
"version-get"
],
"result": 0
}
]

Now, when I get config and write the same config via REST api then hooks librares are deleted :(

Kea version stable 1.6.2

Best regards
Marcin




_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Kea HA

Marcin Romanowski
Hello

How long secondary should start to response when primary goes down?

I shut down the primary and secondary didn't answered :(

czw., 4 cze 2020 o 08:53 Marcin Romanowski <[hidden email]> napisał(a):
Hello
I've moved "hooks-libraries" key from the very beginning to before "shared-networks" key and HA started to be worked

śr., 3 cze 2020 o 09:10 Marcin Romanowski <[hidden email]> napisał(a):
Hello,

{
  "Dhcp4": {
    "hooks-libraries": [{
        "library": "/opt/kea/lib/kea/hooks/libdhcp_lease_cmds.so",
        "parameters": { }
    }, {
        "library": "/opt/kea/lib/kea/hooks/libdhcp_ha.so",
        "parameters": {
            "high-availability": [{
                "this-server-name": "server1",
                "mode": "hot-standby",
                "heartbeat-delay": 10000,
                "max-response-delay": 10000,
                "max-ack-delay": 5000,
                "max-unacked-clients": 5,
                "peers": [{
                    "name": "server1",
                    "url": "http://10.249.1.205:8080/",
                    "role": "primary",
                    "auto-failover": true
                }, {
                    "name": "server2",
                    "url": "http://10.249.1.206:8080/",
                    "role": "standby",
                    "auto-failover": true
                }]
            }]
        }
    }],
[...]

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.
curl -X POST -H "Content-Type: application/json" -d '{
"command": "list-commands",
"service": [
"dhcp4"
]
}' http: //10.249.1.205:8080 [
{
"arguments": [
"build-report",
"config-get",
"config-reload",
"config-set",
"config-test",
"config-write",
"dhcp-disable",
"dhcp-enable",
"leases-reclaim",
"libreload",
"list-commands",
"server-tag-get",
"shutdown",
"statistic-get",
"statistic-get-all",
"statistic-remove",
"statistic-remove-all",
"statistic-reset",
"statistic-reset-all",
"statistic-sample-age-set",
"statistic-sample-age-set-all",
"statistic-sample-count-set",
"statistic-sample-count-set-all",
"version-get"
],
"result": 0
}
]

Now, when I get config and write the same config via REST api then hooks librares are deleted :(

Kea version stable 1.6.2

Best regards
Marcin





--
Marcin Romanowski / nicraM



_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users