From fa101e9751cc3be56e20d27a2694de9f9ed7f02b Mon Sep 17 00:00:00 2001 From: Xiaofan <83447078+xiaofan-luan@users.noreply.github.com> Date: Tue, 28 Feb 2023 10:45:47 +0800 Subject: [PATCH] Change RockMQ page size to 256MB (#22432) Signed-off-by: xiaofan-luan --- configs/milvus.yaml | 2 +- internal/util/paramtable/service_param.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/milvus.yaml b/configs/milvus.yaml index 23ba78ab38..2ec946ea6c 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -112,7 +112,7 @@ rocksmq: # please adjust in embedded Milvus: /tmp/milvus/rdb_data path: /var/lib/milvus/rdb_data lrucacheratio: 0.06 # rocksdb cache memory ratio - rocksmqPageSize: 2147483648 # 2 GB, 2 * 1024 * 1024 * 1024 bytes, The size of each page of messages in rocksmq + rocksmqPageSize: 268435456 # 256 MB, 256 * 1024 * 1024 bytes, The size of each page of messages in rocksmq retentionTimeInMinutes: 7200 # 5 days, 5 * 24 * 60 minutes, The retention time of the message in rocksmq. retentionSizeInMB: 8192 # 8 GB, 8 * 1024 MB, The retention size of the message in rocksmq. compactionInterval: 86400 # 1 day, trigger rocksdb compaction every day to remove deleted data diff --git a/internal/util/paramtable/service_param.go b/internal/util/paramtable/service_param.go index e9e48549da..a67b1ea1fa 100644 --- a/internal/util/paramtable/service_param.go +++ b/internal/util/paramtable/service_param.go @@ -584,7 +584,7 @@ please adjust in embedded Milvus: /tmp/milvus/rdb_data`, Key: "rocksmq.rocksmqPageSize", DefaultValue: strconv.FormatInt(256<<20, 10), Version: "2.0.0", - Doc: "2 GB, 2 * 1024 * 1024 * 1024 bytes, The size of each page of messages in rocksmq", + Doc: "256 MB, 256 * 1024 * 1024 bytes, The size of each page of messages in rocksmq", Export: true, } r.PageSize.Init(base.mgr)