Commit b5cef20
Merge #110332
110332: rangefeed: increase the txn push interval to 1 second r=erikgrinaker a=erikgrinaker
With a default rangefeed closed timestamp interval of 3 seconds, and a default txn age of 10 seconds, there doesn't appear to be a good reason for attempting to push txns every 250 milliseconds.
This patch increases the push interval to 1 second, and adds an environment variable `COCKROACH_RANGEFEED_PUSH_TXNS_INTERVAL` to control it.
Epic: none
Release note (ops change): Rangefeeds regularly attempt to push long-running transactions to a future timestamp in order to emit checkpoints. The interval at which this is attempted has been increased from 250 milliseconds to 1 seconds. This is now configurable via the environment variable `COCKROACH_RANGEFEED_PUSH_TXNS_INTERVAL`.
Co-authored-by: Erik Grinaker <grinaker@cockroachlabs.com>1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | | - | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
0 commit comments