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

Add a timeout for archive_wal #136

Open
madtibo opened this issue Nov 25, 2020 · 1 comment
Open

Add a timeout for archive_wal #136

madtibo opened this issue Nov 25, 2020 · 1 comment

Comments

@madtibo
Copy link
Contributor

madtibo commented Nov 25, 2020

The archive_wal script can get stuck, for example, following a network problem:

/usr/bin/sss_ssh_knownhostsproxy -p 22 <ip>
ssh -n -- <ip> readlink -m -- /backups/pitr/
/bin/bash /usr/bin/archive_wal pg_wal/000000010000038C00000032

There is no automatic way to finalise the process.
It would be nice to configure a timeout that will error out when triggered.

@madtibo
Copy link
Contributor Author

madtibo commented Feb 3, 2021

Either add a /usr/bin/timeout before de command in the PostgreSQL archive_command parameter.

Or do it inside the script:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant