We have observed that there are thousands of devices in modified state for the ssrv2devices. and the devices are not getting deployed.
Release : 20.4
Component : UIM - DISCOVERY_SERVER
The discovery server probe was updating the alive_time of devices more frequently as it was getting the frequent updates from nis_cache read and other monitoring probes.To identify the root cause, we captured the niscache files from different robots and found that:
1. Some of the robots were getting regular updates on devices from probes like net_connect, hub. It's updating around 700-800 devices at the same time on a robot.
2. For few robots, niscache age is not getting calculated(it is coming as zero) and discovery_server is treating it as a new record and it is fetching all the files from niscache irrespective of any update. That's why it is updating the alive_time of all those dev files which are available in the niscache folder.
discovery_server 20.42 has optimizations in niscache read and last_niscache sync time are stored in the database.