提交 1b93f980 编写于 作者: H Haojun Liao

refactor: do some internal refactor.

上级 ffcbc8cf
...@@ -357,10 +357,11 @@ static int32_t mndDoRebalance(SMnode *pMnode, const SMqRebInputObj *pInput, SMqR ...@@ -357,10 +357,11 @@ static int32_t mndDoRebalance(SMnode *pMnode, const SMqRebInputObj *pInput, SMqR
if (numOfFinal) { if (numOfFinal) {
minVgCnt = totalVgNum / numOfFinal; minVgCnt = totalVgNum / numOfFinal;
imbConsumerNum = totalVgNum % numOfFinal; imbConsumerNum = totalVgNum % numOfFinal;
}
mInfo("sub:%s mq re-balance %d consumers: at least %d vgs each, %d consumers has 1 more vgroups than avg value", mInfo("sub:%s mq re-balance %d consumers: at least %d vgs each, %d consumers has 1 more vgroups than avg value",
pSubKey, numOfFinal, minVgCnt, imbConsumerNum); pSubKey, numOfFinal, minVgCnt, imbConsumerNum);
} else {
mInfo("sub:%s no consumer subscribe this topic", pSubKey);
}
// 5. first scan: remove vgroups from te consumers, who have more vgroups than the threashold value that is // 5. first scan: remove vgroups from te consumers, who have more vgroups than the threashold value that is
// minVgCnt, and then put them into the recycled hash list // minVgCnt, and then put them into the recycled hash list
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册