实例id和公网ip存入redis
master
JangCan 2024-04-20 09:37:30 +08:00
parent b85e8795da
commit af665c6ebe
1 changed files with 5 additions and 0 deletions

View File

@ -215,6 +215,11 @@ public class GatewayLoadServiceImpl implements GatewayLoadService {
gatewayNodeInfo.setPublicAddress(instancesInformation.getPublicIpAddress());
gatewayNodeInfo.setPrivateAddress(instancesInformation.getPrivateIpAddress());
gatewayNodeCache.put(gatewayNodeInfo);
gatewayZSetNodeCache.put(instancesInformation.getPublicIpAddress(),0);
log.info("实例id和公网ip存入redis");
}else if (loadRate.longValue()<20){
//调用缩容逻辑
}