[redis] info 커맨드

Redis 2016. 1. 14. 08:26

INFO 커맨드는 레디스의 버전, 운영 체제, 연결된 클라이언트, 메모리 사용량, 저장소, 복제본, 키스페이스(keyspace)에 대한 정보를 포함한 모든 레디스 서버 통계를 리턴한다.


127.0.0.1:6379> info

# Server

redis_version:3.0.2

redis_git_sha1:00000000

redis_git_dirty:0

redis_build_id:d8ace20bbd69868e

redis_mode:standalone

os:Darwin 15.0.0 x86_64

arch_bits:64

multiplexing_api:kqueue

gcc_version:4.2.1

process_id:16628

run_id:9c1a3e66ab22e039dc827b46f70936fb722c0452

tcp_port:6379

uptime_in_seconds:459

uptime_in_days:0

hz:10

lru_clock:9886885

config_file:


# Clients

connected_clients:1

client_longest_output_list:0

client_biggest_input_buf:0

blocked_clients:0


# Memory

used_memory:576832

used_memory_human:563.31K

used_memory_rss:1826816

used_memory_peak:576832

used_memory_peak_human:563.31K

used_memory_lua:36864

mem_fragmentation_ratio:3.17

mem_allocator:libc


# Persistence

loading:0

rdb_changes_since_last_save:1

rdb_bgsave_in_progress:0

rdb_last_save_time:1452727002

rdb_last_bgsave_status:ok

rdb_last_bgsave_time_sec:-1

rdb_current_bgsave_time_sec:-1

aof_enabled:0

aof_rewrite_in_progress:0

aof_rewrite_scheduled:0

aof_last_rewrite_time_sec:-1

aof_current_rewrite_time_sec:-1

aof_last_bgrewrite_status:ok

aof_last_write_status:ok


# Stats

total_connections_received:2

total_commands_processed:14

instantaneous_ops_per_sec:0

total_net_input_bytes:490

total_net_output_bytes:4385

instantaneous_input_kbps:0.00

instantaneous_output_kbps:0.00

rejected_connections:0

sync_full:0

sync_partial_ok:0

sync_partial_err:0

expired_keys:0

evicted_keys:0

keyspace_hits:1

keyspace_misses:0

pubsub_channels:0

pubsub_patterns:0

latest_fork_usec:0

migrate_cached_sockets:0


# Replication

role:master

connected_slaves:0

master_repl_offset:0

repl_backlog_active:0

repl_backlog_size:1048576

repl_backlog_first_byte_offset:0

repl_backlog_histlen:0


# CPU

used_cpu_sys:0.33

used_cpu_user:0.15

used_cpu_sys_children:0.00

used_cpu_user_children:0.00


# Cluster

cluster_enabled:0


# Keyspace

db0:keys=1,expires=0,avg_ttl=0


항목 별로 보려면 INFO 커맨드 내의 주석을 참고해서 따로 볼 수 있다.


127.0.0.1:6379> INFO cpu

# CPU

used_cpu_sys:0.40

used_cpu_user:0.18

used_cpu_sys_children:0.00

used_cpu_user_children:0.00

127.0.0.1:6379> INFO cluster

# Cluster

cluster_enabled:0

127.0.0.1:6379> INFO replication

# Replication

role:master

connected_slaves:0

master_repl_offset:0

repl_backlog_active:0

repl_backlog_size:1048576

repl_backlog_first_byte_offset:0

repl_backlog_histlen:0


Posted by '김용환'
,