[Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2

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

[Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2

Pizu
Hi,

Am testing the HA and if I switch off the primary node nothing works. can you please help?

Primary Configuration:

        "hooks-libraries": [{
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [{
                            "heartbeat-delay": 10000,
                            "max-ack-delay": 10000,
                            "max-response-delay": 45000,
                            "max-unacked-clients": 10,
                            "mode": "hot-standby",
                            "peers": [{
                                    "auto-failover": true,
                                    "name": "mstkeadhcpsrv01.corporate.intra",
                                    "role": "primary",
                                    "url": "http://172.16.193.39:8080/"
                                }, {
                                    "auto-failover": true,
                                    "name": "ztnkeadhcpsrv01.corporate.intra",
                                    "role": "standby",
                                    "url": "http://172.16.60.39:8080/"
                                }
                            ],
                            "send-lease-updates": true,
                            "sync-leases": true,
                            "sync-page-limit": 10000,
                            "sync-timeout": 60000,
                            "this-server-name": "mstkeadhcpsrv01.corporate.intra"
                        }
                    ]
                }
            }
        ],

Standby Configuration:

        "hooks-libraries": [{
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [{
                            "heartbeat-delay": 10000,
                            "max-ack-delay": 10000,
                            "max-response-delay": 45000,
                            "max-unacked-clients": 10,
                            "mode": "hot-standby",
                            "peers": [{
                                    "auto-failover": true,
                                    "name": "mstkeadhcpsrv01.corporate.intra",
                                    "role": "primary",
                                    "url": "http://172.16.193.39:8080/"
                                }, {
                                    "auto-failover": true,
                                    "name": "ztnkeadhcpsrv01.corporate.intra",
                                    "role": "standby",
                                    "url": "http://172.16.60.39:8080/"
                                }
                            ],
                            "send-lease-updates": true,
                            "sync-leases": true,
                            "sync-page-limit": 10000,
                            "sync-timeout": 60000,
                            "this-server-name": "ztnkeadhcpsrv01.corporate.intra"
                        }
                    ]
                }
            }
        ],

Regards,

David

_______________________________________________
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] HA - Hot-Stanby Problem - Kea v1.6.1/2

Ismael Suarez Maldonado
With a similar config (basically the same), I am facing the same situation on 1.6.2. Anyone care to point out some obvios configs that we might be missing?



--

Ism


-----Original Message-----
From: Pizu <[hidden email]<mailto:Pizu%20%[hidden email]%3e>>
To: [hidden email]<mailto:[hidden email]>
Subject: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
Date: Mon, 22 Jun 2020 16:47:23 +0200

Hi,

Am testing the HA and if I switch off the primary node nothing works. can you please help?

Primary Configuration:

        "hooks-libraries": [{
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [{
                            "heartbeat-delay": 10000,
                            "max-ack-delay": 10000,
                            "max-response-delay": 45000,
                            "max-unacked-clients": 10,
                            "mode": "hot-standby",
                            "peers": [{
                                    "auto-failover": true,
                                    "name": "mstkeadhcpsrv01.corporate.intra",
                                    "role": "primary",
                                    "url": "http://172.16.193.39:8080/"
                                }, {
                                    "auto-failover": true,
                                    "name": "ztnkeadhcpsrv01.corporate.intra",
                                    "role": "standby",
                                    "url": "http://172.16.60.39:8080/"
                                }
                            ],
                            "send-lease-updates": true,
                            "sync-leases": true,
                            "sync-page-limit": 10000,
                            "sync-timeout": 60000,
                            "this-server-name": "mstkeadhcpsrv01.corporate.intra"
                        }
                    ]
                }
            }
        ],

Standby Configuration:

        "hooks-libraries": [{
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [{
                            "heartbeat-delay": 10000,
                            "max-ack-delay": 10000,
                            "max-response-delay": 45000,
                            "max-unacked-clients": 10,
                            "mode": "hot-standby",
                            "peers": [{
                                    "auto-failover": true,
                                    "name": "mstkeadhcpsrv01.corporate.intra",
                                    "role": "primary",
                                    "url": "http://172.16.193.39:8080/"
                                }, {
                                    "auto-failover": true,
                                    "name": "ztnkeadhcpsrv01.corporate.intra",
                                    "role": "standby",
                                    "url": "http://172.16.60.39:8080/"
                                }
                            ],
                            "send-lease-updates": true,
                            "sync-leases": true,
                            "sync-page-limit": 10000,
                            "sync-timeout": 60000,
                            "this-server-name": "ztnkeadhcpsrv01.corporate.intra"
                        }
                    ]
                }
            }
        ],

Regards,

David

_______________________________________________

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]<mailto:[hidden email]>

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

_______________________________________________
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] HA - Hot-Stanby Problem - Kea v1.6.1/2

Pizu
The only way to work was to switch off (init 0) the primary and it worked, keactrl stop only doesn't work it gives connect refused and not no route to host, that's the only difference.

On Tue, 23 Jun 2020, 21:51 Ismael Suarez, <[hidden email]> wrote:
With a similar config (basically the same), I am facing the same situation on 1.6.2. Anyone care to point out some obvios configs that we might be missing?



--

Ism


-----Original Message-----
From: Pizu <[hidden email]<mailto:[hidden email]%3e>>
To: [hidden email]<mailto:[hidden email]>
Subject: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
Date: Mon, 22 Jun 2020 16:47:23 +0200

Hi,

Am testing the HA and if I switch off the primary node nothing works. can you please help?

Primary Configuration:

        "hooks-libraries": [{
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [{
                            "heartbeat-delay": 10000,
                            "max-ack-delay": 10000,
                            "max-response-delay": 45000,
                            "max-unacked-clients": 10,
                            "mode": "hot-standby",
                            "peers": [{
                                    "auto-failover": true,
                                    "name": "mstkeadhcpsrv01.corporate.intra",
                                    "role": "primary",
                                    "url": "http://172.16.193.39:8080/"
                                }, {
                                    "auto-failover": true,
                                    "name": "ztnkeadhcpsrv01.corporate.intra",
                                    "role": "standby",
                                    "url": "http://172.16.60.39:8080/"
                                }
                            ],
                            "send-lease-updates": true,
                            "sync-leases": true,
                            "sync-page-limit": 10000,
                            "sync-timeout": 60000,
                            "this-server-name": "mstkeadhcpsrv01.corporate.intra"
                        }
                    ]
                }
            }
        ],

Standby Configuration:

        "hooks-libraries": [{
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [{
                            "heartbeat-delay": 10000,
                            "max-ack-delay": 10000,
                            "max-response-delay": 45000,
                            "max-unacked-clients": 10,
                            "mode": "hot-standby",
                            "peers": [{
                                    "auto-failover": true,
                                    "name": "mstkeadhcpsrv01.corporate.intra",
                                    "role": "primary",
                                    "url": "http://172.16.193.39:8080/"
                                }, {
                                    "auto-failover": true,
                                    "name": "ztnkeadhcpsrv01.corporate.intra",
                                    "role": "standby",
                                    "url": "http://172.16.60.39:8080/"
                                }
                            ],
                            "send-lease-updates": true,
                            "sync-leases": true,
                            "sync-page-limit": 10000,
                            "sync-timeout": 60000,
                            "this-server-name": "ztnkeadhcpsrv01.corporate.intra"
                        }
                    ]
                }
            }
        ],

Regards,

David

_______________________________________________

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]<mailto:[hidden email]>

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


_______________________________________________
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] HA - Hot-Stanby Problem - Kea v1.6.1/2

Thomas Markwalder
In reply to this post by Ismael Suarez Maldonado
The mostfrequent cause for this is non-compliant clients that do not set
the SECS field on retries.  If clients are not setting this field > 0 on
retries they will not be detected as unacked.  Take a look at the packet
capture and/or try setting this to 0.

See:
https://kea.readthedocs.io/en/latest/arm/hooks.html#load-balancing-configuration.
Following the sample config there is discussion of these parameters.





On 6/23/20 3:50 PM, Ismael Suarez wrote:

> With a similar config (basically the same), I am facing the same situation on 1.6.2. Anyone care to point out some obvios configs that we might be missing?
>
>
>
> --
>
> Ism
>
>
> -----Original Message-----
> From: Pizu <[hidden email]<mailto:Pizu%20%[hidden email]%3e>>
> To: [hidden email]<mailto:[hidden email]>
> Subject: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
> Date: Mon, 22 Jun 2020 16:47:23 +0200
>
> Hi,
>
> Am testing the HA and if I switch off the primary node nothing works. can you please help?
>
> Primary Configuration:
>
>          "hooks-libraries": [{
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
>                  "parameters": {}
>              }, {
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
>                  "parameters": {}
>              }, {
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
>                  "parameters": {
>                      "high-availability": [{
>                              "heartbeat-delay": 10000,
>                              "max-ack-delay": 10000,
>                              "max-response-delay": 45000,
>                              "max-unacked-clients": 10,
>                              "mode": "hot-standby",
>                              "peers": [{
>                                      "auto-failover": true,
>                                      "name": "mstkeadhcpsrv01.corporate.intra",
>                                      "role": "primary",
>                                      "url": "http://172.16.193.39:8080/"
>                                  }, {
>                                      "auto-failover": true,
>                                      "name": "ztnkeadhcpsrv01.corporate.intra",
>                                      "role": "standby",
>                                      "url": "http://172.16.60.39:8080/"
>                                  }
>                              ],
>                              "send-lease-updates": true,
>                              "sync-leases": true,
>                              "sync-page-limit": 10000,
>                              "sync-timeout": 60000,
>                              "this-server-name": "mstkeadhcpsrv01.corporate.intra"
>                          }
>                      ]
>                  }
>              }
>          ],
>
> Standby Configuration:
>
>          "hooks-libraries": [{
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
>                  "parameters": {}
>              }, {
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
>                  "parameters": {}
>              }, {
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
>                  "parameters": {
>                      "high-availability": [{
>                              "heartbeat-delay": 10000,
>                              "max-ack-delay": 10000,
>                              "max-response-delay": 45000,
>                              "max-unacked-clients": 10,
>                              "mode": "hot-standby",
>                              "peers": [{
>                                      "auto-failover": true,
>                                      "name": "mstkeadhcpsrv01.corporate.intra",
>                                      "role": "primary",
>                                      "url": "http://172.16.193.39:8080/"
>                                  }, {
>                                      "auto-failover": true,
>                                      "name": "ztnkeadhcpsrv01.corporate.intra",
>                                      "role": "standby",
>                                      "url": "http://172.16.60.39:8080/"
>                                  }
>                              ],
>                              "send-lease-updates": true,
>                              "sync-leases": true,
>                              "sync-page-limit": 10000,
>                              "sync-timeout": 60000,
>                              "this-server-name": "ztnkeadhcpsrv01.corporate.intra"
>                          }
>                      ]
>                  }
>              }
>          ],
>
> Regards,
>
> David
>
> _______________________________________________
>
> 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]<mailto:[hidden email]>
>
> https://lists.isc.org/mailman/listinfo/kea-users
>
> _______________________________________________
> 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

_______________________________________________
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] HA - Hot-Stanby Problem - Kea v1.6.1/2

Ismael Suarez Maldonado
In reply to this post by Pizu
In my case, not even shuting down se 'server1' makes it work.

Here is the log of server1:
2020-06-24 12:51:39.243 WARN  [kea-dhcp4.ha-hooks/5185] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server2 (http://x.x.x.13:8000/<http://10.10.220.13:8000/>): Connection timed out
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_STATE_TRANSITION server transitions from PARTNER-DOWN to WAITING state, partner state is PARTNER-DOWN
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_LEASE_UPDATES_DISABLED lease updates will not be sent to the partner while in WAITING state
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_LOCAL_DHCP_DISABLE local DHCP service is disabled while the server1 is in the WAITING state
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_STATE_TRANSITION server transitions from WAITING to SYNCING state, partner state is PARTNER-DOWN
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_LEASE_UPDATES_DISABLED lease updates will not be sent to the partner while in SYNCING state
2020-06-24 12:51:46.058 INFO  [kea-dhcp4.ha-hooks/5185] HA_SYNC_START starting lease database synchronization with server2
2020-06-24 12:51:46.062 INFO  [kea-dhcp4.ha-hooks/5185] HA_LEASES_SYNC_LEASE_PAGE_RECEIVED received 1 leases from server2
2020-06-24 12:51:46.063 INFO  [kea-dhcp4.ha-hooks/5185] HA_SYNC_SUCCESSFUL lease database synchronization with server2 completed successfully in 5.390 ms
2020-06-24 12:51:46.064 INFO  [kea-dhcp4.ha-hooks/5185] HA_STATE_TRANSITION server transitions from SYNCING to READY state, partner state is PARTNER-DOWN
2020-06-24 12:51:46.064 INFO  [kea-dhcp4.ha-hooks/5185] HA_LEASE_UPDATES_DISABLED lease updates will not be sent to the partner while in READY state
2020-06-24 12:51:48.066 INFO  [kea-dhcp4.commands/5185] COMMAND_RECEIVED Received command 'ha-heartbeat'
2020-06-24 12:51:51.072 INFO  [kea-dhcp4.ha-hooks/5185] HA_STATE_TRANSITION server transitions from READY to HOT-STANDBY state, partner state is HOT-STANDBY
2020-06-24 12:51:51.072 INFO  [kea-dhcp4.ha-hooks/5185] HA_LEASE_UPDATES_ENABLED lease updates will be sent to the partner while in HOT-STANDBY state
2020-06-24 12:51:51.072 INFO  [kea-dhcp4.ha-hooks/5185] HA_LOCAL_DHCP_ENABLE local DHCP service is enabled while the server1 is in the HOT-STANDBY state
2020-06-24 12:51:53.074 INFO  [kea-dhcp4.commands/5185] COMMAND_RECEIVED Received command 'ha-heartbeat'
Here is the log of server2: (masked the IPs)
2020-06-24 12:50:11.145 WARN  [kea-dhcp4.ha-hooks/2796] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server1 (http://x.x.x.12:8000/<http://10.10.220.12:8000/>): Connection timed out
2020-06-24 12:50:11.145 INFO  [kea-dhcp4.ha-hooks/2796] HA_STATE_TRANSITION server transitions from HOT-STANDBY to PARTNER-DOWN state, partner state is UNDEFINED
2020-06-24 12:50:11.145 INFO  [kea-dhcp4.ha-hooks/2796] HA_LEASE_UPDATES_DISABLED lease updates will not be sent to the partner while in PARTNER-DOWN state
2020-06-24 12:50:26.162 WARN  [kea-dhcp4.ha-hooks/2796] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server1 (http://x.x.x.12:8000/<http://10.10.220.12:8000/>): Connection timed out
2020-06-24 12:50:41.180 WARN  [kea-dhcp4.ha-hooks/2796] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server1 (http://x.x.x.12:8000/<http://10.10.220.12:8000/>): Connection timed out
2020-06-24 12:50:56.197 WARN  [kea-dhcp4.ha-hooks/2796] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server1 (http://x.x.x.12:8000/<http://10.10.220.12:8000/>): Connection timed out
2020-06-24 12:51:11.213 WARN  [kea-dhcp4.ha-hooks/2796] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed to send heartbeat to server1 (http://x.x.x.12:8000/<http://10.10.220.12:8000/>): Connection timed out



Here the configs I'm testing.
.

.

.

      {

            "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",

            "parameters": {

                "high-availability": [{

                    "this-server-name": "server1",

                    "mode": "hot-standby",

                    "heartbeat-delay": 5000,

                    "max-response-delay": 10000,

                    "max-ack-delay": 5000,

                    "max-unacked-clients": 0,

                    "sync-timeout": 90000,

                    "peers": [{

                        "name": "server1",

                        "url": "http://x.x.x.12:8000/<http://10.10.220.12:8000/>",

                        "role": "primary",

                        "auto-failover": true

                    }, {

                        "name": "server2",

                        "url": "http://x.x.x.13:8000/<http://10.10.220.13:8000/>",

                        "role": "standby",

                        "auto-failover": true

                    }]

                }]

            }

      }
.

.
.

    "subnet4": [

        {

            "subnet": "192.168.1.0/24",

            "pools": [ { "pool": "192.168.1.2 - 192.168.1.21" } ],


            "option-data": [ { "name": "routers", "data": "192.168.1.1" } ]

        },

        {

            "subnet": "192.168.2.0/24",

            "pools": [ { "pool": "192.168.2.172 - 192.168.2.173" } ],


            "option-data": [ { "name": "routers", "data": "192.168.2.161" } ]

        },

        {

            "subnet": "192.168.7.0/28",

            "pools": [ { "pool": "192.168.7.5 - 192.168.7.10" } ],


            "option-data": [ { "name": "routers", "data": "192.168.7.1" } ]

        }

    ],

.

.

.


Anyone care to chime in, I welcome any input.


--

Ismael

-----Original Message-----
From: Pizu <[hidden email]<mailto:Pizu%20%[hidden email]%3e>>
To: Ismael Suarez <[hidden email]<mailto:Ismael%20Suarez%20%[hidden email]%3e>>
Cc: [hidden email]<mailto:[hidden email]>
Subject: Re: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
Date: Tue, 23 Jun 2020 21:59:34 +0200

The only way to work was to switch off (init 0) the primary and it worked, keactrl stop only doesn't work it gives connect refused and not no route to host, that's the only difference.

On Tue, 23 Jun 2020, 21:51 Ismael Suarez, <[hidden email]<mailto:[hidden email]>> wrote:
With a similar config (basically the same), I am facing the same situation on 1.6.2. Anyone care to point out some obvios configs that we might be missing?



--

Ism


-----Original Message-----
From: Pizu <[hidden email]<mailto:[hidden email]><mailto:Pizu%20%[hidden email]<mailto:Pizu%2520%[hidden email]>%3e>>
To: [hidden email]<mailto:[hidden email]><mailto:[hidden email]<mailto:[hidden email]>>
Subject: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
Date: Mon, 22 Jun 2020 16:47:23 +0200

Hi,

Am testing the HA and if I switch off the primary node nothing works. can you please help?

Primary Configuration:

        "hooks-libraries": [{
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [{
                            "heartbeat-delay": 10000,
                            "max-ack-delay": 10000,
                            "max-response-delay": 45000,
                            "max-unacked-clients": 10,
                            "mode": "hot-standby",
                            "peers": [{
                                    "auto-failover": true,
                                    "name": "mstkeadhcpsrv01.corporate.intra",
                                    "role": "primary",
                                    "url": "http://172.16.193.39:8080/"
                                }, {
                                    "auto-failover": true,
                                    "name": "ztnkeadhcpsrv01.corporate.intra",
                                    "role": "standby",
                                    "url": "http://172.16.60.39:8080/"
                                }
                            ],
                            "send-lease-updates": true,
                            "sync-leases": true,
                            "sync-page-limit": 10000,
                            "sync-timeout": 60000,
                            "this-server-name": "mstkeadhcpsrv01.corporate.intra"
                        }
                    ]
                }
            }
        ],

Standby Configuration:

        "hooks-libraries": [{
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
                "parameters": {}
            }, {
                "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [{
                            "heartbeat-delay": 10000,
                            "max-ack-delay": 10000,
                            "max-response-delay": 45000,
                            "max-unacked-clients": 10,
                            "mode": "hot-standby",
                            "peers": [{
                                    "auto-failover": true,
                                    "name": "mstkeadhcpsrv01.corporate.intra",
                                    "role": "primary",
                                    "url": "http://172.16.193.39:8080/"
                                }, {
                                    "auto-failover": true,
                                    "name": "ztnkeadhcpsrv01.corporate.intra",
                                    "role": "standby",
                                    "url": "http://172.16.60.39:8080/"
                                }
                            ],
                            "send-lease-updates": true,
                            "sync-leases": true,
                            "sync-page-limit": 10000,
                            "sync-timeout": 60000,
                            "this-server-name": "ztnkeadhcpsrv01.corporate.intra"
                        }
                    ]
                }
            }
        ],

Regards,

David

_______________________________________________

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]<mailto:[hidden email]><mailto:[hidden email]<mailto:[hidden email]>>

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

_______________________________________________
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] HA - Hot-Stanby Problem - Kea v1.6.1/2

Pizu
In reply to this post by Thomas Markwalder
Hi,

Sorry for the late reply, what do you mean non-compliant client? Switching completely off the machine only works switching off the service doesn't work.

Regards,

David


On Tue, 23 Jun 2020 at 22:14, Thomas Markwalder <[hidden email]> wrote:
The mostfrequent cause for this is non-compliant clients that do not set
the SECS field on retries.  If clients are not setting this field > 0 on
retries they will not be detected as unacked.  Take a look at the packet
capture and/or try setting this to 0.

See:
https://kea.readthedocs.io/en/latest/arm/hooks.html#load-balancing-configuration.
Following the sample config there is discussion of these parameters.





On 6/23/20 3:50 PM, Ismael Suarez wrote:
> With a similar config (basically the same), I am facing the same situation on 1.6.2. Anyone care to point out some obvios configs that we might be missing?
>
>
>
> --
>
> Ism
>
>
> -----Original Message-----
> From: Pizu <[hidden email]<mailto:[hidden email]%3e>>
> To: [hidden email]<mailto:[hidden email]>
> Subject: [Kea-users] HA - Hot-Stanby Problem - Kea v1.6.1/2
> Date: Mon, 22 Jun 2020 16:47:23 +0200
>
> Hi,
>
> Am testing the HA and if I switch off the primary node nothing works. can you please help?
>
> Primary Configuration:
>
>          "hooks-libraries": [{
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
>                  "parameters": {}
>              }, {
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
>                  "parameters": {}
>              }, {
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
>                  "parameters": {
>                      "high-availability": [{
>                              "heartbeat-delay": 10000,
>                              "max-ack-delay": 10000,
>                              "max-response-delay": 45000,
>                              "max-unacked-clients": 10,
>                              "mode": "hot-standby",
>                              "peers": [{
>                                      "auto-failover": true,
>                                      "name": "mstkeadhcpsrv01.corporate.intra",
>                                      "role": "primary",
>                                      "url": "http://172.16.193.39:8080/"
>                                  }, {
>                                      "auto-failover": true,
>                                      "name": "ztnkeadhcpsrv01.corporate.intra",
>                                      "role": "standby",
>                                      "url": "http://172.16.60.39:8080/"
>                                  }
>                              ],
>                              "send-lease-updates": true,
>                              "sync-leases": true,
>                              "sync-page-limit": 10000,
>                              "sync-timeout": 60000,
>                              "this-server-name": "mstkeadhcpsrv01.corporate.intra"
>                          }
>                      ]
>                  }
>              }
>          ],
>
> Standby Configuration:
>
>          "hooks-libraries": [{
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so",
>                  "parameters": {}
>              }, {
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_stat_cmds.so",
>                  "parameters": {}
>              }, {
>                  "library": "/usr/local/lib/kea/hooks/libdhcp_ha.so",
>                  "parameters": {
>                      "high-availability": [{
>                              "heartbeat-delay": 10000,
>                              "max-ack-delay": 10000,
>                              "max-response-delay": 45000,
>                              "max-unacked-clients": 10,
>                              "mode": "hot-standby",
>                              "peers": [{
>                                      "auto-failover": true,
>                                      "name": "mstkeadhcpsrv01.corporate.intra",
>                                      "role": "primary",
>                                      "url": "http://172.16.193.39:8080/"
>                                  }, {
>                                      "auto-failover": true,
>                                      "name": "ztnkeadhcpsrv01.corporate.intra",
>                                      "role": "standby",
>                                      "url": "http://172.16.60.39:8080/"
>                                  }
>                              ],
>                              "send-lease-updates": true,
>                              "sync-leases": true,
>                              "sync-page-limit": 10000,
>                              "sync-timeout": 60000,
>                              "this-server-name": "ztnkeadhcpsrv01.corporate.intra"
>                          }
>                      ]
>                  }
>              }
>          ],
>
> Regards,
>
> David
>
> _______________________________________________
>
> 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]<mailto:[hidden email]>
>
> https://lists.isc.org/mailman/listinfo/kea-users
>
> _______________________________________________
> 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

_______________________________________________
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

_______________________________________________
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