Skip to content

feat: move shutdown logic to instance management - #3039

Merged
leonardoce merged 5 commits into
mainfrom
dev/3032
Oct 10, 2023
Merged

leonardoce merged 5 commits into
mainfrom
dev/3032

Conversation

@leonardoce

Copy link
Copy Markdown
Contributor

This patch moves the shutdown logic from the lifecycle manager to the instance manager, simplifying its structure.

The .spec.smartStopDelay field is used now as the time given to the PostgreSQL smart shutdown sequence. After that, we'll request PostgreSQL to shut down using the fast strategy. .spec.stopDelay is used as grace period of the PostgreSQL Pods.

Closes #3032

@github-actions github-actions Bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.19 labels Oct 10, 2023
@github-actions

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

mnencia and others added 4 commits October 10, 2023 10:15
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
@leonardoce

Copy link
Copy Markdown
Contributor Author

/ok-to-merge

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Oct 10, 2023
@leonardoce
leonardoce merged commit 197263b into main Oct 10, 2023
@leonardoce
leonardoce deleted the dev/3032 branch October 10, 2023 08:38
leonardoce added a commit that referenced this pull request Oct 10, 2023
This patch moves the shutdown logic from the lifecycle manager to the
instance manager, simplifying its structure.

The `.spec.smartStopDelay` field is used now as the time given to the
PostgreSQL smart shutdown sequence. After that, we'll request PostgreSQL
to shut down using the `fast` strategy within the overall `.spec.stopDelay`
time, which is the `terminationGracePeriodSeconds` of the Pods.

Closes #3032

Signed-off-by: Marco Nenciarini <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>

Co-authored-by: Marco Nenciarini <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
Co-authored-by: Gabriele Bartolini <[email protected]>
leonardoce added a commit that referenced this pull request Oct 10, 2023
This patch moves the shutdown logic from the lifecycle manager to the
instance manager, simplifying its structure.

The `.spec.smartStopDelay` field is used now as the time given to the
PostgreSQL smart shutdown sequence. After that, we'll request PostgreSQL
to shut down using the `fast` strategy within the overall `.spec.stopDelay`
time, which is the `terminationGracePeriodSeconds` of the Pods.

Closes #3032

Signed-off-by: Marco Nenciarini <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>

Co-authored-by: Marco Nenciarini <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
Co-authored-by: Gabriele Bartolini <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases ok to merge 👌 This PR can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move instance related logic away from lifecycle manager

5 participants