ribbon loadbalancer optimisation3
@@ -29,6 +29,7 @@ public class LcnLoadBalancerRule {
if(cachedServer == null){
logger.info("The server of key:" + key + " has not been cached yet!");
Constants.cacheModelInfo.put(key, server);
+ txTransactionLocal.getCachedModelList().add(key);
return server;
} else{
logger.info("The cached server info, host:" + cachedServer.getHost() + ", port:" + cachedServer.getPort());
