From d71fd6264d58795c50b9350d7c39677b671e0896 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 17 Jul 2021 09:34:48 +0200 Subject: Merging upstream version 1.9.4. Signed-off-by: Daniel Baumann --- iredis/data/commands/info.md | 82 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 69 insertions(+), 13 deletions(-) (limited to 'iredis/data/commands/info.md') diff --git a/iredis/data/commands/info.md b/iredis/data/commands/info.md index 8dcebc1..3a24c42 100644 --- a/iredis/data/commands/info.md +++ b/iredis/data/commands/info.md @@ -15,6 +15,7 @@ The optional parameter can be used to select a specific section of information: - `modules`: Modules section - `keyspace`: Database related statistics - `modules`: Module related sections +- `errorstats`: Redis error statistics It can also take the following values: @@ -60,6 +61,7 @@ Here is the meaning of all fields in the **server** section: - `run_id`: Random value identifying the Redis server (to be used by Sentinel and Cluster) - `tcp_port`: TCP/IP listen port +- `server_time_in_usec`: Epoch-based system time with microsecond precision - `uptime_in_seconds`: Number of seconds since Redis server start - `uptime_in_days`: Same value expressed in days - `hz`: The server's current frequency setting @@ -72,14 +74,20 @@ Here is the meaning of all fields in the **clients** section: - `connected_clients`: Number of client connections (excluding connections from replicas) +- `cluster_connections`: An approximation of the number of sockets used by the + cluster's bus +- `maxclients`: The value of the `maxclients` configuration directive. This is + the upper limit for the sum of `connected_clients`, `connected_slaves` and + `cluster_connections`. - `client_longest_output_list`: Longest output list among current client connections - `client_biggest_input_buf`: Biggest input buffer among current client connections - `blocked_clients`: Number of clients pending on a blocking call (`BLPOP`, - `BRPOP`, `BRPOPLPUSH`, `BZPOPMIN`, `BZPOPMAX`) + `BRPOP`, `BRPOPLPUSH`, `BLMOVE`, `BZPOPMIN`, `BZPOPMAX`) - `tracking_clients`: Number of clients being tracked (`CLIENT TRACKING`) - `clients_in_timeout_table`: Number of clients in the clients timeout table +- `io_threads_active`: Flag indicating if I/O threads are active Here is the meaning of all fields in the **memory** section: @@ -143,6 +151,15 @@ by referring to the `MEMORY STATS` command and the `MEMORY DOCTOR`. Here is the meaning of all fields in the **persistence** section: - `loading`: Flag indicating if the load of a dump file is on-going +- `current_cow_size`: The size in bytes of copy-on-write memory while a child + fork is running +- `current_fork_perc`: The percentage of progress of the current fork process. + For AOF and RDB forks it is the percentage of `current_save_keys_processed` + out of `current_save_keys_total`. +- `current_save_keys_processed`: Number of keys processed by the current save + operation +- `current_save_keys_total`: Number of keys at the beginning of the current save + operation - `rdb_changes_since_last_save`: Number of changes since the last dump - `rdb_bgsave_in_progress`: Flag indicating a RDB save is on-going - `rdb_last_save_time`: Epoch-based timestamp of last successful RDB save @@ -150,8 +167,8 @@ Here is the meaning of all fields in the **persistence** section: - `rdb_last_bgsave_time_sec`: Duration of the last RDB save operation in seconds - `rdb_current_bgsave_time_sec`: Duration of the on-going RDB save operation if any -- `rdb_last_cow_size`: The size in bytes of copy-on-write allocations during the - last RDB save operation +- `rdb_last_cow_size`: The size in bytes of copy-on-write memory during the last + RDB save operation - `aof_enabled`: Flag indicating AOF logging is activated - `aof_rewrite_in_progress`: Flag indicating a AOF rewrite operation is on-going - `aof_rewrite_scheduled`: Flag indicating an AOF rewrite operation will be @@ -162,11 +179,11 @@ Here is the meaning of all fields in the **persistence** section: if any - `aof_last_bgrewrite_status`: Status of the last AOF rewrite operation - `aof_last_write_status`: Status of the last write operation to the AOF -- `aof_last_cow_size`: The size in bytes of copy-on-write allocations during the - last AOF rewrite operation +- `aof_last_cow_size`: The size in bytes of copy-on-write memory during the last + AOF rewrite operation - `module_fork_in_progress`: Flag indicating a module fork is on-going -- `module_fork_last_cow_size`: The size in bytes of copy-on-write allocations - during the last module fork operation +- `module_fork_last_cow_size`: The size in bytes of copy-on-write memory during + the last module fork operation `rdb_changes_since_last_save` refers to the number of operations that produced some kind of changes in the dataset since the last time either `SAVE` or @@ -187,6 +204,8 @@ If a load operation is on-going, these additional fields will be added: - `loading_start_time`: Epoch-based timestamp of the start of the load operation - `loading_total_bytes`: Total file size +- `loading_rdb_used_mem`: The memory usage of the server that had generated the + RDB file at the time of the file's creation - `loading_loaded_bytes`: Number of bytes already loaded - `loading_loaded_perc`: Same value expressed as a percentage - `loading_eta_seconds`: ETA in seconds for the load to be complete @@ -218,6 +237,7 @@ Here is the meaning of all fields in the **stats** section: - `pubsub_channels`: Global number of pub/sub channels with client subscriptions - `pubsub_patterns`: Global number of pub/sub pattern with client subscriptions - `latest_fork_usec`: Duration of the latest fork operation in microseconds +- `total_forks`: Total number of fork operations since the server start - `migrate_cached_sockets`: The number of sockets open for `MIGRATE` purposes - `slave_expires_tracked_keys`: The number of keys tracked for expiry purposes (applicable only to writable replicas) @@ -235,12 +255,22 @@ Here is the meaning of all fields in the **stats** section: (only applicable for broadcast mode) - `unexpected_error_replies`: Number of unexpected error replies, that are types of errors from an AOF load or replication +- `total_error_replies`: Total number of issued error replies, that is the sum + of rejected commands (errors prior command execution) and failed commands + (errors within the command execution) +- `total_reads_processed`: Total number of read events processed +- `total_writes_processed`: Total number of write events processed +- `io_threaded_reads_processed`: Number of read events processed by the main and + I/O threads +- `io_threaded_writes_processed`: Number of write events processed by the main + and I/O threads Here is the meaning of all fields in the **replication** section: - `role`: Value is "master" if the instance is replica of no one, or "slave" if the instance is a replica of some master instance. Note that a replica can be master of another replica (chained replication). +- `master_failover_state`: The state of an ongoing failover, if any. - `master_replid`: The replication ID of the Redis server. - `master_replid2`: The secondary replication ID, used for PSYNC after a failover. @@ -267,7 +297,15 @@ If the instance is a replica, these additional fields are provided: If a SYNC operation is on-going, these additional fields are provided: -- `master_sync_left_bytes`: Number of bytes left before syncing is complete +- `master_sync_total_bytes`: Total number of bytes that need to be transferred. + this may be 0 when the size is unknown (for example, when the + `repl-diskless-sync` configuration directive is used) +- `master_sync_read_bytes`: Number of bytes already transferred +- `master_sync_left_bytes`: Number of bytes left before syncing is complete (may + be negative when `master_sync_total_bytes` is 0) +- `master_sync_perc`: The percentage `master_sync_read_bytes` from + `master_sync_total_bytes`, or an approximation that uses + `loading_rdb_used_mem` when `master_sync_total_bytes` is 0 - `master_sync_last_io_seconds_ago`: Number of seconds since last transfer I/O during a SYNC operation @@ -291,18 +329,36 @@ For each replica, the following line is added: Here is the meaning of all fields in the **cpu** section: -- `used_cpu_sys`: System CPU consumed by the Redis server -- `used_cpu_user`:User CPU consumed by the Redis server +- `used_cpu_sys`: System CPU consumed by the Redis server, which is the sum of + system CPU consumed by all threads of the server process (main thread and + background threads) +- `used_cpu_user`: User CPU consumed by the Redis server, which is the sum of + user CPU consumed by all threads of the server process (main thread and + background threads) - `used_cpu_sys_children`: System CPU consumed by the background processes - `used_cpu_user_children`: User CPU consumed by the background processes +- `used_cpu_sys_main_thread`: System CPU consumed by the Redis server main + thread +- `used_cpu_user_main_thread`: User CPU consumed by the Redis server main thread The **commandstats** section provides statistics based on the command type, -including the number of calls, the total CPU time consumed by these commands, -and the average CPU consumed per command execution. +including the number of calls that reached command execution (not rejected), the +total CPU time consumed by these commands, the average CPU consumed per command +execution, the number of rejected calls (errors prior command execution), and +the number of failed calls (errors within the command execution). For each command type, the following line is added: -- `cmdstat_XXX`: `calls=XXX,usec=XXX,usec_per_call=XXX` +- `cmdstat_XXX`: + `calls=XXX,usec=XXX,usec_per_call=XXX,rejected_calls=XXX,failed_calls=XXX` + +The **errorstats** section enables keeping track of the different errors that +occurred within Redis, based upon the reply error prefix ( The first word after +the "-", up to the first space. Example: `ERR` ). + +For each error type, the following line is added: + +- `errorstat_XXX`: `count=XXX` The **cluster** section currently only contains a unique field: -- cgit v1.2.3