+2197. [func] razvan
+ Added support for database connection retry on server startup.
+ The new 'retry-on-startup' parameter controls this behavior along
+ with the other existing parameters: 'on-fail',
+ 'max-reconnect-tries' and 'reconnect-wait-time'.
+ (Gitlab #3019)
+
2196. [func] tmark
The ping-check hook library can now be used with kea-dhcp4
in either multi-threaded or single-threaded mode.
If ``retry-on-startup`` is set to ``true``, the server will start reconnection
attempts even at server startup or on reconfigure events, and will honor the
action specified in the ``on-fail`` parameter.
+Database connection retries are not attempted on startup if the
+:ischooklib:`libdhcp_limits.so` is loaded because the hook library requires a
+valid connection to the database to check if JSON format is supported and to
+recount class limits.
During dynamic reconfiguration, all backends are disconnected and then
reconnected using the new configuration. If connectivity to any of the
If ``retry-on-startup`` is set to ``true``, the server will start reconnection
attempts even at server startup or on reconfigure events, and will honor the
action specified in the ``on-fail`` parameter.
+Database connection retries are not attempted on startup if the
+:ischooklib:`libdhcp_limits.so` is loaded because the hook library requires a
+valid connection to the database to check if JSON format is supported and to
+recount class limits.
Finally, the credentials of the account under which the server will
access the database should be set:
If ``retry-on-startup`` is set to ``true``, the server will start reconnection
attempts even at server startup or on reconfigure events, and will honor the
action specified in the ``on-fail`` parameter.
+Database connection retries are not attempted on startup if the
+:ischooklib:`libdhcp_limits.so` is loaded because the hook library requires a
+valid connection to the database to check if JSON format is supported and to
+recount class limits.
Finally, the credentials of the account under which the server will
access the database should be set:
respective client class or subnet. To reset the lease count, change the client class name
or the subnet ID.
+.. note::
+
+ Database connection retries are not attempted on startup if the
+ :ischooklib:`libdhcp_limits.so` is loaded because the hook library requires a
+ valid connection to the database to check if JSON format is supported and to
+ recount class limits.
+
.. _hooks-limits-lease-limiting:
Lease Limiting