redis / lettuce

Advanced Java Redis client for thread-safe sync, async, and reactive usage. Supports Cluster, Sentinel, Pipelining, and codecs.
https://lettuce.io
MIT License
5.41k stars 975 forks source link

When the slave node goes down, the number of Redis cluster connections doubles #2485

Open 1209233066 opened 1 year ago

1209233066 commented 1 year ago

version

Lettuce version: 6.0.1
Redis cluster version: 5.0.14
Redis cluster topology: 1master-->2slave

logging

  1. Usually, the client’s number is 270 0000,but the connections increase to 610 0000 when i stop one slave node.

  2. At the same time, I also saw the TCP flood via demsg |tail.

    TCP: request_sock_TCP: Possible SYN flooding on port 6379. Sending cookies. Check SNMP counters

  3. The redis-server log is this: Error registering fd event for the new client: result not representable (fd=13128)

mp911de commented 1 year ago

If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.