Skip to content

Commit a59b1fe

Browse files
authored
Add new INFO field mem_total_replication_buffers and new replicas.repl.buffer MEMORY STATS field (valkey-io#416)
See valkey-io/valkey#2924 Signed-off-by: Binbin <binloveplay1314@qq.com>
1 parent f23f093 commit a59b1fe

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

commands/info.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ mem_fragmentation_bytes:8504448
121121
mem_not_counted_for_evict:0
122122
mem_replication_backlog:0
123123
mem_total_replication_buffers:0
124+
mem_replicas_repl_buffer:0
124125
mem_clients_slaves:0
125126
mem_clients_normal:0
126127
mem_cluster_links:0
@@ -392,7 +393,8 @@ Here is the meaning of all fields in the **memory** section:
392393
* `mem_cluster_links`: Memory used by links to peers on the cluster bus when cluster mode is enabled.
393394
* `mem_aof_buffer`: Transient memory used for AOF and AOF rewrite buffers
394395
* `mem_replication_backlog`: Memory used by replication backlog
395-
* `mem_total_replication_buffers`: Total memory consumed for replication buffers.
396+
* `mem_total_replication_buffers`: Total memory consumed for replication buffers. Starting with Valkey 9.1, it also includes `mem_replicas_repl_buffer`.
397+
* `mem_replicas_repl_buffer`: Total memory consumed by the replicas replication buffer on replica side during the dual channel replication. Added in Valkey 9.1.
396398
* `mem_allocator`: Memory allocator, chosen at compile time.
397399
* `mem_overhead_db_hashtable_rehashing`: Temporary memory overhead of database dictionaries currently being rehashed - Added in 8.0.
398400
* `active_defrag_running`: When `activedefrag` is enabled, this indicates whether defragmentation is currently active, and the CPU percentage it intends to utilize.

commands/memory-stats.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ values. The following metrics are reported:
1111
* `startup.allocated`: Initial amount of memory consumed by Valkey at startup
1212
in bytes (see `INFO`'s `used_memory_startup`)
1313
* `replication.backlog`: Memory usage by replication backlog (see `INFO`'s `mem_replication_backlog`)
14+
* `replicas.repl.buffer`: Memory usage by replicas replication buffer (see `INFO`'s `mem_replicas_repl_buffer`). Added in Valkey 9.1.
1415
* `clients.slaves`: The total size in bytes of all replicas overheads (output
1516
and query buffers, connection contexts)
1617
* `clients.normal`: The total size in bytes of all clients overheads (output

0 commit comments

Comments
 (0)