# Server (server information)
redis_version:3.0.0 #redis server version
redis_git_sha1:00000000 #Git SHA1
redis_git_dirty:0 #Git dirty flag
redis_build_id:6c2c390b97607ff0 #redis build id
redis_mode:cluster #Operation mode, stand-alone or cluster
os:Linux 2.6.32-358.2.1.el6.x86_64 x86_64 #Host operating system of the redis server
arch_bits:64 #architecture (32 or 64 bits)
Multiplexing_api:epoll #The event processing mechanism used by redis
gcc_version:4.4.7 #The gcc version used when compiling redis
process_id:12099 #pid of the redis server process
run_id:63bcd0e57adb695ff0bf873cf42d403ddbac1565 #Random identifier of the redis server (for sentinel and cluster)
tcp_port:9021 #redis server listening port
uptime_in_seconds:26157730 #The total time to start the redis server, in seconds
uptime_in_days:302 #The total time for the redis server to start, in days
hz:10 #redis internal scheduling (close timeout clients, delete expired keys, etc.) frequency, the program specifies that serverCron runs 10 times per second.
lru_clock:14359959 #Auto-incrementing clock, used for LRU management, the clock is updated every 100ms (hz=10, so every 1000ms/10=100ms to perform a scheduled task).
config_file:/redis_cluster/etc/9021.conf #Configuration file path
# Clients (connected client information)
connected_clients:1081 #Number of connected clients (excluding clients connected via slave)
client_longest_output_list:0 #Among the currently connected clients, the longest output list, use the client list command to observe the maximum value of the omem field
client_biggest_input_buf:0 #Among the currently connected clients, the maximum input buffer, use the client list command to observe the maximum value of the two fields qbuf and qbuf-free
blocked_clients:0 #Number of clients waiting for blocking commands (BLPOP, BRPOP, BRPOPLPUSH)
# Memory (memory information)
used_memory:327494024 #The total amount of memory allocated by the redis allocator, in bytes
used_memory_human:312.32M #return the total amount of memory allocated by redis in human readable format
used_memory_rss:587247616 #From the perspective of the operating system, returns the total amount of memory allocated by redis (commonly known as the resident set size). This value is consistent with the output of the top command
used_memory_peak:1866541112 #redis peak memory consumption (in bytes)
used_memory_peak_human:1.74G #returns the peak memory consumption of redis in human readable format
used_memory_lua:35840 #The size of the memory used by the lua engine (in bytes)
mem_fragmentation_ratio:1.79 #The ratio between used_memory_rss and used_memory, less than 1 means swap is used, greater than 1 means more fragments
mem_allocator:jemalloc-3.6.0 #The memory allocator used by redis specified at compile time. Can be libc, jemalloc or tcmalloc
# Persistence (persistence related information of rdb and aof)
loading:0 #Whether the server is loading persistent files
rdb_changes_since_last_save:28900855 #The number of write commands from the last time the rdb file was successfully generated, that is, how many write commands are not persistent
rdb_bgsave_in_progress:0 #Whether the server is creating the rdb file
rdb_last_save_time:1482358115 #The timestamp of the last successful rdb file creation. Current Timestamp - rdb_last_save_time=how many seconds the rdb file was not successfully generated
rdb_last_bgsave_status:ok #Whether the last rdb persistence was successful
rdb_last_bgsave_time_sec:2 #Second time for the last successful generation of rdb file
rdb_current_bgsave_time_sec:-1 #If the server is creating an rdb file, then this field records the number of seconds the current creation operation has spent
aof_enabled:1 #Whether aof is enabled
aof_rewrite_in_progress:0 #Identify whether the rewrite operation of aof is in progress
aof_rewrite_scheduled:0
#rewrite task plan, when the client sends the bgrewriteaof command, if the current rewrite subprocess is executing, then the bgrewriteaof requested by the client will become a scheduled task, and the rewrite will be executed after the aof subprocess ends.
aof_last_rewrite_time_sec:-1 #The duration of the last aof rewrite
aof_current_rewrite_time_sec:-1 #If the rewrite operation is in progress, record the time used, in seconds
aof_last_bgrewrite_status:ok #Status of the last bgrewriteaof operation
aof_last_write_status:ok #The last aof write status
aof_current_size:4201740 #aofcurrent size
aof_base_size:4201687 #The size of the aof file when the server starts or after the last execution of aof rewrite
aof_pending_rewrite:0 #Is there an aof rewrite operation that is executed after waiting for the rdb file to be created?
aof_buffer_length:0 #aof buffer size
aof_rewrite_buffer_length:0 #aof rewrite buffer的大小
aof_pending_bio_fsync:0 #In the background I/O queue, the number of fsync calls waiting to be executed
aof_delayed_fsync:0 #Number of delayed fsync calls
# Stats (general statistics)
total_connections_received: 209561105 #Number of newly created connections, if there are too many newly created connections, excessive creation and destruction of connections will have an impact on performance, indicating that the short connection is serious or there is a problem with the use of the connection pool, you need to investigate the connection settings of the code
total_commands_processed:2220123478 #Number of commands processed by redis
instantaneous_ops_per_sec:279 #redis current qps, the number of commands executed per second in real time within redis
total_net_input_bytes:118515678789 #redis network entry traffic bytes
total_net_output_bytes:236361651271 #redis network egress traffic bytes
instantaneous_input_kbps:13.56 #redis network entry kps
instantaneous_output_kbps:31.33 #redis network export kps
rejected_connections:0 #Number of rejected connections, the number of redis connections reaches the maxclients limit, and the number of new connections rejected
sync_full:1 #Number of successful master-slave synchronizations
sync_partial_ok:0 #The number of successful master-slave synchronization
sync_partial_err:0 #Master-slave partial synchronization failure times
expired_keys: 15598177 #Number of expired keys since running
evicted_keys: 0 #The number of keys that have been removed (after maxmemory) since running
keyspace_hits:1122202228 #Number of hits
keyspace_misses:577781396 #Number of misses
pubsub_channels:0 #Number of channels currently in use
pubsub_patterns:0 #Number of patterns currently in use
latest_fork_usec:15679 #The number of times the redis process was blocked by the latest fork operation, in microseconds
migrate_cached_sockets:0 #
# Replication (master-slave information, information displayed on the master)
role:master #The role of the instance is master or slave
connected_slaves:1 #Number of connected slave instances
slave0:ip=192.168.64.104,port=9021,state=online,offset=6713173004,lag=0 #lag how many seconds did the slave library send the REPLCONF command to the master library
master_repl_offset:6713173145 #Master-slave synchronization offset, if this value is the same as the above offset, it means that the master-slave consistency is not delayed
repl_backlog_active:1 #Whether the replication backlog buffer is enabled
repl_backlog_size:134217728 #Copy backlog buffer size
repl_backlog_first_byte_offset:6578955418 #The size of the offset in the copy buffer
repl_backlog_histlen:134217728 #This value is equal to master_repl_offset - repl_backlog_first_byte_offset, this value will not exceed the size of repl_backlog_size
# Replication (master-slave information, information displayed on the slave)
role:slave #The role of the instance is master or slave
master_host:192.168.64.102 #The ip of the master corresponding to this node
master_port:9021 #The port of the master corresponding to this node
master_link_status:up #The slave side can view the synchronization status between it and the master. When the replication is disconnected, it means down
master_last_io_seconds_ago:0 #How many seconds did the master library not send data to the slave library?
master_sync_in_progress:0 #Whether the slave server is synchronizing with the master server
slave_repl_offset:6713173818 #slave copy offset
slave_priority:100 #slave priority
slave_read_only:1 #Whether the slave library is set to read-only
connected_slaves:0 #Number of connected slave instances
master_repl_offset:0
repl_backlog_active:0 #Whether the replication backlog buffer is enabled
repl_backlog_size:134217728 #Copy backlog buffer size
repl_backlog_first_byte_offset:0 #The size of the offset in the copy buffer
repl_backlog_histlen:0 #This value is equal to master_repl_offset - repl_backlog_first_byte_offset, this value will not exceed the size of repl_backlog_size
# CPU (CPU calculation statistics)
used_cpu_sys:96894.66 # Sum up the CPU occupied by all redis main processes in the core state
used_cpu_user:87397.39 #To sum up the CPU occupied by all redis main processes in user mode
used_cpu_sys_children:6.37 #To sum up the CPU occupied by the background process in the core state
used_cpu_user_children:52.83 #To sum up the CPU occupied by the background process in user mode
# Commandstats (execution statistics for various types of commands)
cmdstat_get:calls=1664657469,usec=8266063320,usec_per_call=4.97
#call the number of executions of each command, the total CPU time consumed by usec (in microseconds), and the average CPU time consumed each time (in microseconds)
# Cluster (cluster related information)
cluster_enabled:1 #Whether the instance is enabled in cluster mode
# Keyspace (database related statistics)
db0:keys=194690,expires=191702,avg_ttl=3607772262 #The number of keys in db0, and the number of keys with a lifetime, the average lifetime