Modification des paramètres de cadvisor pour réduire la conso CPU
This commit is contained in:
parent
557635e242
commit
052a598d4d
1 changed files with 10 additions and 0 deletions
|
@ -1,10 +1,20 @@
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
version: '3.1'
|
version: '3.1'
|
||||||
|
|
||||||
|
# disable_metrics permet de gagner beaucoup de cpu cadvisor
|
||||||
|
# all metrics : accelerator,advtcp,app,cpu,cpuLoad,cpu_topology,cpuset,disk,diskIO,hugetlb,memory,memory_numa,network,oom_event,percpu,perf_event,process,referenced_memory,resctrl,sched,tcp,udp
|
||||||
|
# enable_metrics surcharge disable_metrics
|
||||||
|
# pour y voir clair : disable_metrics => on met tout, et dans enable_metrics : ce qu'on veut seulement
|
||||||
|
|
||||||
services:
|
services:
|
||||||
cadvisor:
|
cadvisor:
|
||||||
image: gcr.io/cadvisor/cadvisor:{{ docker_cadvisor_version }}
|
image: gcr.io/cadvisor/cadvisor:{{ docker_cadvisor_version }}
|
||||||
privileged: true
|
privileged: true
|
||||||
|
command:
|
||||||
|
- "-housekeeping_interval=30s"
|
||||||
|
- "-docker_only=true"
|
||||||
|
- "-enable_metrics=cpu,memory,network,diskIO"
|
||||||
|
- "-disable_metrics=accelerator,advtcp,app,cpu,cpuLoad,cpu_topology,cpuset,disk,diskIO,hugetlb,memory,memory_numa,network,oom_event,percpu,perf_event,process,referenced_memory,resctrl,sched,tcp,udp"
|
||||||
devices:
|
devices:
|
||||||
- /dev/kmsg:/dev/kmsg
|
- /dev/kmsg:/dev/kmsg
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in a new issue