未验证 提交 883a79e4 编写于 作者: J Jiquan Long 提交者: GitHub

Change default max shards num to 64 (#22016) (#22017)

Signed-off-by: Nlongjiquan <jiquan.long@zilliz.com>
上级 e3501f7a
...@@ -6,6 +6,4 @@ const ( ...@@ -6,6 +6,4 @@ const (
globalIDAllocatorSubPath = "gid" globalIDAllocatorSubPath = "gid"
globalTSOAllocatorKey = "timestamp" globalTSOAllocatorKey = "timestamp"
globalTSOAllocatorSubPath = "tso" globalTSOAllocatorSubPath = "tso"
maxShardNum = 64
) )
...@@ -654,7 +654,7 @@ func (p *proxyConfig) initMaxPasswordLength() { ...@@ -654,7 +654,7 @@ func (p *proxyConfig) initMaxPasswordLength() {
} }
func (p *proxyConfig) initMaxShardNum() { func (p *proxyConfig) initMaxShardNum() {
str := p.Base.LoadWithDefault("proxy.maxShardNum", "256") str := p.Base.LoadWithDefault("proxy.maxShardNum", "64")
maxShardNum, err := strconv.ParseInt(str, 10, 64) maxShardNum, err := strconv.ParseInt(str, 10, 64)
if err != nil { if err != nil {
panic(err) panic(err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册