You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slack is noticing a lot of "stream lagged behind during consolidation"
errors because the "streamBufferSize" is hard-coded at only 8.
This PR adds vttablet cli arg --consolidator-stream-buffer-size
which allows increasing beyond the default (8, for parity)
if the site prefers trading some more memory so large results complete.
Copy file name to clipboardExpand all lines: go/flags/endtoend/vtcombo.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ Flags:
48
48
--config-persistence-min-interval duration minimum interval between persisting dynamic config changes back to disk (if no change has occurred, nothing is done). (default 1s)
49
49
--config-type string Config file type (omit to infer config type from file extension).
50
50
--consolidator-query-waiter-cap int Configure the maximum number of clients allowed to wait on the consolidator.
51
+
--consolidator-stream-buffer-size int Configure the stream consolidator buffer size for follower streams. A larger buffer reduces the chance of a follower being dropped during consolidation at the cost of increased memory usage. (default 8)
51
52
--consolidator-stream-query-size int Configure the stream consolidator query size in bytes. Setting to 0 disables the stream consolidator. (default 2097152)
52
53
--consolidator-stream-total-size int Configure the stream consolidator total size in bytes. Setting to 0 disables the stream consolidator. (default 134217728)
53
54
--consul-auth-static-file string JSON File to read the topos/tokens from.
Copy file name to clipboardExpand all lines: go/flags/endtoend/vttablet.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,7 @@ Flags:
81
81
--config-persistence-min-interval duration minimum interval between persisting dynamic config changes back to disk (if no change has occurred, nothing is done). (default 1s)
82
82
--config-type string Config file type (omit to infer config type from file extension).
83
83
--consolidator-query-waiter-cap int Configure the maximum number of clients allowed to wait on the consolidator.
84
+
--consolidator-stream-buffer-size int Configure the stream consolidator buffer size for follower streams. A larger buffer reduces the chance of a follower being dropped during consolidation at the cost of increased memory usage. (default 8)
84
85
--consolidator-stream-query-size int Configure the stream consolidator query size in bytes. Setting to 0 disables the stream consolidator. (default 2097152)
85
86
--consolidator-stream-total-size int Configure the stream consolidator total size in bytes. Setting to 0 disables the stream consolidator. (default 134217728)
86
87
--consul-auth-static-file string JSON File to read the topos/tokens from.
log.Info(fmt.Sprintf("Stream consolidator is enabled with query size set to %d and total size set to %d.", config.ConsolidatorStreamQuerySize, config.ConsolidatorStreamTotalSize))
utils.SetFlagBoolVar(fs, &enableConsolidatorReplicas, "enable-consolidator-replicas", false, "This option enables the query consolidator only on replicas.")
205
205
fs.Int64Var(¤tConfig.ConsolidatorStreamQuerySize, "consolidator-stream-query-size", defaultConfig.ConsolidatorStreamQuerySize, "Configure the stream consolidator query size in bytes. Setting to 0 disables the stream consolidator.")
206
206
fs.Int64Var(¤tConfig.ConsolidatorStreamTotalSize, "consolidator-stream-total-size", defaultConfig.ConsolidatorStreamTotalSize, "Configure the stream consolidator total size in bytes. Setting to 0 disables the stream consolidator.")
207
+
fs.IntVar(¤tConfig.ConsolidatorStreamBufferSize, "consolidator-stream-buffer-size", defaultConfig.ConsolidatorStreamBufferSize, "Configure the stream consolidator buffer size for follower streams. A larger buffer reduces the chance of a follower being dropped during consolidation at the cost of increased memory usage.")
207
208
208
209
fs.Int64Var(¤tConfig.ConsolidatorQueryWaiterCap, "consolidator-query-waiter-cap", 0, "Configure the maximum number of clients allowed to wait on the consolidator.")
209
210
utils.SetFlagDurationVar(fs, &healthCheckInterval, "health-check-interval", defaultConfig.Healthcheck.Interval, "Interval between health checks")
0 commit comments