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.12k stars 3.81k forks source link

export: deprecate EXPORT #105297

Open amruss opened 1 year ago

amruss commented 1 year ago

EXPORT causes problems at a high scale. We've been recommending for a while changefeeds over export. Unfortunately, we're still seeing frequent escalations, such as this one. It would take a large investment in EXPORTs to make them more stable, inclusing adding memory monitoring and porting many of the checkpointing, compression, obs logic over from changefeeds. We are not going to make this investment.

We should do one or several of: 1) Deprecate EXPORT - put a deprecation notice in the docs and when you try to use export, notify you 2) When an EXPORT is initiated, check the number of ranges, disallow over a certain threshold (5000 ranges is the suggested threshold, could also be a cluster setting.

My recommendation is we do both

Jira issue: CRDB-28969

blathers-crl[bot] commented 1 year ago

cc @cockroachdb/cdc