From 6bd786bf503b645c5cef1616a698dba4edbf96b1 Mon Sep 17 00:00:00 2001 From: Jiquan Long Date: Tue, 31 May 2022 12:02:04 +0800 Subject: [PATCH] Reduce default seal propotion (#17287) Signed-off-by: dragondriver --- configs/embedded-milvus.yaml | 2 +- configs/milvus.yaml | 2 +- internal/util/paramtable/component_param.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/embedded-milvus.yaml b/configs/embedded-milvus.yaml index 9bd4c84a3b..d2b3c0ecbb 100644 --- a/configs/embedded-milvus.yaml +++ b/configs/embedded-milvus.yaml @@ -210,7 +210,7 @@ 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 + sealProportion: 0.25 # It's the minimum proportion for a segment which can be sealed assignmentExpiration: 2000 # The time of the assignment expiration in ms compaction: diff --git a/configs/milvus.yaml b/configs/milvus.yaml index 9cbd46b10b..7d42e84964 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -197,7 +197,7 @@ 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 + sealProportion: 0.25 # It's the minimum proportion for a segment which can be sealed assignmentExpiration: 2000 # The time of the assignment expiration in ms maxLife: 86400 # The max lifetime of segment in seconds, 24*60*60 diff --git a/internal/util/paramtable/component_param.go b/internal/util/paramtable/component_param.go index 75560c34b8..c6382be6e0 100644 --- a/internal/util/paramtable/component_param.go +++ b/internal/util/paramtable/component_param.go @@ -916,7 +916,7 @@ func (p *dataCoordConfig) initSegmentMaxSize() { } func (p *dataCoordConfig) initSegmentSealProportion() { - p.SegmentSealProportion = p.Base.ParseFloatWithDefault("dataCoord.segment.sealProportion", 0.75) + p.SegmentSealProportion = p.Base.ParseFloatWithDefault("dataCoord.segment.sealProportion", 0.25) } func (p *dataCoordConfig) initSegAssignmentExpiration() {