Add support for HAProxy L7 checks

This change add several configuration options to enable HTTP checks
to the HAProxy configuration, instead of the default TCP connection
checks (which continue to be the default).

Closes-Bug: #1880610
Change-Id: Ibadd5648cdf69eef42b05e29772dcae9897d668b
This commit is contained in:
Gabriel Cocenza 2023-02-17 10:21:23 -03:00
parent f84cee2634
commit 6711b12054
1 changed files with 5 additions and 0 deletions

View File

@ -321,6 +321,11 @@ class DesignateCharm(ch_plugins.PolicydOverridePlugin,
}
}
healthcheck = {
'option': 'httpchk GET /healthcheck',
'http-check': 'expect status 200',
}
required_relations = ['shared-db', 'amqp', 'identity-service',
'coordinator-memcached']