redis-sentinel-configmap.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. kind: ConfigMap
  2. apiVersion: v1
  3. metadata:
  4. name: redis-sentinel-config
  5. namespace: public-service
  6. labels:
  7. addonmanager.kubernetes.io/mode: Reconcile
  8. data:
  9. redis-master.conf: |
  10. port 6379
  11. tcp-backlog 511
  12. timeout 0
  13. tcp-keepalive 0
  14. loglevel notice
  15. databases 16
  16. save 900 1
  17. save 300 10
  18. save 60 10000
  19. stop-writes-on-bgsave-error yes
  20. rdbcompression yes
  21. rdbchecksum yes
  22. dbfilename dump.rdb
  23. dir /data/
  24. slave-serve-stale-data yes
  25. repl-diskless-sync no
  26. repl-diskless-sync-delay 5
  27. repl-disable-tcp-nodelay no
  28. slave-priority 100
  29. appendonly no
  30. appendfilename "appendonly.aof"
  31. appendfsync everysec
  32. no-appendfsync-on-rewrite no
  33. auto-aof-rewrite-percentage 100
  34. auto-aof-rewrite-min-size 64mb
  35. aof-load-truncated yes
  36. lua-time-limit 5000
  37. slowlog-log-slower-than 10000
  38. slowlog-max-len 128
  39. latency-monitor-threshold 0
  40. notify-keyspace-events ""
  41. hash-max-ziplist-entries 512
  42. hash-max-ziplist-value 64
  43. list-max-ziplist-entries 512
  44. list-max-ziplist-value 64
  45. set-max-intset-entries 512
  46. zset-max-ziplist-entries 128
  47. zset-max-ziplist-value 64
  48. hll-sparse-max-bytes 3000
  49. activerehashing yes
  50. client-output-buffer-limit normal 0 0 0
  51. client-output-buffer-limit slave 256mb 64mb 60
  52. client-output-buffer-limit pubsub 64mb 16mb 60
  53. hz 10
  54. aof-rewrite-incremental-fsync yes
  55. redis-slave.conf: |
  56. port 6379
  57. slaveof redis-sentinel-master-ss-0.redis-sentinel-master-ss.public-service.svc.cluster.local 6379
  58. tcp-backlog 511
  59. timeout 0
  60. tcp-keepalive 0
  61. loglevel notice
  62. databases 16
  63. save 900 1
  64. save 300 10
  65. save 60 10000
  66. stop-writes-on-bgsave-error yes
  67. rdbcompression yes
  68. rdbchecksum yes
  69. dbfilename dump.rdb
  70. dir /data/
  71. slave-serve-stale-data yes
  72. slave-read-only yes
  73. repl-diskless-sync no
  74. repl-diskless-sync-delay 5
  75. repl-disable-tcp-nodelay no
  76. slave-priority 100
  77. appendonly no
  78. appendfilename "appendonly.aof"
  79. appendfsync everysec
  80. no-appendfsync-on-rewrite no
  81. auto-aof-rewrite-percentage 100
  82. auto-aof-rewrite-min-size 64mb
  83. aof-load-truncated yes
  84. lua-time-limit 5000
  85. slowlog-log-slower-than 10000
  86. slowlog-max-len 128
  87. latency-monitor-threshold 0
  88. notify-keyspace-events ""
  89. hash-max-ziplist-entries 512
  90. hash-max-ziplist-value 64
  91. list-max-ziplist-entries 512
  92. list-max-ziplist-value 64
  93. set-max-intset-entries 512
  94. zset-max-ziplist-entries 128
  95. zset-max-ziplist-value 64
  96. hll-sparse-max-bytes 3000
  97. activerehashing yes
  98. client-output-buffer-limit normal 0 0 0
  99. client-output-buffer-limit slave 256mb 64mb 60
  100. client-output-buffer-limit pubsub 64mb 16mb 60
  101. hz 10
  102. aof-rewrite-incremental-fsync yes
  103. redis-sentinel.conf: |
  104. port 26379
  105. dir /data
  106. sentinel monitor mymaster redis-sentinel-master-ss-0.redis-sentinel-master-ss.public-service.svc.cluster.local 6379 2
  107. sentinel down-after-milliseconds mymaster 30000
  108. sentinel parallel-syncs mymaster 1
  109. sentinel failover-timeout mymaster 180000