Skip to content

[Feat] Haproxy behaviour tuning #1516

@a-b-v

Description

@a-b-v

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions