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

Disable prefetch when restore_command is called for pg_rewind #495

Merged
merged 5 commits into from
Sep 24, 2020

Conversation

CyberDem0n
Copy link
Contributor

We use the fact that %p parameter contains either RECOVERYHISTORY or RECOVERYXLOG, but in case of pg_rewind the file is being restored directly to pg_wal/%f
If it is detected, the following is done:

  • export WALG_DOWNLOAD_CONCURRENCY=1 environment for wal-g
  • Use -p 1 option for wal-e

In addition to that update README.rst and bump some dependencies.

Alexander Kukushkin added 4 commits September 23, 2020 16:07
* WALG_DOWNLOAD_CONCURRENCY=1 env for wal-g
* -p 1 option for wal-e
* Patroni with some bugfixes
* bump set_user version
@avaczi
Copy link
Contributor

avaczi commented Sep 24, 2020

👍

@sdudoladov
Copy link
Member

👍

1 similar comment
@CyberDem0n
Copy link
Contributor Author

👍

@CyberDem0n CyberDem0n merged commit 3651d94 into master Sep 24, 2020
@CyberDem0n CyberDem0n deleted the feature/rewind-restore-no-par branch September 24, 2020 10:31
dratzke pushed a commit to Patagona/spilo that referenced this pull request May 25, 2021
…o#495)

We use the fact that `%p` parameter contains either `RECOVERYHISTORY` or `RECOVERYXLOG`, but in case of pg_rewind the file is being restored directly to `pg_wal/%f`
If it is detected, the following is done:
* export WALG_DOWNLOAD_CONCURRENCY=1 environment for wal-g
* Use -p 1 option for wal-e

In addition to that update README.rst and bump some dependencies.
dratzke pushed a commit to Patagona/spilo that referenced this pull request Jul 26, 2021
…o#495)

We use the fact that `%p` parameter contains either `RECOVERYHISTORY` or `RECOVERYXLOG`, but in case of pg_rewind the file is being restored directly to `pg_wal/%f`
If it is detected, the following is done:
* export WALG_DOWNLOAD_CONCURRENCY=1 environment for wal-g
* Use -p 1 option for wal-e

In addition to that update README.rst and bump some dependencies.
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.

3 participants