mirror of
https://github.com/hanzo-io/cloud.git
synced 2026-11-02 17:30:47 +00:00
Defaults to 1s. Reducing this drops the CPU usage drastically (from ~30% to less than 1%) References: - https://github.com/google/cadvisor/blob/master/docs/runtime_options.md#housekeeping-intervals - https://akashrajpurohit.com/blog/optimizing-cadvisor-for-lower-cpu-usage/#conclusion
16 lines
293 B
Desktop File
16 lines
293 B
Desktop File
[Unit]
|
|
Description=cAdvisor Server
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/opt/cadvisor/cadvisor -listen_ip 127.0.0.1 --port 9338 -housekeeping_interval=10s
|
|
|
|
SyslogIdentifier=cadvisor
|
|
Restart=always
|
|
RestartSec=1
|
|
StartLimitInterval=0
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|