summaryrefslogtreecommitdiffstats
path: root/src/commands/memory-stats.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:40:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:40:54 +0000
commit317c0644ccf108aa23ef3fd8358bd66c2840bfc0 (patch)
treec417b3d25c86b775989cb5ac042f37611b626c8a /src/commands/memory-stats.json
parentInitial commit. (diff)
downloadredis-317c0644ccf108aa23ef3fd8358bd66c2840bfc0.tar.xz
redis-317c0644ccf108aa23ef3fd8358bd66c2840bfc0.zip
Adding upstream version 5:7.2.4.upstream/5%7.2.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/commands/memory-stats.json')
-rw-r--r--src/commands/memory-stats.json121
1 files changed, 121 insertions, 0 deletions
diff --git a/src/commands/memory-stats.json b/src/commands/memory-stats.json
new file mode 100644
index 0000000..de82dc8
--- /dev/null
+++ b/src/commands/memory-stats.json
@@ -0,0 +1,121 @@
+{
+ "STATS": {
+ "summary": "Returns details about memory usage.",
+ "complexity": "O(1)",
+ "group": "server",
+ "since": "4.0.0",
+ "arity": 2,
+ "container": "MEMORY",
+ "function": "memoryCommand",
+ "command_tips": [
+ "NONDETERMINISTIC_OUTPUT",
+ "REQUEST_POLICY:ALL_SHARDS",
+ "RESPONSE_POLICY:SPECIAL"
+ ],
+ "reply_schema": {
+ "description": "memory usage details",
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "peak.allocated": {
+ "type": "integer"
+ },
+ "total.allocated": {
+ "type": "integer"
+ },
+ "startup.allocated": {
+ "type": "integer"
+ },
+ "replication.backlog": {
+ "type": "integer"
+ },
+ "clients.slaves": {
+ "type": "integer"
+ },
+ "clients.normal": {
+ "type": "integer"
+ },
+ "cluster.links": {
+ "type": "integer"
+ },
+ "aof.buffer": {
+ "type": "integer"
+ },
+ "lua.caches": {
+ "type": "integer"
+ },
+ "functions.caches": {
+ "type": "integer"
+ },
+ "overhead.total": {
+ "type": "integer"
+ },
+ "keys.count": {
+ "type": "integer"
+ },
+ "keys.bytes-per-key": {
+ "type": "integer"
+ },
+ "dataset.bytes": {
+ "type": "integer"
+ },
+ "dataset.percentage": {
+ "type": "number"
+ },
+ "peak.percentage": {
+ "type": "number"
+ },
+ "allocator.allocated": {
+ "type": "integer"
+ },
+ "allocator.active": {
+ "type": "integer"
+ },
+ "allocator.resident": {
+ "type": "integer"
+ },
+ "allocator-fragmentation.ratio": {
+ "type": "number"
+ },
+ "allocator-fragmentation.bytes": {
+ "type": "integer"
+ },
+ "allocator-rss.ratio": {
+ "type": "number"
+ },
+ "allocator-rss.bytes": {
+ "type": "integer"
+ },
+ "rss-overhead.ratio": {
+ "type": "number"
+ },
+ "rss-overhead.bytes": {
+ "type": "integer"
+ },
+ "fragmentation": {
+ "type": "number"
+ },
+ "fragmentation.bytes": {
+ "type": "integer"
+ }
+ },
+ "patternProperties": {
+ "^db.": {
+ "type": "object",
+ "properties": {
+ "overhead.hashtable.main": {
+ "type": "integer"
+ },
+ "overhead.hashtable.expires": {
+ "type": "integer"
+ },
+ "overhead.hashtable.slot-to-keys": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false
+ }
+ }
+ }
+ }
+}