Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get CPU core failed #135

Closed
istudies opened this issue Jan 5, 2023 · 3 comments
Closed

get CPU core failed #135

istudies opened this issue Jan 5, 2023 · 3 comments

Comments

@istudies
Copy link
Contributor

istudies commented Jan 5, 2023

Set holmes.WithCGroup(true) in the docker container.
The log message indicates that the cpu core failed to be obtained.

2023-01-05 14:53:05,141 [INFO] [Holmes] use cgroup to limit memory
2023-01-05 14:53:05,143 [INFO] [Holmes] collect interval is resetting to [10s]
2023-01-05 14:53:15,144 [ERROR] [Holmes] get CPU core failed, CPU core: 0, error: <nil>

cgroup version: v1

root@master:/root# grep cgroup /proc/filesystems
nodev   cgroup
@istudies
Copy link
Contributor Author

istudies commented Jan 5, 2023

Should be caused by not adding the resource limit. After starting with the resource limit, it looks OK

docker-compose.yaml

    ...
    deploy:
      resources:
        limits:
          cpus: '2'
          memory: 2g
   ...

@doujiang24
Copy link
Member

@istudies Thanks for your reporting. Could you help to add a comment for this WithCGroup method? Thanks again.

@istudies
Copy link
Contributor Author

istudies commented Jan 8, 2023

@doujiang24 #136 PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants