changefeedccl/kvevent: implement parallel event consumer #86902
Labels
A-cdc
Change Data Capture
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
stability-period-v22.2
T-cdc
Implement parallel kv event consumers which parallelize the encoding and emitting of KV events to external sinks.
Since we consume (encode and emit) an event in a single thread on each node we can only process events so fast. Adding parallelism here will help ensure that we are not the bottleneck. That is encoding and emitting events should keep up with events coming in from rangefeeds.
WIP PR: https://github.com/jayshrivastava/cockroach/tree/nprocs-3
Some issues to be addressed are:
ALTER CHANGEFEED
. Some tests fail because we modify options when altering a changefeed while the options are being used by the parallel consumer in the background. This should be fixed by returning copies of data in certain spots instead of pointers.changeAggregator.changedRowBuf
Jira issue: CRDB-18996
Epic CRDB-24463
The text was updated successfully, but these errors were encountered: