From f51ef71b51d2b18c41edd745c975fc2069cebb30 Mon Sep 17 00:00:00 2001 From: yukun Date: Thu, 11 Nov 2021 17:18:43 +0800 Subject: [PATCH] Change default retentionSizeInMB to 8192(8GB) (#11436) Signed-off-by: fishpenguin --- configs/milvus.yaml | 6 +++--- internal/util/rocksmq/server/rocksmq/rocksmq_retention.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/milvus.yaml b/configs/milvus.yaml index 02746d9f84..fa747f4650 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -44,9 +44,9 @@ pulsar: rocksmq: path: /var/lib/milvus/rdb_data - rocksmqPageSize: 2147483648 # 2 GB, 2 * 1024 * 1024 * 1024 - retentionTimeInMinutes: 4320 # 3 days, 3 * 24 * 60 - retentionSizeInMB: 0 + rocksmqPageSize: 2147483648 # 2 GB, 2 * 1024 * 1024 * 1024 bytes + retentionTimeInMinutes: 10080 # 7 days, 7 * 24 * 60 minutes + retentionSizeInMB: 8192 # 8 GB, 8 * 1024 MB # Related configuration of rootCoord, used to handle data definition language (DDL) and data control language (DCL) requests rootCoord: diff --git a/internal/util/rocksmq/server/rocksmq/rocksmq_retention.go b/internal/util/rocksmq/server/rocksmq/rocksmq_retention.go index c2b3dd8b8c..58844d4491 100644 --- a/internal/util/rocksmq/server/rocksmq/rocksmq_retention.go +++ b/internal/util/rocksmq/server/rocksmq/rocksmq_retention.go @@ -26,10 +26,10 @@ import ( ) // RocksmqRetentionTimeInMinutes is the time of retention -var RocksmqRetentionTimeInMinutes int64 = 4320 +var RocksmqRetentionTimeInMinutes int64 = 10080 // RocksmqRetentionSizeInMB is the size of retention -var RocksmqRetentionSizeInMB int64 = 0 +var RocksmqRetentionSizeInMB int64 = 8192 // Const value that used to convert unit const (