Closed khteh closed 4 years ago
$ k logs -f redis-cluster-5
1:C 28 Mar 2019 06:12:32.597 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 28 Mar 2019 06:12:32.597 # Redis version=5.0.4, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 28 Mar 2019 06:12:32.597 # Configuration loaded
1:M 28 Mar 2019 06:12:32.597 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
1:M 28 Mar 2019 06:12:32.597 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
1:M 28 Mar 2019 06:12:32.597 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
1:M 28 Mar 2019 06:12:32.598 * No cluster configuration found, I'm d765c528867f297cda8e943bce5dae07954286a2
1:M 28 Mar 2019 06:12:32.602 * Running mode=cluster, port=6379.
1:M 28 Mar 2019 06:12:32.602 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 28 Mar 2019 06:12:32.602 # Server initialized
1:M 28 Mar 2019 06:12:32.602 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
1:M 28 Mar 2019 06:12:32.602 * Ready to accept connections
1:M 28 Mar 2019 06:13:17.229 # configEpoch set to 6 via CLUSTER SET-CONFIG-EPOCH
1:M 28 Mar 2019 06:13:22.627 # Cluster state changed: ok
$ k logs -f redis-cluster-5 1:C 28 Mar 2019 06:12:32.597 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 28 Mar 2019 06:12:32.597 # Redis version=5.0.4, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 28 Mar 2019 06:12:32.597 # Configuration loaded 1:M 28 Mar 2019 06:12:32.597 # You requested maxclients of 10000 requiring at least 10032 max file descriptors. 1:M 28 Mar 2019 06:12:32.597 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted. 1:M 28 Mar 2019 06:12:32.597 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'. 1:M 28 Mar 2019 06:12:32.598 * No cluster configuration found, I'm d765c528867f297cda8e943bce5dae07954286a2 1:M 28 Mar 2019 06:12:32.602 * Running mode=cluster, port=6379. 1:M 28 Mar 2019 06:12:32.602 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 1:M 28 Mar 2019 06:12:32.602 # Server initialized 1:M 28 Mar 2019 06:12:32.602 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. 1:M 28 Mar 2019 06:12:32.602 * Ready to accept connections 1:M 28 Mar 2019 06:13:17.229 # configEpoch set to 6 via CLUSTER SET-CONFIG-EPOCH 1:M 28 Mar 2019 06:13:22.627 # Cluster state changed: ok
Hello. Can you resolved this problem?
Can I set the above configuration? (type 'yes' to accept): yes
Nodes configuration updated Assign a different config epoch to each node Sending CLUSTER MEET messages to join the cluster Waiting for the cluster to join ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... ───────────────────────────────────────────────────────────────────────────────
I am also facing the same issue, please help me.. working on POC. Thank you in advance.
Redis cluster formation is done through k8s initialization batch job after all the pods of redis nodes are running. https://github.com/khteh/kubernetes/blob/master/redis-cluster-initjob.yml