Skip to content

Commit 559f165

Browse files
authored
docs: improve description of --maxmemory parameter (units/tiering/minPerThread) (#5696)
Signed-off-by: Florent Rivoire <[email protected]>
1 parent 6f91b55 commit 559f165

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/server/main_service.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,13 @@ ABSL_FLAG(bool, expose_http_api, false,
103103
"If set, will expose a POST /api handler for sending redis commands as json array.");
104104

105105
ABSL_FLAG(facade::MemoryBytesFlag, maxmemory, facade::MemoryBytesFlag{},
106-
"Limit on maximum-memory that is used by the database. "
107-
"0 - means the program will automatically determine its maximum memory usage. "
106+
"Limit on maximum-memory that is used by the database, until data starts to be evicted "
107+
"(according to eviction policy). With tiering, this value defines only the size in RAM, "
108+
"and not the whole dataset (RAM + SSD). "
109+
"Must be *at least* 256MiB per proactor thread. "
110+
"Can be any human‑readable bytes values (supports K/M/G/T/P/E with optional B, "
111+
"case‑insensitive, both 'GiB' & 'GB' possible). Examples: 300000000, 512MB, 2G, 1.25GiB. "
112+
"0 - value will be automatically defined based on the env (ex: machine's capacity). "
108113
"default: 0");
109114

110115
ABSL_RETIRED_FLAG(

0 commit comments

Comments
 (0)