3af05fdffe
Signed-off-by: Yong Zhao yozhao@microsoft.com Why I did it This PR aims to monitor the memory usage of streaming telemetry container and restart streaming telemetry container if memory usage is larger than the pre-defined threshold. How I did it I borrowed the system tool Monit to run a script memory_checker which will periodically check the memory usage of streaming telemetry container. If the memory usage of telemetry container is larger than the pre-defined threshold for 10 times during 20 cycles, then an alerting message will be written into syslog and at the same time Monit will run the script restart_service to restart the streaming telemetry container. How to verify it I verified this implementation on device str-7260cx3-acs-1. |
||
---|---|---|
.. | ||
base_image_files | ||
critical_processes | ||
dialout.sh | ||
Dockerfile.j2 | ||
start.sh | ||
supervisord.conf | ||
telemetry_vars.j2 | ||
telemetry.sh |