-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Stop timeout advice is confusing #937
Comments
It's not necessarily a "90 second issue" so much as even at 90 seconds the docs say it might not be long enough. I imagine the grace period length is really just dependent on the host's environmental factors such as disk speed and amount of data in transit at the start of the signal being sent It's talking specifically about Docker here though and how Docker has a default grace period of 10 seconds. Similar discussions #544 #184 |
I think our intention with pointing to that specific document was just as an example of a critical database operation that might take up to 90 seconds to complete (so if you tried to stop the server during that operation, it would potentially need at least that long before you kill it if you don't want to risk data loss). There's not a really great document to link to about "smart" vs "fast" (or about shutting down the server in general), but doing Ctrl-F for "smart" on https://www.postgresql.org/docs/12/app-pg-ctl.html has a little bit. |
@tianon That's fair. Thanks for addressing my concern. Please consider adding this information to "how to use" since it seems quite relevant there? Otherwise, feel free to close this issue. |
It's difficult to balance our limited space on the Hub description with the sheer amount of things we could document there. 😬 🙈 I'm glad we got it explained well enough for you to understand! Hopefully this thread can serve as a good reference for other folks in the future. 👍 |
Please clarify the advice in the Dockerfile regarding stop timeout:
The referenced PG documentation mentions the time to become ready, not shut down. The PG shut down doc (at least for v12) doesn't mention the 90 second issue. Also, if this comment is in fact accurate/important, may I suggest putting it in the "how to use this image" doc?
The text was updated successfully, but these errors were encountered: