-
Notifications
You must be signed in to change notification settings - Fork 490
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
tighten up default backpressure settings #1409
Comments
WDYT, @knizhnik , @petuhovskiy , @arssher |
We can not calculate precise time lag: we can only estimate it. Backpressure is used for two purposes:
|
Good idea, if we can pull it off. How easily and how reliably can we estimate the time lag? |
@kelvich , adding you in a conversation here, WDYT?
|
IMHO it is wrong direction.
So, as you can see - there are a lot of steps and time of execution of each steps depends on many factors, i.e. network and system load. It is almost impossible to somehow "theoretically" predict this time. We can only to to measure average speed and so make some prediction of how fast N bytes of write lag will reach pageserver and be processed by it. IMHO it is better to concentrate on providing some kind of "adaptive" behavior: if write lag increased, we may try to reduce pageserver background activity (delay or suspend compaction/GC, use larger delays,...). Increased write lag may be a reason to move tenant to another pageserver. |
Stale. |
it makes sense to configure backpressure in seconds, instead of bytes
configuration in seconds would untie the backpressure mechanics from the WAL redo speed
this relates to #1343 and to #1361
The text was updated successfully, but these errors were encountered: