tiflow icon indicating copy to clipboard operation
tiflow copied to clipboard

TiCDC should respect cgroup limits

Open overvenus opened this issue 3 years ago • 2 comments

Bug Report

  1. 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.
  1. What did you expect to see?

N/A

  1. What did you see instead?

N/A

  1. Versions of the cluster

master, v4.0.12 and v5.0.1

overvenus avatar May 19 '21 09:05 overvenus

For the second task, we can port TiKV cgroup detection https://github.com/tikv/tikv/blob/7b677d60ab3b60b3ef4750da09718ba8114060ed/components/tikv_util/src/sys/cgroup.rs

overvenus avatar Nov 12 '21 10:11 overvenus

/unassign @zhaoxinyu /assign @overvenus

nongfushanquan avatar Aug 08 '22 02:08 nongfushanquan

Task-2 is closed by https://github.com/pingcap/tiflow/pull/8589

amyangfei avatar Mar 24 '23 07:03 amyangfei