-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle cpu and memory check gracefully (#1094)
This old HQ script assumes a cgroupv2 environment, but the issue arises because some system doesn't have the required cgroupv2 files (/sys/fs/cgroup/cpu.max and /sys/fs/cgroup/memory.max). - If cpu.max and memory.max are missing, fall back to cgroupv1 - If neither cpu.max nor cpu.cfs_quota_us exists, use default values.
- Loading branch information
1 parent
969ba0e
commit 74ef3cb
Showing
1 changed file
with
36 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters