원인

jemalloc 설치가 되지 않아 발생

 

해결

jemalloc 설치

  centOS 7.0 이하 : yum -y install jemalloc

  centOS 7.0 이상 : yum -y install epel-release

                               yum -y install varnish

jemalloc make

  redis 폴더의 deps로 이동

  make hiredis jemalloc linenoise lua

redis install

  redis 폴더의 src로 이동

  make & make install

-- 모든 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

참고자료

https://redis.io/commands/config-get

 

CONFIG GET – Redis

The CONFIG GET command is used to read the configuration parameters of a running Redis server. Not all the configuration parameters are supported in Redis 2.4, while Redis 2.6 can read the whole configuration of a server using this command. The symmetric c

redis.io

http://redisgate.kr/redis/server/config_get.php

 

CONFIG GET Redis

config_get CONFIG GET 레디스 서버 구성 정보 조회 실행중인 서버에서 구성 정보를 조회한다. 버전 2.6 부터 거의 모든 파라미터를 조회할 수 있다. 구성정보 또는 파라미터는 redis.conf 파일에 지정된

redisgate.kr


to Top