Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Kwan的解忧杂货铺@新空间代码工作室
Rocketmq
提交
ac25bccc
R
Rocketmq
项目概览
Kwan的解忧杂货铺@新空间代码工作室
/
Rocketmq
与 Fork 源项目一致
Fork自
Apache RocketMQ / Rocketmq
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rocketmq
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ac25bccc
编写于
1月 15, 2019
作者:
D
duhenglucky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Modify flow control config file
上级
74a5b3f5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
28 deletion
+14
-28
snode/src/main/java/org/apache/rocketmq/snode/config/SnodeConfig.java
...in/java/org/apache/rocketmq/snode/config/SnodeConfig.java
+5
-15
snode/src/main/resources/META-INF/service/flowControl.yml
snode/src/main/resources/META-INF/service/flowControl.yml
+9
-9
snode/src/test/java/org/apache/rocketmq/snode/processor/SendMessageProcessorTest.java
...he/rocketmq/snode/processor/SendMessageProcessorTest.java
+0
-4
未找到文件。
snode/src/main/java/org/apache/rocketmq/snode/config/SnodeConfig.java
浏览文件 @
ac25bccc
...
...
@@ -53,7 +53,7 @@ public class SnodeConfig {
private
long
snodeHeartBeatInterval
=
30
*
1000
;
private
boolean
fetechName
s
erver
=
false
;
private
boolean
fetechName
S
erver
=
false
;
private
long
houseKeepingInterval
=
10
*
1000
;
...
...
@@ -75,9 +75,6 @@ public class SnodeConfig {
private
int
listenPort
=
11911
;
private
double
snodeQPSLimit
=
10000
;
private
boolean
vipChannelEnabled
=
Boolean
.
parseBoolean
(
System
.
getProperty
(
SEND_MESSAGE_WITH_VIP_CHANNEL_PROPERTY
,
"true"
));
public
void
setSnodeHeartBeatInterval
(
long
snodeHeartBeatInterval
)
{
...
...
@@ -92,12 +89,12 @@ public class SnodeConfig {
this
.
houseKeepingInterval
=
houseKeepingInterval
;
}
public
boolean
isFetechName
s
erver
()
{
return
fetechName
s
erver
;
public
boolean
isFetechName
S
erver
()
{
return
fetechName
S
erver
;
}
public
void
setFetechName
server
(
boolean
fetechNames
erver
)
{
this
.
fetechName
server
=
fetechNames
erver
;
public
void
setFetechName
Server
(
boolean
fetechNameS
erver
)
{
this
.
fetechName
Server
=
fetechNameS
erver
;
}
public
long
getSnodeHeartBeatInterval
()
{
...
...
@@ -285,11 +282,4 @@ public class SnodeConfig {
return
remotingServerInterceptorPath
;
}
public
double
getSnodeQPSLimit
()
{
return
snodeQPSLimit
;
}
public
void
setSnodeQPSLimit
(
double
snodeQPSLimit
)
{
this
.
snodeQPSLimit
=
snodeQPSLimit
;
}
}
snode/src/main/resources/META-INF/service/flowControl.yml
浏览文件 @
ac25bccc
snode
:
countLimit
:
# flow control type, only requestCount & requestSize support
-
flowControlResourceName
:
310
flowControlGrade
:
directDeny
flowControlBehavior
:
flowControlBehavior
flowControlResourceCount
:
1000
00.00
#QPS
flowControlGrade
:
1
flowControlBehavior
:
1
flowControlResourceCount
:
5
00.00
#QPS
-
flowControlResourceName
:
overall
flowControlGrade
:
directDeny
flowControlBehavior
:
flowControlBehavior
flowControlResourceCount
:
10000
0
.00
#QPS
flowControlGrade
:
1
flowControlBehavior
:
1
flowControlResourceCount
:
10000.00
#QPS
sizeLimit
:
-
flowControlResourceName
:
310
flowControlGrade
:
directDeny
flowControlBehavior
:
flowControlBehavior
flowControlResourceCount
:
10.00
#M
B/S
flowControlGrade
:
1
flowControlBehavior
:
1
flowControlResourceCount
:
5.00
#K
B/S
topicLimit
:
\ No newline at end of file
snode/src/test/java/org/apache/rocketmq/snode/processor/SendMessageProcessorTest.java
浏览文件 @
ac25bccc
...
...
@@ -104,10 +104,6 @@ public class SendMessageProcessorTest {
return
request
;
}
private
void
assertSendMessageResult
(
int
responseCode
)
throws
RemotingCommandException
{
}
RemotingCommand
createSendMessageResponse
(
int
responseCode
)
{
return
RemotingCommand
.
createResponseCommand
(
ResponseCode
.
SUCCESS
,
null
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录