Skip to content
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

[bitnami/postgresql-ha] Repmgr Data resync Issue #23034

Closed
Sardonyxtechsupport opened this issue Feb 2, 2024 · 8 comments
Closed

[bitnami/postgresql-ha] Repmgr Data resync Issue #23034

Sardonyxtechsupport opened this issue Feb 2, 2024 · 8 comments
Assignees
Labels
postgresql-ha solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@Sardonyxtechsupport
Copy link

Sardonyxtechsupport commented Feb 2, 2024

Name and Version

bitnami/postgresql-ha 12.2.1

What architecture are you using?

amd64

What steps will reproduce the bug?

I am using the bitnami PostgreSQL HA with Kubernetes as helm chart. I have the 3 master nodes and 2 worker nodes.
When the pod get restarts , the data itself fully removed and start syncing the data from beginning.
Is the above process working actually by nature ?
(or)
Is there any other option to clear this Issue?

Are you using any custom parameters or values?

postgresql:
  postgresPassword: admin@123
  password: admin@123
  database: kubeapp
  repmgrPassword: admin@123
  repmgrConnectTimeout: 2
  repmgrReconnectAttempts: 1
  repmgrReconnectInterval: 2
  repmgrChildNodesCheckInterval: 2
  repmgrChildNodesDisconnectTimeout: 5
  replicaCount: 3
  image:
    debug: true

service:
  type: NodePort

volumePermissions:
  enabled: true

pgpool:
  adminPassword: admin@123
  replicaCount: 2
  customUsers:
     usernames: postgres
     passwords: admin@123

persistence:
  storageClass: "nfs-client"
  size: 50Gi``

What is the expected behavior?

No need to data gets remove and resync the data from beginning , when pod restarts

What do you see instead?

the data gets removed and resync the data from beginning, when pod restarts

@Sardonyxtechsupport Sardonyxtechsupport added the tech-issues The user has a technical issue about an application label Feb 2, 2024
@github-actions github-actions bot added the triage Triage is needed label Feb 2, 2024
@javsalgar javsalgar changed the title bitnami postgreSQL Repmgr Data resync Issue [bitnami/postgresql] Repmgr Data resync Issue Feb 5, 2024
@javsalgar
Copy link
Contributor

Hi,

At the moment this is the solution by default. We have an experimental feature to use pg_rewind

postgresql:
  ## EXPERMENTAL: Use pg_rewind for standby failover
  ## @param postgresql.usePgRewind Use pg_rewind for standby failover (experimental)
  ##
  usePgRewind: false

In case this does not work, it wtill fallback to removing the data.

@javsalgar javsalgar changed the title [bitnami/postgresql] Repmgr Data resync Issue [bitnami/postgresql-ha] Repmgr Data resync Issue Feb 5, 2024
@Sardonyxtechsupport
Copy link
Author

Hi,
You mentioning "This is an Experimental Feature".
Can I have some other solutions for fix this Issue ?

@javsalgar
Copy link
Contributor

javsalgar commented Feb 6, 2024

I'm afraid there no other options at the moment. Let's see if someone from the community can provide their own experience and maybe that helps for creating a new method.

@Sardonyxtechsupport
Copy link
Author

Sardonyxtechsupport commented Feb 6, 2024

Data is removing and resyncing ,when pod restarts.
the above functionality is ok ,when we have smaller records.
when we have more amount of records , the above functionality not suitable and it may lead to data loss.

@Sardonyxtechsupport
Copy link
Author

anyone could you give me the solution as soon as possible

Copy link

github-actions bot commented Mar 3, 2024

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Mar 3, 2024
Copy link

github-actions bot commented Mar 9, 2024

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot added the solved label Mar 9, 2024
@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
@cjreyn
Copy link

cjreyn commented Aug 19, 2024

We're also seeing this issue. Are there any plans to address it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postgresql-ha solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

4 participants