Skip to content

K8SPG-761: add support for the PGO_WORKERS env var #1135

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

Merged
merged 4 commits into from
Apr 23, 2025
Merged

K8SPG-761: add support for the PGO_WORKERS env var #1135

merged 4 commits into from
Apr 23, 2025

Conversation

pooknull
Copy link
Contributor

@pooknull pooknull commented Apr 18, 2025

K8SPG-761 Powered by Pull Request Badge

https://perconadev.atlassian.net/browse/K8SPG-761

DESCRIPTION

This PR adds support for the PGO_WORKERS environment variable in the operator. It allows to configure the number of concurrent reconciliations for the postgres-operator.crunchydata.com/v1beta1 PostgresCluster resource.

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?

@pooknull pooknull marked this pull request as ready for review April 18, 2025 14:14
Comment on lines 116 to 117
options.LeaderElection = true
options.LeaderElectionID = perconaRuntime.ElectionID
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are setting these here, why don't we move them inside the initmanager?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

egegunes
egegunes previously approved these changes Apr 21, 2025
@JNKPercona
Copy link
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: 30a70f5
image: perconalab/percona-postgresql-operator:PR-1135-30a70f5b2

@hors hors merged commit 4689dad into main Apr 23, 2025
17 of 18 checks passed
@hors hors deleted the K8SPG-761 branch April 23, 2025 10:01
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