From 074d82bc3d42ef84c2a4bf2036044c33ce2b098f Mon Sep 17 00:00:00 2001 From: Hengfei Yang Date: Thu, 6 Nov 2025 14:29:50 +0800 Subject: [PATCH] fix: set default queue storage to file (#8974) We have one env `ZO_NATS_EVENT_STORAGE` to control the event queue storage for nats. default value is `file`, you can set to `memory` to improve performance but you need to have enough memory. at least double this size: ``` ZO_NATS_QUEUE_MAX_SIZE=2048 ``` Default is `2GB`, if you don't have enough memory for nats, you can reduce this value or increase nats memory. --- src/config/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/src/config.rs b/src/config/src/config.rs index 9dc79bfe4f..6837d14ddb 100644 --- a/src/config/src/config.rs +++ b/src/config/src/config.rs @@ -1825,8 +1825,8 @@ pub struct Nats { pub queue_max_size: i64, #[env_config( name = "ZO_NATS_EVENT_STORAGE", - help = "Set the storage type for the event stream, default is: memory, other value is: file", - default = "memory" + help = "Set the storage type for the event stream, default is: file, other value is: memory", + default = "file" )] pub event_storage: String, #[env_config(