Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

"resource_monitor.sh" script is used for monitoring Memory and CPU usage.
Located in the device path: "/fss/gw/usr/ccsp/tad/resource_monitor.sh".

Selfheal – Process Monitoring

...

"task_health_monitor.sh" script is used for monitoring RDK-B processes. This is located is located at path: "/fss/gw/usr/ccsp/tad/task_health_monitor.sh".  We We can monitor any RDK-B processes by adding the process pid in this script.

...

In Raspberry Pi the functionality of self-heal feature is provided by systemd.


Code Flow

Gliffy Diagramdrawio
diagramName
macroId1876289a-2afc-43ff-a0e4-66bc8940adee
nameCODE FLOW 1.drawio
pagePinrevision1

Resource Monitoring - resource_monitor.sh

draw.io Diagram
diagramNameRESOURCE MONITORING DIAG.drawio
revision1
Image Removed

  • resource_monitor.sh monitors the Memory and CPU usage
  • Average memory and CPU thresholds will be obtained from syscfg.db (default avg_cpu_threshold:100, avg_memory_threshold:100)

...

Process Monitoring - task_health_monitor.sh

draw.io Diagram
diagramNameprocess monitoring.drawio
revision1
Image Removed

  • task_health_monitor.sh monitors the status of various taks periodically and takes the corrective action
  • Default monitoring interval is 15mins and can be modified using resource_monitor_interval in syscfg.db
  • Monitors
    • Health of peer processor, in case of dual core processors
    • Other tasks added as part of the script
  • New tasks can be added by editing the script

...

Connectivity Test - self_heal_connectivity_test.sh

draw.io Diagram
diagramNameconnectivity test.drawio
revision1
Image Removed

  • Self_heal_connectivity_test.sh will run Ping and DNS tests.
  • ConnTest_PingInterval in syscfg.db specifies the frequency of the connectivity test.
  • If nothing specified, it is 60seconds by default.

...