Remove common.yaml and component.yaml (#11662)

Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
This commit is contained in:
Xiaofan 2021-11-12 18:53:11 +08:00 committed by GitHub
parent d857577a7b
commit 3cd47cd89e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 57 additions and 37 deletions

View File

@ -1,19 +0,0 @@
# Licensed to the LF AI & Data foundation under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
common:
defaultPartitionName: "_default" # default partition name for a collection
defaultIndexName: "_default_idx" # default index name

View File

@ -59,6 +59,12 @@ rootCoord:
clientMaxRecvSize: 104857600 # 100 MB, 100 * 1024 * 1024 clientMaxRecvSize: 104857600 # 100 MB, 100 * 1024 * 1024
clientMaxSendSize: 104857600 # 100 MB, 100 * 1024 * 1024 clientMaxSendSize: 104857600 # 100 MB, 100 * 1024 * 1024
dmlChannelNum: 256 # The number of dml channels created at system startup
maxPartitionNum: 4096 # Maximum number of partitions in a collection
minSegmentSizeToEnableIndex: 1024 # It's a threshold. When the segment size is less than this value, the segment will not be indexed
timeout: 3600 # time out, 5 seconds
timeTickInterval: 200 # ms, the interval that proxy synchronize the time tick
# Related configuration of proxy, used to validate client requests and reduce the returned results. # Related configuration of proxy, used to validate client requests and reduce the returned results.
proxy: proxy:
port: 19530 port: 19530
@ -69,6 +75,23 @@ proxy:
clientMaxRecvSize: 104857600 # 100 MB, 100 * 1024 * 1024 clientMaxRecvSize: 104857600 # 100 MB, 100 * 1024 * 1024
clientMaxSendSize: 104857600 # 100 MB, 100 * 1024 * 1024 clientMaxSendSize: 104857600 # 100 MB, 100 * 1024 * 1024
timeTickInterval: 200 # ms, the interval that proxy synchronize the time tick
msgStream:
insert:
bufSize: 1024 # msgPack chan buffer size
search:
bufSize: 512
searchResult:
recvBufSize: 1024 # msgPack chan buffer size
pulsarBufSize: 1024 # pulsar chan buffer size
timeTick:
bufSize: 512
maxNameLength: 255 # max name length of collection or alias
maxFieldNum: 64 # max field number of a collection
maxDimension: 32768 # Maximum dimension of vector
maxShardNum: 256 # Maximum number of shards in a collection
maxTaskNum: 1024 # max task number of proxy task queue
# Related configuration of queryCoord, used to manage topology and load balancing for the query nodes, and handoff from growing segments to sealed segments. # Related configuration of queryCoord, used to manage topology and load balancing for the query nodes, and handoff from growing segments to sealed segments.
queryCoord: queryCoord:
address: localhost address: localhost
@ -97,6 +120,23 @@ queryNode:
clientMaxRecvSize: 104857600 # 100 MB, 100 * 1024 * 1024 clientMaxRecvSize: 104857600 # 100 MB, 100 * 1024 * 1024
clientMaxSendSize: 104857600 # 100 MB, 100 * 1024 * 1024 clientMaxSendSize: 104857600 # 100 MB, 100 * 1024 * 1024
stats:
publishInterval: 1000 # Interval for querynode to report node information (milliseconds)
dataSync:
flowGraph:
maxQueueLength: 1024 # Maximum length of task queue in flowgraph
maxParallelism: 1024 # Maximum number of tasks executed in parallel in the flowgraph
msgStream:
search:
recvBufSize: 512 # msgPack channel buffer size
pulsarBufSize: 512 # pulsar channel buffer size
searchResult:
recvBufSize: 64 # msgPack channel buffer size
# Segcore will divide a segment into multiple chunks.
segcore:
chunkRows: 32768 # The number of vectors in a chunk.
indexCoord: indexCoord:
address: localhost address: localhost
port: 31000 port: 31000
@ -128,6 +168,11 @@ dataCoord:
enableCompaction: false enableCompaction: false
enableGarbageCollection: false enableGarbageCollection: false
segment:
maxSize: 512 # Maximum size of a segment in MB
sealProportion: 0.75 # It's the minimum proportion for a segment which can be sealed
assignmentExpiration: 2000 # ms
dataNode: dataNode:
port: 21124 port: 21124
@ -137,6 +182,14 @@ dataNode:
clientMaxRecvSize: 104857600 # 100 MB, 100 * 1024 * 1024 clientMaxRecvSize: 104857600 # 100 MB, 100 * 1024 * 1024
clientMaxSendSize: 104857600 # 100 MB, 100 * 1024 * 1024 clientMaxSendSize: 104857600 # 100 MB, 100 * 1024 * 1024
dataSync:
flowGraph:
maxQueueLength: 1024 # Maximum length of task queue in flowgraph
maxParallelism: 1024 # Maximum number of tasks executed in parallel in the flowgraph
flush:
# Max buffer size to flush for a single segment.
insertBufSize: 16777216 # Bytes, 16 MB
# Configure whether to store the vector and the local path when querying/searching in Querynode. # Configure whether to store the vector and the local path when querying/searching in Querynode.
localStorage: localStorage:
path: /var/lib/milvus/data/ path: /var/lib/milvus/data/

View File

@ -211,18 +211,12 @@ func (pt *ParamTable) initMaxDimension() {
} }
func (pt *ParamTable) initDefaultPartitionName() { func (pt *ParamTable) initDefaultPartitionName() {
name, err := pt.Load("common.defaultPartitionName") name := pt.LoadWithDefault("common.defaultPartitionName", "_default")
if err != nil {
panic(err)
}
pt.DefaultPartitionName = name pt.DefaultPartitionName = name
} }
func (pt *ParamTable) initDefaultIndexName() { func (pt *ParamTable) initDefaultIndexName() {
name, err := pt.Load("common.defaultIndexName") name := pt.LoadWithDefault("common.defaultIndexName", "_default_idx")
if err != nil {
panic(err)
}
pt.DefaultIndexName = name pt.DefaultIndexName = name
} }

View File

@ -198,18 +198,12 @@ func (p *ParamTable) initMinSegmentSizeToEnableIndex() {
} }
func (p *ParamTable) initDefaultPartitionName() { func (p *ParamTable) initDefaultPartitionName() {
name, err := p.Load("common.defaultPartitionName") name := p.LoadWithDefault("common.defaultPartitionName", "_default")
if err != nil {
panic(err)
}
p.DefaultPartitionName = name p.DefaultPartitionName = name
} }
func (p *ParamTable) initDefaultIndexName() { func (p *ParamTable) initDefaultIndexName() {
name, err := p.Load("common.defaultIndexName") name := p.LoadWithDefault("common.defaultIndexName", "_default_idx")
if err != nil {
panic(err)
}
p.DefaultIndexName = name p.DefaultIndexName = name
} }

View File

@ -116,7 +116,6 @@ func (gp *BaseTable) loadFromComponentYaml() bool {
} }
return true return true
} }
log.Debug("failed to find component.yaml in config, skip..")
return false return false
} }
@ -128,7 +127,6 @@ func (gp *BaseTable) loadFromCommonYaml() bool {
} }
return true return true
} }
log.Debug("failed to find common.yaml in config, skip..")
return false return false
} }