-
Notifications
You must be signed in to change notification settings - Fork 448
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
Start timeout and wal_keep_segments must be configurable #372
Comments
I'm not a Go guy, but after some reading of source code, I've found this cluster parameter Line 194 in 363332f
Maybe we should use it when starting replica with --timeout parameter?
|
@tarabanton We can make the start timeout configurable. I have to check if it can be based on the sync timeout since it's also used to start the primary instance. |
@sgotti The cause is high WAL generation rate. We have quite amount of data is transferred to the other host (several hundreds of gigabytes), old wal logs already deleted by master, when slave starts, thus leads to slave unable to start. Our cluster spec:
|
@tarabanton I'm not sure how to proceed here, wal_keep_segments isn't required since we use replication slots that will avoid removing wals not yet sent to standbys, but you said that wals are being removed so I'm not sure how this could happen. |
@tarabanton ping |
It seems, that I also forgot to clarify something.
In recent releases you've added option to stream wal logs during initial standby sync, it seems, that will be sufficient. |
@sgotti thanks for your help |
Good day.
We have stolon cluster with high WAL generation rate, so postgres can't start in hardcoded 60 seconds
stolon/pkg/postgresql/postgresql.go
Line 243 in 144d4b7
Also, 8 WAL segments (wal_keep_segments) is to low for us, so we are using little hack to override it to higher value.
Maybe wal_keep_segment should be allowed to be increased above current limit?
The text was updated successfully, but these errors were encountered: