mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 15:45:41 +00:00
Restrict the CPU usage of Clair (#5217)
This commit fixes #5072 Due to an issue in bzr, Clair container may consume a lot of CPU resource while updating the vuln data. This commit mitigates the impact by setting the cpu_quota of clair container. (default value of cpu_period is 100000 in v2 docker-compose template)
This commit is contained in:
parent
b02d100fb5
commit
cb0acbace4
|
@ -22,7 +22,7 @@ services:
|
|||
container_name: clair
|
||||
image: vmware/clair-photon:__clair_version__
|
||||
restart: always
|
||||
cpu_quota: 150000
|
||||
cpu_quota: 50000
|
||||
depends_on:
|
||||
- postgresql
|
||||
volumes:
|
||||
|
|
Loading…
Reference in New Issue
Block a user