Skip to content

Logical backup incompatible with the main Postgres pod anti-affinity rules #593

@IlyaSemenov

Description

@IlyaSemenov

If enable_pod_antiaffinity is set to true, pods created by the logical backup cronjob are also started with anti-affinity. That doesn't make sense, and prevents logical backups on clusters where number of Postgres pods equals to the total number of nodes in the cluster (e.g. 2 nodes and 2 Postgres pods).

Expected

Logical backup pods are always started without anti-affinity (or at least it's possible to remove anti-affinity for logical backup while keeping it for database cluster pods).

If enable_pod_antiaffinity is set to true, pods created by the logical backup cronjob can not be scheduled to the same nodes because of matching labels. That prevents logical backups on clusters where number of Postgres pods equals to the total number of nodes in the cluster (e.g. 2 nodes and 2 Postgres pods).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions