From d37fdf9379cfcd004d4c6fe7a3233458880da8b2 Mon Sep 17 00:00:00 2001 From: Xiaofan <83447078+xiaofan-luan@users.noreply.github.com> Date: Wed, 17 Nov 2021 14:35:10 +0800 Subject: [PATCH] Remove component.yaml (#11959) Signed-off-by: xiaofan-luan --- configs/advanced/component.yaml | 75 --------------------------- internal/util/paramtable/basetable.go | 4 +- 2 files changed, 2 insertions(+), 77 deletions(-) delete mode 100644 configs/advanced/component.yaml diff --git a/configs/advanced/component.yaml b/configs/advanced/component.yaml deleted file mode 100644 index 0d010d1d81..0000000000 --- a/configs/advanced/component.yaml +++ /dev/null @@ -1,75 +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. - -dataCoord: - 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: - 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 - -proxy: - 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 - bufFlagExpireTime: 3600 # second, the time to expire bufFlag from cache in collectResultLoop - bufFlagCleanupInterval: 600 # second, the interval to clean bufFlag cache in collectResultLoop - -queryNode: - 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. - -rootCoord: - 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 - diff --git a/internal/util/paramtable/basetable.go b/internal/util/paramtable/basetable.go index 10c373a4b4..4a03a6f0be 100644 --- a/internal/util/paramtable/basetable.go +++ b/internal/util/paramtable/basetable.go @@ -61,10 +61,10 @@ func (gp *BaseTable) Init() { gp.loadFromCommonYaml() - gp.loadFromMilvusYaml() - gp.loadFromComponentYaml() + gp.loadFromMilvusYaml() + gp.tryloadFromEnv() gp.InitLogCfg()