For the complete documentation index, see llms.txt. This page is also available as Markdown.

KPI Module Refresh

KPI Module Refresh ASN now provides Redis-based control commands to monitor and maintain synchronization of all the KPI processing cores. Users can execute the KPI Module Refresh API to capture the current status of all KPI cores along with a timestamp. This log includes key details such as the calculation time and interval ID for each KPI core, enabling visibility into their operational state. In scenarios where KPI cores exhibit significant time drift, users can trigger the KPI Module Refresh API to resynchronize them. This refresh operation aligns the KPI cores to within sub-500 ms deviation and, if necessary, also corrects discrepancies in interval IDs when the drift exceeds the defined KPI interval. The outcome of the refresh operation—whether successful or failed—is recorded and a post-refresh status dump is also captured in KPI Module Refresh logger to verify synchronization accuracy.

Redis Module - KPI Refresh Command:

  1. Expose a trigger from redis, so customers can use it to refresh kpi.

  2. HSET ASN_TRIGGER_KPI_REFRESH trigger TRUE.

  3. This should trigger a pause in all the KPI cores.

  4. After triggering the function will wait for all the KPI cores to go into pause state.

  5. Once all threads are gone into the pause/idle state, the threads will unset.

Redis command will dump the log of pause/restart - failure and success to

/var/log/kpi_refresh_results.txt

Redis Module - KPI Cores Status Command

  1. This is an on-demand command, which will be exposed on redis.

  2. This command will print the status of KPI cores, Following values will be printed in a file:

a. Start Calculation Time

b. Interval ID.

The file name will be /var/log/kpi_status.txt