cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.04k stars 3.79k forks source link

cdc: handle pts contention better #98585

Open HonoreDB opened 1 year ago

HonoreDB commented 1 year ago

When running many changefeeds separately, the protected timestamp system can get overwhelmed, and we don't seem to have many knobs to tune how often we make calls. We should do some or all of the following:

Jira issue: CRDB-25344

Epic CRDB-28882

blathers-crl[bot] commented 1 year ago

cc @cockroachdb/cdc

miretskiy commented 1 year ago

What kind of contention are we talking about? Do we have observations that show this to be the problem?

Changefeed does have the knobs to slow down creation -- we won't write anything more than once every 30 seconds. Many changefeeds -- well, that's another question -- I suspect all writes go to the same range which may experience load -- but ... presumably it should split at some point?

amruss commented 1 year ago

Support issue: https://github.com/cockroachlabs/support/issues/2119