-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: set wal_sender_timeout to 5min when joining through pg_basebackup #3586
fix: set wal_sender_timeout to 5min when joining through pg_basebackup #3586
Conversation
❗ By default, the pull request is configured to backport to all release branches.
|
e900587
to
67f7502
Compare
67f7502
to
29f0516
Compare
29f0516
to
34211c2
Compare
Oops... this doesn't work with PostgreSQL 11:
|
34211c2
to
93274b0
Compare
Would it make sense to make this parameter configurable? |
Probably yes, but if you can't have a fsync in 5 minutes, you're in big problems. Bigger than being able to clone a replica. |
781cca1
to
f9a9823
Compare
We changed it to |
We explicitly set a high-enough wal_sender_timeout for join-related pg_basebackup executions. A short timeout could not be enough in case the instance is slow to send data, like when the I/O is overloaded. Fixes cloudnative-pg#3337 Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
f9a9823
to
9537a28
Compare
/ok-to-merge e2e tests are fine |
…3586) We explicitly disable wal_sender_timeout for join-related pg_basebackup executions. A short timeout could not be enough if the instance is slow to send data, like when the I/O is overloaded. Fixes #3337 Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> (cherry picked from commit e052a1e)
…3586) We explicitly disable wal_sender_timeout for join-related pg_basebackup executions. A short timeout could not be enough if the instance is slow to send data, like when the I/O is overloaded. Fixes #3337 Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> (cherry picked from commit e052a1e)
Removing _wal_sender_timeout_ on pgbasebackup joining cluster. This PR is similar to #3586 but fixes the problem for nodes joining a cluster. Signed-off-by: Augusto Ribeiro Silva <ars@unsilo.com> Signed-off-by: Augusto Ribeiro Silva <augusto.mcc@gmail.com> Co-authored-by: Augusto Ribeiro Silva <ars@unsilo.com>
Removing _wal_sender_timeout_ on pgbasebackup joining cluster. This PR is similar to #3586 but fixes the problem for nodes joining a cluster. Signed-off-by: Augusto Ribeiro Silva <ars@unsilo.com> Signed-off-by: Augusto Ribeiro Silva <augusto.mcc@gmail.com> Co-authored-by: Augusto Ribeiro Silva <ars@unsilo.com> (cherry picked from commit 58eaf1f)
Removing _wal_sender_timeout_ on pgbasebackup joining cluster. This PR is similar to #3586 but fixes the problem for nodes joining a cluster. Signed-off-by: Augusto Ribeiro Silva <ars@unsilo.com> Signed-off-by: Augusto Ribeiro Silva <augusto.mcc@gmail.com> Co-authored-by: Augusto Ribeiro Silva <ars@unsilo.com> (cherry picked from commit 58eaf1f)
We explicitly set a high-enough wal_sender_timeout for join-related pg_basebackup executions. A short timeout could not be enough in case the instance is slow to send data, like when the I/O is overloaded.
Fixes #3337