mirror of https://github.com/milvus-io/milvus.git
related: #29388 Signed-off-by: MrPresent-Han <chun.han@zilliz.com>pull/29501/head
parent
9e6da45497
commit
7c7003bff6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue