mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: Replace 'off' with 'disable' (#33433)
YAML will automatically parse "off" as a boolean variable. We should avoid using "off" in the future. issue: https://github.com/milvus-io/milvus/issues/32772 --------- Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
b13932bb55
commit
bbb69980ac
@ -329,13 +329,13 @@ queryNode:
|
||||
enabled: true
|
||||
memoryLimit: 2147483648 # 2 GB, 2 * 1024 *1024 *1024
|
||||
readAheadPolicy: willneed # The read ahead policy of chunk cache, options: `normal, random, sequential, willneed, dontneed`
|
||||
# options: async, sync, off.
|
||||
# options: async, sync, disable.
|
||||
# Specifies the necessity for warming up the chunk cache.
|
||||
# 1. If set to "sync" or "async," the original vector data will be synchronously/asynchronously loaded into the
|
||||
# 1. If set to "sync" or "async" the original vector data will be synchronously/asynchronously loaded into the
|
||||
# chunk cache during the load process. This approach has the potential to substantially reduce query/search latency
|
||||
# for a specific duration post-load, albeit accompanied by a concurrent increase in disk usage;
|
||||
# 2. If set to "off," original vector data will only be loaded into the chunk cache during search/query.
|
||||
warmup: off
|
||||
# 2. If set to "disable" original vector data will only be loaded into the chunk cache during search/query.
|
||||
warmup: disable
|
||||
mmap:
|
||||
mmapEnabled: false # Enable mmap for loading data
|
||||
lazyload:
|
||||
|
||||
@ -2358,13 +2358,13 @@ func (p *queryNodeConfig) init(base *BaseTable) {
|
||||
p.ChunkCacheWarmingUp = ParamItem{
|
||||
Key: "queryNode.cache.warmup",
|
||||
Version: "2.3.6",
|
||||
DefaultValue: "off",
|
||||
Doc: `options: async, sync, off.
|
||||
DefaultValue: "disable",
|
||||
Doc: `options: async, sync, disable.
|
||||
Specifies the necessity for warming up the chunk cache.
|
||||
1. If set to "sync" or "async," the original vector data will be synchronously/asynchronously loaded into the
|
||||
1. If set to "sync" or "async" the original vector data will be synchronously/asynchronously loaded into the
|
||||
chunk cache during the load process. This approach has the potential to substantially reduce query/search latency
|
||||
for a specific duration post-load, albeit accompanied by a concurrent increase in disk usage;
|
||||
2. If set to "off," original vector data will only be loaded into the chunk cache during search/query.`,
|
||||
2. If set to "disable" original vector data will only be loaded into the chunk cache during search/query.`,
|
||||
Export: true,
|
||||
}
|
||||
p.ChunkCacheWarmingUp.Init(base.mgr)
|
||||
|
||||
@ -339,7 +339,7 @@ func TestComponentParam(t *testing.T) {
|
||||
|
||||
// chunk cache
|
||||
assert.Equal(t, "willneed", Params.ReadAheadPolicy.GetValue())
|
||||
assert.Equal(t, "false", Params.ChunkCacheWarmingUp.GetValue())
|
||||
assert.Equal(t, "disable", Params.ChunkCacheWarmingUp.GetValue())
|
||||
|
||||
// test small indexNlist/NProbe default
|
||||
params.Remove("queryNode.segcore.smallIndex.nlist")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user