[Redis] 서비스중인 Redis Config 조회/저장
DB Skill/NoSQL 2021. 6. 9. 17:55
-- 모든 config 값 조회
-- 아래 리스트의 실제 설정 값은 생략하였고, 4.0.11 기준
127.0.0.1:6379> config get *
1) "dbfilename"
3) "requirepass"
5) "masterauth"
7) "cluster-announce-ip"
9) "unixsocket"
11) "logfile"
13) "pidfile"
15) "slave-announce-ip"
17) "maxmemory"
19) "proto-max-bulk-len"
21) "client-query-buffer-limit"
23) "maxmemory-samples"
25) "lfu-log-factor"
27) "lfu-decay-time"
29) "timeout"
31) "active-defrag-threshold-lower"
33) "active-defrag-threshold-upper"
35) "active-defrag-ignore-bytes"
37) "active-defrag-cycle-min"
39) "active-defrag-cycle-max"
41) "auto-aof-rewrite-percentage"
43) "auto-aof-rewrite-min-size"
45) "hash-max-ziplist-entries"
47) "hash-max-ziplist-value"
49) "list-max-ziplist-size"
51) "list-compress-depth"
53) "set-max-intset-entries"
55) "zset-max-ziplist-entries"
57) "zset-max-ziplist-value"
59) "hll-sparse-max-bytes"
61) "lua-time-limit"
63) "slowlog-log-slower-than"
65) "latency-monitor-threshold"
67) "slowlog-max-len"
69) "port"
71) "cluster-announce-port"
73) "cluster-announce-bus-port"
75) "tcp-backlog"
77) "databases"
79) "repl-ping-slave-period"
81) "repl-timeout"
83) "repl-backlog-size"
85) "repl-backlog-ttl"
87) "maxclients"
89) "watchdog-period"
91) "slave-priority"
93) "slave-announce-port"
95) "min-slaves-to-write"
97) "min-slaves-max-lag"
99) "hz"
101) "cluster-node-timeout"
103) "cluster-migration-barrier"
105) "cluster-slave-validity-factor"
107) "repl-diskless-sync-delay"
109) "tcp-keepalive"
111) "cluster-require-full-coverage"
113) "cluster-slave-no-failover"
115) "no-appendfsync-on-rewrite"
117) "slave-serve-stale-data"
119) "slave-read-only"
121) "stop-writes-on-bgsave-error"
123) "daemonize"
125) "rdbcompression"
127) "rdbchecksum"
129) "activerehashing"
131) "activedefrag"
133) "protected-mode"
135) "repl-disable-tcp-nodelay"
137) "repl-diskless-sync"
139) "aof-rewrite-incremental-fsync"
141) "aof-load-truncated"
143) "aof-use-rdb-preamble"
145) "lazyfree-lazy-eviction"
147) "lazyfree-lazy-expire"
149) "lazyfree-lazy-server-del"
151) "slave-lazy-flush"
153) "maxmemory-policy"
155) "loglevel"
157) "supervised"
159) "appendfsync"
161) "syslog-facility"
163) "appendonly"
165) "dir"
167) "save"
169) "client-output-buffer-limit"
171) "unixsocketperm"
173) "slaveof"
175) "notify-keyspace-events"
177) "bind"
-- maxmemory 설정을 조회
127.0.0.1:6379> config get maxmemory
-- maxmemory를 4G로 설정
127.0.0.1:6379> config set maxmemory 4G
-- config set으로 설정한 정보를 conf 파일에 작성
127.0.0.1:6379> config rewrite
참고자료
'DB Skill > NoSQL' 카테고리의 다른 글
[redis] redis 설치 에러 zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory (0) | 2022.08.30 |
---|---|
[MongoDB] 격리된( $isolated ) UPDATE와 REMOVE (0) | 2022.08.26 |