Skip to content

K8SPG-615: Add initialDelaySeconds for backups#1124

Merged
hors merged 2 commits intomainfrom
K8SPG-615
Apr 15, 2025
Merged

K8SPG-615: Add initialDelaySeconds for backups#1124
hors merged 2 commits intomainfrom
K8SPG-615

Conversation

@egegunes
Copy link
Copy Markdown
Contributor

@egegunes egegunes commented Apr 9, 2025

K8SPG-615 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:
In some environments, backup pod can be scheduled to a node but might need some time to be able to reach API server.

Solution:
We're introducing a new field to delay starting backup after pod is scheduled. If user configures spec.backups.pgbackrest.manual.initialDelaySeconds, backup process will wait for configured time before connecting to API server and starting the backup. Sleep duration will be printed in backup container logs:

time="2025-04-09T08:40:28Z" level=info msg="sleeping for 30 seconds"

Helm chart PR: percona/percona-helm-charts#522

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported PG version?
  • Does the change support oldest and newest supported Kubernetes version?

@hors hors added this to the 2.7.0 milestone Apr 9, 2025
gkech
gkech previously approved these changes Apr 10, 2025
hors
hors previously approved these changes Apr 10, 2025
nmarukovich
nmarukovich previously approved these changes Apr 14, 2025
@egegunes egegunes dismissed stale reviews from nmarukovich, hors, and gkech via 80def36 April 15, 2025 10:48
@JNKPercona
Copy link
Copy Markdown
Collaborator

Test name Status
backup-enable-disable passed
custom-extensions passed
custom-tls passed
demand-backup passed
finalizers passed
init-deploy passed
monitoring passed
monitoring-pmm3 passed
one-pod passed
operator-self-healing passed
pitr passed
scaling passed
scheduled-backup passed
self-healing failure
sidecars passed
start-from-backup passed
tablespaces passed
telemetry-transfer passed
upgrade-consistency passed
upgrade-minor passed
users passed
We run 21 out of 21

commit: 80def36
image: perconalab/percona-postgresql-operator:PR-1124-80def362c

@hors hors merged commit f0f13b4 into main Apr 15, 2025
15 of 16 checks passed
@hors hors deleted the K8SPG-615 branch April 15, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants