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

Make archive_command configurable using ENV variable. #1098

Open
seppelucas opened this issue Mar 26, 2025 · 0 comments
Open

Make archive_command configurable using ENV variable. #1098

seppelucas opened this issue Mar 26, 2025 · 0 comments

Comments

@seppelucas
Copy link

The archive command is currently hardcoded in configure_spilo.py We would like to be able to overwrite the default settings with an extra environment variable.

Due to an bug in wal-g our wal-g wal-push commands in the postgres archive_command hang indefinitely. PostgreSQL itself will save and retry WAL files when the archive_command is unsuccessful (source). We would like to tweak the archive_command to include a timeout to automatically fail if the request to our backup location (In our case S3) takes too long.

I could find the archive_command in the postgres-operator docs here. In my opinion an easy fix would be to have an extra ENV variable that defaults to the current setup to be completely backwards compatible. But that would allow us and other users to tweak the command when necessary.

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