From 1e15e55cee86ad012dd1d5367ca5ec4b83d80d84 Mon Sep 17 00:00:00 2001 From: adiholden Date: Sun, 9 Feb 2025 18:20:23 +0200 Subject: [PATCH] server: enable big value serialization by default (#4581) Signed-off-by: adi_holden --- helio | 2 +- src/server/main_service.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/helio b/helio index b18d73963..fd878df26 160000 --- a/helio +++ b/helio @@ -1 +1 @@ -Subproject commit b18d7396336020a20c234b9dfdbf86421dfa6208 +Subproject commit fd878df26816efc6ead76105b2f2d51e9a828b60 diff --git a/src/server/main_service.cc b/src/server/main_service.cc index cc705a38c..ce3208cf0 100644 --- a/src/server/main_service.cc +++ b/src/server/main_service.cc @@ -64,6 +64,7 @@ extern "C" { #include "util/varz.h" using namespace std; +using facade::operator""_KB; using facade::ErrorReply; ABSL_FLAG(int32_t, port, 6379, @@ -110,7 +111,7 @@ ABSL_FLAG(double, rss_oom_deny_ratio, 1.25, "DENYOOM will fail with OOM error and new connections to non-admin port will be " "rejected. Negative value disables this feature."); -ABSL_FLAG(size_t, serialization_max_chunk_size, 0, +ABSL_FLAG(size_t, serialization_max_chunk_size, 64_KB, "Maximum size of a value that may be serialized at once during snapshotting or full " "sync. Values bigger than this threshold will be serialized using streaming " "serialization. 0 - to disable streaming mode");