tiflow
tiflow copied to clipboard
TiCDC should respect cgroup limits
Bug Report
- What did you do? If possible, provide a recipe for reproducing the error.
TiCDC should respects cgroup limits on Linux:
Otherwise, TiCDC may be misconfigured and cause OOM or other issues,
- [x] https://github.com/pingcap/ticdc/pull/3436 unified sorter adjust memory usage according to system memory.
- [ ] Full support of recognizing cgroups, including cgroups set by systemd and manually.
- What did you expect to see?
N/A
- What did you see instead?
N/A
- Versions of the cluster
master, v4.0.12 and v5.0.1
For the second task, we can port TiKV cgroup detection https://github.com/tikv/tikv/blob/7b677d60ab3b60b3ef4750da09718ba8114060ed/components/tikv_util/src/sys/cgroup.rs
/unassign @zhaoxinyu /assign @overvenus
Task-2 is closed by https://github.com/pingcap/tiflow/pull/8589