From c86bc8079ba6f853af84bc6c9f6166bfa9294532 Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Thu, 16 Jan 2025 10:04:00 +0800 Subject: [PATCH] chage large request's default value to 1MB Signed-off-by: zhaozhao.zz --- src/config.c | 2 +- valkey.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index 2d54c0c05e..6bbb82bf52 100644 --- a/src/config.c +++ b/src/config.c @@ -3313,7 +3313,7 @@ standardConfig static_configs[] = { createLongLongConfig("cluster-node-timeout", NULL, MODIFIABLE_CONFIG, 0, LLONG_MAX, server.cluster_node_timeout, 15000, INTEGER_CONFIG, NULL, NULL), createLongLongConfig("cluster-ping-interval", NULL, MODIFIABLE_CONFIG | HIDDEN_CONFIG, 0, LLONG_MAX, server.cluster_ping_interval, 0, INTEGER_CONFIG, NULL, NULL), createLongLongConfig("commandlog-execution-slower-than", "slowlog-log-slower-than", MODIFIABLE_CONFIG, -1, LLONG_MAX, server.commandlog[COMMANDLOG_TYPE_SLOW].threshold, 10000, INTEGER_CONFIG, NULL, NULL), - createLongLongConfig("commandlog-request-larger-than", NULL, MODIFIABLE_CONFIG, -1, LLONG_MAX, server.commandlog[COMMANDLOG_TYPE_LARGE_REQUEST].threshold, 1024, INTEGER_CONFIG, NULL, NULL), + createLongLongConfig("commandlog-request-larger-than", NULL, MODIFIABLE_CONFIG, -1, LLONG_MAX, server.commandlog[COMMANDLOG_TYPE_LARGE_REQUEST].threshold, 1024 * 1024, INTEGER_CONFIG, NULL, NULL), createLongLongConfig("commandlog-reply-larger-than", NULL, MODIFIABLE_CONFIG, -1, LLONG_MAX, server.commandlog[COMMANDLOG_TYPE_LARGE_REPLY].threshold, 1024 * 1024, INTEGER_CONFIG, NULL, NULL), createLongLongConfig("latency-monitor-threshold", NULL, MODIFIABLE_CONFIG, 0, LLONG_MAX, server.latency_monitor_threshold, 0, INTEGER_CONFIG, NULL, NULL), createLongLongConfig("proto-max-bulk-len", NULL, DEBUG_CONFIG | MODIFIABLE_CONFIG, 1024 * 1024, LONG_MAX, server.proto_max_bulk_len, 512ll * 1024 * 1024, MEMORY_CONFIG, NULL, NULL), /* Bulk request max size */ diff --git a/valkey.conf b/valkey.conf index f964030dc1..8f58647ab8 100644 --- a/valkey.conf +++ b/valkey.conf @@ -2007,7 +2007,7 @@ commandlog-slow-execution-max-len 128 # # The threshold for command request size can be adjusted using the config below, with the # unit being bytes. -commandlog-request-larger-than 1024 +commandlog-request-larger-than 1048576 # Record the number of commands. commandlog-large-request-max-len 128