feat(deploy): add cgroup v2 CPU controller preflight check#367
Conversation
fslongjin
commented
May 27, 2026
- Validate cgroup v2 'cpu' controller availability in install.sh and online-install.sh
- Add troubleshooting entry in deployment docs for Ubuntu/Debian cgroup v2 CPU controller issues
- Validate cgroup v2 'cpu' controller availability in install.sh and online-install.sh - Add troubleshooting entry in deployment docs for Ubuntu/Debian cgroup v2 CPU controller issues Signed-off-by: jinlong <jinlong@tencent.com>
|
Claude finished @fslongjin's task in 42s —— View job Review: feat(deploy): add cgroup v2 CPU controller preflight checkOverviewThis PR adds a cgroup v2 Changes
Positive Observations
Observations & Suggestions1. ShellCheck warning: SC2181 (minor) local subtree=""
if [[ -r "${cgroot}/cgroup.subtree_control" ]]; then
subtree="$(cat "${cgroot}/cgroup.subtree_control" 2>/dev/null || true)"
fi
if grep -qw cpu <<<"${subtree}"; then
return 0
fiShellCheck may suggest using 2. online-install.sh re-check after download 3. Possible race: 4. The Documentation ReviewThe troubleshooting table entries (both English and Chinese) are well-written:
SummaryThis is a well-crafted PR. The implementation is correct, robust, and consistent with existing patterns. The error messages are actionable and well-documented. I have no blocking concerns — this is ready to merge. |