enhance:refine the range of chunk size config value(#29388) (#29389)

related: #29388

Signed-off-by: MrPresent-Han <chun.han@zilliz.com>
pull/29501/head
MrPresent-Han 2023-12-26 17:36:46 +08:00 committed by GitHub
parent 9e6da45497
commit 7c7003bff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -287,7 +287,7 @@ queryNode:
# Use more threads to make better use of SSD throughput in disk index.
# This parameter is only useful when enable-disk = true.
# And this value should be a number greater than 1 and less than 32.
chunkRows: 1024 # The number of vectors in a chunk.
chunkRows: 128 # The number of vectors in a chunk.
exprEvalBatchSize: 8192 # The batch size for executor get next
interimIndex: # build a vector temperate index for growing segment or binlog to accelerate search
enableIndex: true

View File

@ -1810,10 +1810,10 @@ func (p *queryNodeConfig) init(base *BaseTable) {
p.ChunkRows = ParamItem{
Key: "queryNode.segcore.chunkRows",
Version: "2.0.0",
DefaultValue: "1024",
DefaultValue: "128",
Formatter: func(v string) string {
if getAsInt(v) < 1024 {
return "1024"
if getAsInt(v) < 128 {
return "128"
}
return v
},

View File

@ -298,7 +298,7 @@ func TestComponentParam(t *testing.T) {
// test query side config
chunkRows := Params.ChunkRows.GetAsInt64()
assert.Equal(t, int64(1024), chunkRows)
assert.Equal(t, int64(128), chunkRows)
nlist := Params.InterimIndexNlist.GetAsInt64()
assert.Equal(t, int64(128), nlist)
@ -339,7 +339,7 @@ func TestComponentParam(t *testing.T) {
params.Remove("queryNode.segcore.growing.nprobe")
params.Save("queryNode.segcore.chunkRows", "64")
chunkRows = Params.ChunkRows.GetAsInt64()
assert.Equal(t, int64(1024), chunkRows)
assert.Equal(t, int64(128), chunkRows)
params.Save("queryNode.gracefulStopTimeout", "100")
gracefulStopTimeout := &Params.GracefulStopTimeout