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

synchronous replication for PG #3

Open
bodymindarts opened this issue Apr 27, 2017 · 2 comments
Open

synchronous replication for PG #3

bodymindarts opened this issue Apr 27, 2017 · 2 comments

Comments

@bodymindarts
Copy link
Contributor

Currently PG replicas are potentially a bit behind the master, so there could be data loss in the event of a failover

@jamessewell
Copy link
Contributor

As part of the simple version of you might want to include application_name in primary_conninfo in recovery.conf:

primary_conninfo = 'application_name= '{{cfg.replication.application_name}} user={{cfg.replication.name}} password={{cfg.replication.password}} host={{svc.leader.sys.ip}} port={{cfg.port}} sslmode=prefer sslcompression=1'

Even if you don't use it to start with, it allows grouping of standbys if you would like (sync group, async group etc....)

@bodymindarts
Copy link
Contributor Author

Added application_name 1d2d8a1

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

2 participants