-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[memory_monitoring] Monitoring High Memory Usage of Containers #1016
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Ubuntu <yozhao@yozhao-dev.q2ryrfy45r0utbtgx4kh2e1bob.phxx.internal.cloudapp.net>
Signed-off-by: Yong Zhao <yozhao@microsoft.com>
Signed-off-by: Yong Zhao <yozhao@microsoft.com>
Signed-off-by: Yong Zhao <yozhao@microsoft.com>
alerting ability. Signed-off-by: Yong Zhao <yozhao@microsoft.com>
Signed-off-by: Yong Zhao <yozhao@microsoft.com>
Signed-off-by: Yong Zhao <yozhao@microsoft.com>
Signed-off-by: Yong Zhao <yozhao@microsoft.com>
Signed-off-by: Yong Zhao <yozhao@microsoft.com>
Signed-off-by: Yong Zhao <yozhao@microsoft.com>
5. Monit will write an alerting message into syslog if it receives non-zero | ||
value from `memory_checker` for specified number of times during a monitoring | ||
interval. | ||
6. After the monitoring interval, Monit will write alerting messages into syslog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either alerting is disabled or specified container is not running. | ||
4. If runtime memory usage is larger than memory threshold, then `memory_checker` | ||
exits with non-zero value; Otherwise, `memory_checker` exits with zero value. | ||
5. Monit will write an alerting message into syslog if it receives non-zero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
```bash | ||
check program container_memory_lldp with path "/usr/bin/memory_checker lldp" | ||
if status == 3 for 10 times within 20 minutes then alert repeat every 1 cycles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
#### 2.2.2.1 Show High Memory Alerting of Containers | ||
``` | ||
admin@sonic:~$ show feature high_memory_alerting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#### 2.2.2.2 Show Memory Threshold of Containers | ||
``` | ||
admin@sonic:~$ show feature memory_threhsold | ||
Container Name MemThreshold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | ||
{ | ||
"FEATURE": { | ||
"database": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
This PR aims to provide high level design regarding to monitoring memory usage of containers in SONiC.