zero-cache: respect ZERO_CHANGE_STREAMER_QUEUE_SIZE_BACK_PRESSURE_THRESHOLD#5557
zero-cache: respect ZERO_CHANGE_STREAMER_QUEUE_SIZE_BACK_PRESSURE_THRESHOLD#5557Karavil wants to merge 11 commits intorocicorp:mainfrom
Conversation
|
@Karavil is attempting to deploy a commit to the Rocicorp Team on Vercel. A member of the Team first needs to authorize it. |
|
Cleanup: removed duplicated 0.8 by introducing BACK_PRESSURE_RELEASE_RATIO constant in storer, and restored backward compatible initializeStreamer signature so tests and existing callsites do not need to pass undefined. |
|
Tweaked #maybeReleaseBackPressure: added isBelowThreshold helper to remove duplication, and moved the release comment to describe the combined condition. |
|
Moved the release comment above BACK_PRESSURE_RELEASE_RATIO and removed the in-condition comment that claimed a specific percent. |
|
Tweaked #maybeReleaseBackPressure to precompute release thresholds once (releaseBytesThreshold, releaseQueueSizeThreshold) instead of multiplying by BACK_PRESSURE_RELEASE_RATIO multiple times. |
Adds change streamer config option queueSizeBackPressureThreshold.
Env var: ZERO_CHANGE_STREAMER_QUEUE_SIZE_BACK_PRESSURE_THRESHOLD
Behavior: if set, the change streamer applies back pressure when either the existing heap based queued bytes threshold is exceeded or the queued change count exceeds this threshold. Release requires falling below both thresholds.