HAProxy considers Donor as a DOWN state, make it configurable

Description

https://github.com/percona/percona-docker/blob/pxc-operator-1.7.0/haproxy/dockerdir/usr/local/bin/check_pxc.sh#L31

The check script allows to use Donor if there is no other alive hosts, but sometimes applications prefer to keep connections and running queries even if the host is a Donor.

Environment

None

AFFECTED CS IDs

CS0016532

Smart Checklist

Activity

Show:

Nickolay Ihalainen July 7, 2023 at 12:58 PM

Could be closed, now it's good enough and will be even better after explaining things in https://jira.percona.com/browse/K8SPXC-1171

Slava Sarzhan March 14, 2023 at 2:39 PM

Can we close this task?

Sergey Pronin March 22, 2022 at 8:04 PM

 what do you think? Do you think it is enough? Shall we document it?

Slava Sarzhan April 6, 2021 at 12:20 PM
Edited

 under https://jira.percona.com/browse/K8SPXC-688  task I have added the possibility of adding  custom env variables  via CR. Also, now it is possible to add some customisation for HAProxy pods   e.g. it is possible to do the following using env variables:

 Is it ok for you?

Jira Bot March 23, 2021 at 5:56 AM

To:
CC:

Hi, I'm jira-bot, Percona's Jira automation tool. I've detected that someone from
Percona has made an edit to the Summary field of an issue that you reported.

I'm not sentient (yet) so I'm not sure whether the person fixed a typo, changed
a few words, or completely rewrote the text. In any case, it is Percona Engineering's
intention to make the Summary and Description of an issue as accurate as possible
so that we're fixing the actual problem you're encountering, and to avoid
misunderstandings about symptoms and causes.

If the current Summary does not accurately reflect the problem you are reporting,
or if you feel the change was otherwise inappropriate in some way, please add a
new comment explaining things and we'll address it as soon as we can.

This message will be added only once per issue, regardless of how many times
the Summary is edited.

message-code:summary-edited

Not a Bug

Details

Assignee

Reporter

Affects versions

Priority

Smart Checklist

Created March 22, 2021 at 3:07 PM
Updated March 5, 2024 at 5:55 PM
Resolved July 7, 2023 at 1:19 PM