зеркало из https://github.com/mozilla/kitsune.git
Configs for persistent and volatile Redis. [bug 659521]
This commit is contained in:
Родитель
5b5081049e
Коммит
196d67e50c
|
@ -0,0 +1,26 @@
|
|||
daemonize yes
|
||||
pidfile /var/run/redis/redis-sumo-persistent.pid
|
||||
port 6381
|
||||
timeout 300
|
||||
loglevel verbose
|
||||
logfile stdout
|
||||
databases 4
|
||||
save 900 1
|
||||
save 300 10
|
||||
save 60 10000
|
||||
rdbcompression yes
|
||||
dbfilename /var/redis/sumo-persistent/dump.rdb
|
||||
dir /var/redis/sumo-persistent/
|
||||
maxmemory 2147483648
|
||||
maxmemory-policy volatile-lru
|
||||
appendonly no
|
||||
appendfsync everysec
|
||||
vm-enabled no
|
||||
vm-swap-file /tmp/redis-sumo-persistent.swap
|
||||
vm-max-memory 0
|
||||
vm-page-size 32
|
||||
vm-pages 134217728
|
||||
vm-max-threads 4
|
||||
hash-max-zipmap-entries 64
|
||||
hash-max-zipmap-value 512
|
||||
activerehashing yes
|
|
@ -0,0 +1,31 @@
|
|||
daemonize yes
|
||||
pidfile /var/run/redis/redis-<%= name %>.pid
|
||||
port <%= port %>
|
||||
timeout 300
|
||||
loglevel verbose
|
||||
logfile stdout
|
||||
databases 4
|
||||
<% if redis_persistent %>
|
||||
save 900 1
|
||||
save 300 10
|
||||
save 60 10000
|
||||
<% end %>
|
||||
rdbcompression yes
|
||||
dbfilename /var/redis/<%= name %>/dump.rdb
|
||||
dir /var/redis/<%= name %>/
|
||||
<% unless redis_slaveof_ip.empty? %>
|
||||
slaveof <%= redis_slaveof_ip %> <%= port %>
|
||||
<% end %>
|
||||
maxmemory <%= size %>
|
||||
maxmemory-policy <%= memory_policy %>
|
||||
appendonly no
|
||||
appendfsync everysec
|
||||
vm-enabled no
|
||||
vm-swap-file /tmp/redis-<%= name %>.swap
|
||||
vm-max-memory 0
|
||||
vm-page-size 32
|
||||
vm-pages 134217728
|
||||
vm-max-threads 4
|
||||
hash-max-zipmap-entries 64
|
||||
hash-max-zipmap-value 512
|
||||
activerehashing yes
|
|
@ -0,0 +1,23 @@
|
|||
daemonize yes
|
||||
pidfile /var/run/redis/redis-sumo.pid
|
||||
port 6379
|
||||
timeout 300
|
||||
loglevel verbose
|
||||
logfile stdout
|
||||
databases 4
|
||||
rdbcompression yes
|
||||
dbfilename /var/redis/sumo/dump.rdb
|
||||
dir /var/redis/sumo/
|
||||
maxmemory 15032385536
|
||||
maxmemory-policy allkeys-lru
|
||||
appendonly no
|
||||
appendfsync everysec
|
||||
vm-enabled no
|
||||
vm-swap-file /tmp/redis-sumo.swap
|
||||
vm-max-memory 0
|
||||
vm-page-size 32
|
||||
vm-pages 134217728
|
||||
vm-max-threads 4
|
||||
hash-max-zipmap-entries 64
|
||||
hash-max-zipmap-value 512
|
||||
activerehashing yes
|
Загрузка…
Ссылка в новой задаче