RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
resource_monitor.sh
task_health_monitor.sh
corrective_action.sh
Resource Monitoring
"resource_monitor.sh" script is used for monitoring Memory and CPU usage.Monitors the resources periodically (eg: 60 seconds). If "Average Memory Used" reaches threshold value, reboot action will be executed.
For Resource Monitor Sequence ,
i) First cycle onwards - sleep will calculate based on below commands
Device.SelfHeal.ResourceMonitor.X_RDKCENTRAL-COM_UsageComputeWindow *60 . For example : By default, RMInterval value as 1 . so, sleep will be 60.
Process Monitoring
...
For task monitor sequence,
i) First cycle onwards - sleep will calculate based on below commands
Device.SelfHeal.ResourceMonitor.X_RDKCENTRAL-COM_UsageComputeWindow *60 . For example : By default, RMInterval value as 1 . so, sleep will be 60.
Connectivity Test
"self_heal_connectivity_test.sh" script is used for ping test.Ping test will be done through server IP/URI (this needs to be configured). If server IP/URI is not configured, Ping test won't be executed and no action will be taken. If server is configured and ping test fails, device will stop the LAN functionality.
For Connectivity Test sequence ,
i) After boot-up,Very First cycle - random sleep functionality call was called.
II) Second cycle onwards - sleep will calculate based on below commands
Device.SelfHeal.ConnectivityTest.X_RDKCENTRAL-COM_PingInterval - value of this command * 60 . For example : By default, PingInterval value as 60 . so, sleep will be 3600.
SelfHeal Logs
Self heal logs will be created on below folder,
/rdklogs/logs/SelfHeal.txt.0
<Architecture Diagram>
...