D.3 NRF Behavior Post Fault Recovery
During the database restore procedure, along with the configuration data, the NFProfile data/subscription data also gets restored which may not always be the latest state data at that moment. In this state, the NrfAuditor microservice may act upon the NFProfiles/NFsubscriptions which are not up-to-date yet. Also, the NFs is in process of moving to the current NRF which is available now. In this state, if the audit procedure is performed, NRF suspends those NFs and send out notifications to the consumer NFs. The same is applicable for NfSubscriptions, where the subscriptions may get deleted due to an older lastUpdatedTimestamp in the backup data.
To avoid this problem, NrfAuditor microservice waits for a waiting period
before resuming the auditing of NFProfiles and subscriptions as soon as it comes to
Ready state from NotReady state. An alert
("OcnrfAuditOperationsPaused
") is raised to indicate that the audit
processes have paused, see NRF Alerts section in Oracle Communications
Cloud Native Core, Network Repository Function User Guide. Once the waiting
period is elapsed, the audit processes resume and the alert is cleared.
To know about the computation of the waiting period, refer to "Controlled Shutdown of NRF" section in Oracle Communications Cloud Native Core, Network Repository Function User Guide.
Note:
The NrfAuditor pod goes to NotReady state whenever it loses connectivity with the database. During temporary connectivity fluctuations, the NrfAuditor pod may transition between Ready and NotReady states cause the cool off period to kick in for every NotReady to Ready transition. To avoid such short and frequent transitions, NrfAuditor microservice applies the waiting period only when the pod is in NotReady for more than 5 seconds.