Repository navigation
feat: Introduce 'smartStopDelay' for managing PG smart shutdown timeout - #2848
Conversation
|
❗ By default, the pull request is configured to backport to all release branches.
|
6eaa891 to
5dcf7d7
Compare
5dcf7d7 to
950df4c
Compare
442c21e to
9edf66c
Compare
|
/test limit=local |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/6272715205 |
2e17719 to
464548b
Compare
|
Hello, @litaocdl @YanniHu1996. I think we have broken the E2E test because now we are waiting a long time before cutting the connections. We should fix this issue by keeping the old behaviour in the tests by hard-coding 30 seconds in the fixtures |
464548b to
5468611
Compare
|
/test limit=local |
|
@litaocdl, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/6281145903 |
|
/test limit=local |
|
@litaocdl, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/6282179707 |
6b03b34 to
2667601
Compare
|
/test limit=local |
|
@litaocdl, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/6282762692 |
|
now the e2e pass, the failure in ugprade is waiting for cluster ready, but already have two pod ready and the third one with pvc in pending status, which is not with this change. |
|
/test limit=local |
|
@litaocdl, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/6284033145 |
6d78e7b to
2194f94
Compare
|
/test limit=local |
|
@litaocdl, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/6292950771 |
2194f94 to
414a041
Compare
|
/test limit=local |
|
@litaocdl, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/6295481203 |
|
/test limit=local |
688a81c to
cb6f7d4
Compare
Signed-off-by: YanniHu1996 <[email protected]>
Signed-off-by: Tao Li <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Tao Li <[email protected]>
Signed-off-by: Tao Li <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
cb6f7d4 to
c04fbc1
Compare
IMPORTANT: The default value of `stopDelay` has now been changed to 1800 seconds, equivalent of half an hour. Previously, it was set to 30 seconds. This patch also introduces a new parameter, called `smartStopDelay`, to control the window of time reserved for the smart shutdown of Postgres to complete. The general formula to compute the overall timeout to stop Postgres is `max(stopDelay - smartStopDelay, 30)`. Closes #2844 Signed-off-by: YanniHu1996 <[email protected]> Signed-off-by: Tao Li <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Gabriele Bartolini <[email protected]> Co-authored-by: Tao Li <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> Co-authored-by: Gabriele Bartolini <[email protected]>
IMPORTANT: The default value of `stopDelay` has now been changed to 1800 seconds, equivalent of half an hour. Previously, it was set to 30 seconds. This patch also introduces a new parameter, called `smartStopDelay`, to control the window of time reserved for the smart shutdown of Postgres to complete. The general formula to compute the overall timeout to stop Postgres is `max(stopDelay - smartStopDelay, 30)`. Closes #2844 Signed-off-by: YanniHu1996 <[email protected]> Signed-off-by: Tao Li <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Gabriele Bartolini <[email protected]> Co-authored-by: Tao Li <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> Co-authored-by: Gabriele Bartolini <[email protected]> Signed-off-by: Tao Li <[email protected]>
Closes: #2844