|
@@ -209,7 +209,7 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
|
|
|
//查询是否超过比例50%,如果超过,则启动128G服务器弹性伸缩
|
|
|
Float maxRate = fdageJson.getFloat("maxRate");
|
|
|
- if(Objects.nonNull(maxRate) && maxRate > 50){
|
|
|
+ if(env.equals("gn") && Objects.nonNull(maxRate) && maxRate > 50){
|
|
|
//发送mq,就进行计算
|
|
|
mqProducer.sendByWorkQueue(queueModelingCall.concat("-128G"), message);
|
|
|
int mqNum = rabbitMqProducer.getMessageCount(queueModelingCall.concat("-128G"));
|