关于shardmap中size大小的调整 #306
songoow
started this conversation in
Show and tell
Replies: 1 comment
-
感谢,以上两个问题我们都评估过,在历史版本上的做法也是如你所述,当前版本做法是思考后做出的改变。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
目前shardmap的分片size 是 直接由本机的核心数决定的;
可以看到分片大些效果要好些,但也没有必要太大,目前没有经过其他方面的充分测试,这个size 做个如下的调整,是不是会更好一些?
这样调整之后,ShardSize 也能确保是2的倍数了,在getShard 的时候也可以将求余改成位运算
Beta Was this translation helpful? Give feedback.
All reactions