Skip to content

Commit 4c933b8

Browse files
committed
kvserver/rangefeed: enable bulk delivery by default
This enables bulk delivery during catch up scans by default, so long as it is also requested by the client, with a ~2MB size target. Release note (performance improvement): the efficiency and throughput of catch-up scans used by CDC and PCR is improved in cases where substantial catch-up work is required. Epic: none.
1 parent f2180a6 commit 4c933b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kv/kvserver/replica_rangefeed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ var rangeFeedBulkDeliverySize = settings.RegisterIntSetting(
225225
settings.SystemOnly,
226226
"kv.rangefeed.bulk_delivery.size",
227227
"approx size up to which rangefeeds may buffer events to be delivered in bulk during scans (0=disabled)",
228-
int64(metamorphic.ConstantWithTestRange("rangefeed-bulk_delivery", 0, 0, 4<<20)),
228+
int64(metamorphic.ConstantWithTestRange("rangefeed-bulk_delivery", 2<<20, 0, 4<<20)),
229229
)
230230

231231
// RangeFeed registers a rangefeed over the specified span. It sends updates to

0 commit comments

Comments
 (0)