[Kea-users] HA with kea-dhcp4: beginner questions

Stefan G. Weichinger lists at xunil.at
Wed Nov 23 13:03:13 UTC 2022


Am 23.11.22 um 13:41 schrieb Darren Ankney:
> It may be that your logs are rotating too quickly after seeing your
> logging configuration.  There may be a large amount of logs in a short
> period of time during trouble events. depending how many clients you
> have.  According to
> https://kea.readthedocs.io/en/kea-2.3.2/arm/logging.html maxsize is in
> bytes, so you've got it set to 200KB logfile size.  maxver defines how
> many rotated files to keep.  So you could keep a maximum of 1.5MB of
> logs (unless my math is off).

Yes, about that. I copied that block from the docs, I assume:

https://kea.readthedocs.io/en/kea-2.3.2/arm/logging.html#example-logger-configurations

Currently I have logs until around 1am back. But only with severity "INFO"

I increase "maxsize" to its default of 10 MB and "maxver" to 10 (I'll be 
on vacation after tomorrow and would like to collect all logs while I am 
away ...) or so.

Suggestions for debuglevel? full 99? (yes, I'd have to set severity "DEBUG")

>  We get these messages every 10 seconds:
> 
> COMMAND_RECEIVED Received command 'ha-heartbeat'
> 
> during normal operation.  I think you won't have a very long record of
> what is happening with the server with these settings.
> 
> 
> 06:32:57.393 adc2 kea-dhcp4.ha-hooks HA_STATE_TRANSITION server
> transitions from HOT-STANDBY to PARTNER-DOWN state, partner state is
> UNDEFINED
> 
> It looks like adc2 lost connection to adc1 (you said adc2 was the
> primary).  I guess that may have been the point  that your onsite
> administrator unplugged adc1.  Is there anything that is not labeled
> kea-dhcp4.ha-hooks in the logfile earlier than this?

I look into kea-debug.log.1 on adc2 now, where that line comes from.

before that I have

327 06:31:37.513 kea-dhcp4.stat-cmds-hooks STAT_CMDS_LEASE4_GET 
stat-lease4-get command successful, parameters: [all subnets] rows found: 4
327 06:31:37.517 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'statistic-get'
327 06:31:40.412 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'ha-heartbeat'
327 06:31:45.389 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'statistic-get-all'
327 06:31:45.398 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'subnet4-list'
327 06:31:55.391 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'statistic-get-all'
327 06:31:55.398 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'subnet4-list'
327 06:32:05.392 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'statistic-get-all'
327 06:32:05.404 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'subnet4-list'
327 06:32:06.405 kea-dhcp4.ha-hooks HA_HEARTBEAT_COMMUNICATIONS_FAILED 
failed to send heartbeat to adc1 (http://10.0.0.231:8000/): Connection 
timed out
327 06:32:15.381 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'statistic-get-all'
327 06:32:15.390 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'subnet4-list'
327 06:32:21.398 kea-dhcp4.ha-hooks HA_HEARTBEAT_COMMUNICATIONS_FAILED 
failed to send heartbeat to adc1 (http://10.0.0.231:8000/): No route to host
327 06:32:25.391 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'statistic-get-all'
327 06:32:25.404 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'subnet4-list'
327 06:32:33.415 kea-dhcp4.ha-hooks HA_HEARTBEAT_COMMUNICATIONS_FAILED 
failed to send heartbeat to adc1 (http://10.0.0.231:8000/): No route to host
327 06:32:35.382 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'statistic-get-all'
327 06:32:35.390 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'subnet4-list'
327 06:32:45.383 kea-dhcp4.ha-hooks HA_HEARTBEAT_COMMUNICATIONS_FAILED 
failed to send heartbeat to adc1 (http://10.0.0.231:8000/): No route to host
327 06:32:45.384 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'statistic-get-all'
327 06:32:45.394 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'subnet4-list'
327 06:32:55.382 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'statistic-get-all'
327 06:32:55.390 kea-dhcp4.commands COMMAND_RECEIVED Received command 
'subnet4-list'
327 06:32:57.392 kea-dhcp4.ha-hooks HA_HEARTBEAT_COMMUNICATIONS_FAILED 
failed to send heartbeat to adc1 (http://10.0.0.231:8000/): No route to host
327 06:32:57.392 kea-dhcp4.ha-hooks HA_COMMUNICATION_INTERRUPTED 
communication with adc1 is interrupted
327 06:32:57.393 kea-dhcp4.ha-hooks HA_STATE_TRANSITION server 
transitions from HOT-STANDBY to PARTNER-DOWN state, partner state is 
UNDEFINED
327 06:32:57.393 kea-dhcp4.ha-hooks HA_LEASE_UPDATES_DISABLED lease 
updates will not be sent to the partner while in PARTNER-DOWN state





More information about the Kea-users mailing list