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

keeper: add pg_rewind support #122

Merged
merged 1 commit into from
Mar 18, 2016
Merged

keeper: add pg_rewind support #122

merged 1 commit into from
Mar 18, 2016

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Mar 17, 2016

This patch adds pg_rewind support. By default it's disabled and can be
enabled setting the use_pg_rewind cluster config options to true.
Since pg_rewind needs to connect to the master instance with a superuser
role, the superuser credential needs to be provided (currently at
startup using environment variables or options (discouraged)) to all the
stolon-keeper processes. For security reason they cannot be provided
inside the cluster config.

It'll also work with synchronous replication (pg_rewind needs to connect
with synchronous_commit disabled at its session level).

Add related tests.

Add related documentation.

This patch adds pg_rewind support. By default it's disabled and can be
enabled setting the `use_pg_rewind` cluster config options to true.
Since pg_rewind needs to connect to the master instance with a superuser
role, the superuser credential needs to be provided (currently at
startup using environment variables or options (discouraged)) to all the
`stolon-keeper` processes. For security reason they cannot be provided
inside the cluster config.

It'll also work with synchronous replication (pg_rewind needs to connect
with `synchronous_commit` disabled at its session level).

Add related tests.

Add related documentation.
@sgotti
Copy link
Member Author

sgotti commented Mar 18, 2016

@s-hironobu @shaneog Merging this (it's working well and can be changed/improved in future). If you're going to test pg_rewind support please report issues or feature requests. Thanks.

@sgotti sgotti merged commit 3f8488d into sorintlab:master Mar 18, 2016
sgotti added a commit that referenced this pull request Mar 18, 2016
keeper: add pg_rewind support
@sgotti sgotti modified the milestone: v0.3.0 Sep 27, 2016
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.

None yet

1 participant