appform-io / ranger

Service Discovery for Java
Apache License 2.0
7 stars 12 forks source link

Ranger client should work with in-memory cached data during disaster. #44

Open ToOnlyGaurav opened 1 week ago

ToOnlyGaurav commented 1 week ago

During disaster when ranger client is not able to get latest information from serviceDataSource, the current ranger-client will use the information only for a minute. Post that it will start marking the nodes as "Zombie node" and stop using this. This impacts the HA setup. We should give more time when ranger-client is not able to reach the Zookeeper or service and it should treat this situation differently.

 if(serviceNode.getLastUpdatedTimeStamp() < healthcheckZombieCheckThresholdTime) {
            log.warn("Zombie node [{}:{}] found for [{}]",
                      serviceNode.getHost(), serviceNode.getPort(), service.getServiceName());
            return false;
  }
santanusinha commented 3 days ago

Addressed in #46