sonic-buildimage/dockers/docker-sonic-telemetry
yozhao101 3af05fdffe [Monit] Restart telemetry container if memory usage is beyond the threshold (#7645)
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.
2021-05-31 04:38:18 +00:00
..
base_image_files [Monit] Restart telemetry container if memory usage is beyond the threshold (#7645) 2021-05-31 04:38:18 +00:00
critical_processes [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
dialout.sh SONiC Management Framework Release 1.0 (#3488) 2019-12-23 21:47:16 -08:00
Dockerfile.j2 First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
start.sh First cut image update for kubernetes support. (#5421) 2020-12-22 08:01:33 -08:00
supervisord.conf [202012][dockers][supervisor] Increase event buffer size for process exit listener; Set all event buffer sizes to 1024 (#7203) 2021-04-01 12:52:19 -07:00
telemetry_vars.j2 [telemetry] Fix telemetry vars template path (#4938) 2020-07-12 18:08:52 +00:00
telemetry.sh [StreamingTelemetry] add noTLS support for debug purpose (#6704) 2021-02-23 13:55:01 -08:00