Problem
Long queries are abruptly terminated
Description
The HAProxy template includes:
default-server inter 3s fastinter 1s fall 3 rise 4 on-marked-down shutdown-sessions{% if patroni_restapi_protocol == 'https' %} check-ssl verify none{% endif %}
This ensures outdated replicas are not used, but it also causes long-running queries to be terminated when a replica is marked down.
Importance
nice to have
Proposed implementation
Add an option to make this behavior configurable (e.g., disable or customize shutdown-sessions), so users can avoid interrupting long-running queries when needed.
Problem
Long queries are abruptly terminated
Description
The HAProxy template includes:
default-server inter 3s fastinter 1s fall 3 rise 4 on-marked-down shutdown-sessions{% if patroni_restapi_protocol == 'https' %} check-ssl verify none{% endif %}This ensures outdated replicas are not used, but it also causes long-running queries to be terminated when a replica is marked down.
Importance
nice to have
Proposed implementation
Add an option to make this behavior configurable (e.g., disable or customize shutdown-sessions), so users can avoid interrupting long-running queries when needed.