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

More than one clusters any ideas to manage inactive replication slots #878

Open
neslisah88 opened this issue Jun 8, 2022 · 1 comment
Open

Comments

@neslisah88
Copy link

neslisah88 commented Jun 8, 2022

Hello, I have a question for replication slots;

We have 2 clusters with physical replication slot created for 2nd cluster replication.

1- On cluster 1;

Creating physical slot manually : select pg_create_physical_replication_slot(‘slot_test’);

2- On cluster2

stolonctl-instance-staging update -p '{ "standbyConfig": { "standbySettings":
{ "primaryConnInfo": "host=staging.postgres.aaa user=replication port=6666 sslmode=require", "primarySlotName": "slot_test" }}}'

After these two steps, two clusters are connected to each other via replication slot. The issue here is after failover inactive replication slot is left on cluster 1 ,so replication connection is broken between cluster 1 and cluster 2.

Do you have any ideas how we can manage inactive replication slot situation in here?

Thanks.

@neslisah88
Copy link
Author

Any ideas or anything you can point to? Thanks.

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

No branches or pull requests

1 participant