Skip to content

Commit

Permalink
*修复netty一直重连的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
provenceee committed Aug 27, 2022
1 parent 8d14be7 commit a0a0d79
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
agent.config.isEnhanceBootStrapEnable=false
agent.config.ignoredPrefixes=com.huawei.sermant,com.huaweicloud.sermant
agent.config.combineStrategy=ALL
agent.config.serviceBlackList=com.huaweicloud.sermant.core.service.heartbeat.HeartbeatServiceImpl

agent.config.serviceBlackList=com.huaweicloud.sermant.core.service.heartbeat.HeartbeatServiceImpl,com.huaweicloud.sermant.core.service.send.NettyGatewayClient,com.huaweicloud.sermant.core.service.tracing.TracingServiceImpl
# adaptor config
adaptor.config.isLoadExtAgentEnable=false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
agent.config.isEnhanceBootStrapEnable=false
agent.config.ignoredPrefixes=com.huawei.sermant,com.huaweicloud.sermant
agent.config.combineStrategy=ALL
agent.config.serviceBlackList=com.huaweicloud.sermant.core.service.heartbeat.HeartbeatServiceImpl

agent.config.serviceBlackList=com.huaweicloud.sermant.core.service.heartbeat.HeartbeatServiceImpl,com.huaweicloud.sermant.core.service.send.NettyGatewayClient,com.huaweicloud.sermant.core.service.tracing.TracingServiceImpl
# adaptor config
adaptor.config.isLoadExtAgentEnable=false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
agent.config.isEnhanceBootStrapEnable=false
agent.config.ignoredPrefixes=com.huawei.sermant,com.huaweicloud.sermant
agent.config.combineStrategy=ALL
agent.config.serviceBlackList=com.huaweicloud.sermant.core.service.heartbeat.HeartbeatServiceImpl

agent.config.serviceBlackList=com.huaweicloud.sermant.core.service.heartbeat.HeartbeatServiceImpl,com.huaweicloud.sermant.core.service.send.NettyGatewayClient,com.huaweicloud.sermant.core.service.tracing.TracingServiceImpl
# adaptor config
adaptor.config.isLoadExtAgentEnable=false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ public class FlowControlConfig implements PluginConfig {
private boolean needThrowBizException = false;

/**
* 指标数据发送方式 默认Netty
* 指标数据发送方式 默认KAFKA
*/
private MetricSendWay sendWay = MetricSendWay.NETTY;
private MetricSendWay sendWay = MetricSendWay.KAFKA;

/**
* 等待指标数据写入文件的等待时间 单位MS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package com.huawei.flowcontrol.common.enums;

import com.huawei.flowcontrol.common.metric.MetricSender;
import com.huawei.flowcontrol.common.metric.NettyMetricSender;
import com.huawei.flowcontrol.common.metric.SimpleKafkaMetricSender;

/**
Expand All @@ -31,12 +30,7 @@ public enum MetricSendWay {
/**
* Kafka发送方式
*/
KAFKA(new SimpleKafkaMetricSender()),

/**
* Netty发送方式
*/
NETTY(new NettyMetricSender());
KAFKA(new SimpleKafkaMetricSender());

private final MetricSender sender;

Expand Down

0 comments on commit a0a0d79

Please sign in to comment.