Enhancement Proposal
Currently, the HAProxy charm is setting default timeouts that apply to all backend/frontends. While this is ok, there is chance some applications require extended timeouts. For example, the default timeout server is 5 minutes. However, this is not enough for MAAS (maas-region charm). Some MAAS APIs have slow responses either because of performance (machine listing) or due to waiting for machine power operations to succeed before returning the response to the user.
For these applications, it makes a lot of sense to be able to specify in the relation databag specific timeouts that can be applied to the relevant frontend/backend of HAProxy.
For maas-region charm in particular, there is an immediate need for timeout server which should be set at least to 15 minutes (900s)
A list of all available timeouts can be found in the HAProxy configuration docs and also in the attached screenshot: https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/
Impact
High (The feature has short-term technical value)
Impact Rationale
The non-existence of such option, can block charmed MAAS deployments when enlisting machines and require manual patching of the HAProxy template (see linked issue in the comments)
Enhancement Proposal
Currently, the HAProxy charm is setting default timeouts that apply to all backend/frontends. While this is ok, there is chance some applications require extended timeouts. For example, the default timeout server is 5 minutes. However, this is not enough for MAAS (maas-region charm). Some MAAS APIs have slow responses either because of performance (machine listing) or due to waiting for machine power operations to succeed before returning the response to the user.
For these applications, it makes a lot of sense to be able to specify in the relation databag specific timeouts that can be applied to the relevant frontend/backend of HAProxy.
For maas-region charm in particular, there is an immediate need for
timeout serverwhich should be set at least to 15 minutes (900s)A list of all available timeouts can be found in the HAProxy configuration docs and also in the attached screenshot: https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/
Impact
High (The feature has short-term technical value)
Impact Rationale
The non-existence of such option, can block charmed MAAS deployments when enlisting machines and require manual patching of the HAProxy template (see linked issue in the comments)