summaryrefslogtreecommitdiffstats
path: root/src/commands/memory-stats.json
diff options
context:
space:
mode:
Diffstat (limited to '')
-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
+ }
+ }
+ }
+ }
+}