MEDIUM: server: implement check for dynamic servers
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 22 Jul 2021 14:04:59 +0000 (16:04 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Aug 2021 09:09:48 +0000 (11:09 +0200)
commit2fc4d39577ac8491cd0a07c7666e090a90d39144
treef954e57a787508738ad2fe03078d87205795fc83
parent9ecee0fa362e84af30d9c6371c9810db9b0ffcb4
MEDIUM: server: implement check for dynamic servers

Implement check support for dynamic servers. The "check" keyword is now
enabled for dynamic servers. If used, the server check is initialized
and the check task started in the "add server" CLI handler. The check is
explicitely disabled and must be manually activated via "enable health"
CLI handler.

The dynamic server refcount is incremented if a check is configured. On
"delete server" handler, the check is purged, which decrements the
refcount.
doc/management.txt
src/check.c
src/server.c