redis.conf 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. bind 127.0.0.1 -::1
  2. protected-mode yes
  3. port 6379
  4. tcp-backlog 511
  5. timeout 0
  6. tcp-keepalive 300
  7. daemonize no
  8. pidfile /var/run/redis_6379.pid
  9. loglevel notice
  10. logfile ""
  11. databases 16
  12. always-show-logo no
  13. set-proc-title yes
  14. proc-title-template "{title} {listen-addr} {server-mode}"
  15. save 20 3
  16. stop-writes-on-bgsave-error yes
  17. rdbcompression yes
  18. rdbchecksum yes
  19. dbfilename dump.rdb
  20. rdb-del-sync-files no
  21. dir ./
  22. replica-serve-stale-data yes
  23. replica-read-only yes
  24. repl-diskless-sync yes
  25. repl-diskless-sync-delay 5
  26. repl-diskless-sync-max-replicas 0
  27. repl-diskless-load disabled
  28. repl-disable-tcp-nodelay no
  29. replica-priority 100
  30. acllog-max-len 128
  31. lazyfree-lazy-eviction no
  32. lazyfree-lazy-expire no
  33. lazyfree-lazy-server-del no
  34. replica-lazy-flush no
  35. lazyfree-lazy-user-del no
  36. lazyfree-lazy-user-flush no
  37. oom-score-adj no
  38. oom-score-adj-values 0 200 800
  39. disable-thp yes
  40. appendonly no
  41. appendfilename "appendonly.aof"
  42. appenddirname "appendonlydir"
  43. appendfsync everysec
  44. no-appendfsync-on-rewrite no
  45. auto-aof-rewrite-percentage 100
  46. auto-aof-rewrite-min-size 64mb
  47. aof-load-truncated yes
  48. aof-use-rdb-preamble yes
  49. aof-timestamp-enabled no
  50. slowlog-log-slower-than 10000
  51. slowlog-max-len 128
  52. latency-monitor-threshold 0
  53. notify-keyspace-events ""
  54. hash-max-listpack-entries 512
  55. hash-max-listpack-value 64
  56. list-max-listpack-size -2
  57. list-compress-depth 0
  58. set-max-intset-entries 512
  59. zset-max-listpack-entries 128
  60. zset-max-listpack-value 64
  61. hll-sparse-max-bytes 3000
  62. stream-node-max-bytes 4096
  63. stream-node-max-entries 100
  64. activerehashing yes
  65. client-output-buffer-limit normal 0 0 0
  66. client-output-buffer-limit replica 256mb 64mb 60
  67. client-output-buffer-limit pubsub 32mb 8mb 60
  68. hz 10
  69. dynamic-hz yes
  70. aof-rewrite-incremental-fsync yes
  71. rdb-save-incremental-fsync yes
  72. jemalloc-bg-thread yes