Current location - Quotes Website - Team slogan - What port is redis 16379?
What port is redis 16379?
Refer to the official documents in detail:

Web page link

The following is the official explanation of Google Translate:

Redis cluster TCP port

Each Redis cluster node needs to open two TCP connections. Ordinary Redis TCP port is used to provide services to clients, such as 6379, plus the data port plus 10000, so it is 16379 in the example.

The second high port is used for the cluster bus, which is a node-to-node communication channel using binary protocol. Nodes use cluster bus for fault detection, configuration update, failover authorization, etc. Instead of trying to communicate with the cluster bus port, the client should always use the normal Redis command port, but make sure to open these two ports in the firewall, otherwise the Redis cluster nodes will not be able to communicate.

The offset between the command port and the cluster bus port is fixed, always 10000.

Please note that for each node, in order for the Redis cluster to work properly, you need to:

Ordinary client communication port (usually 6379) is used to communicate with all clients who need to access the cluster and all other cluster nodes (using the client port for key migration).

The cluster bus port (client port+10000) must be accessible from all other cluster nodes.

If the two TCP ports are not open, the cluster will not work as expected.

Cluster bus uses different binary protocols to exchange data between nodes, which is more suitable for exchanging information between nodes with little bandwidth and processing time.

Therefore, if the firewall needs to open ports 6379 and 16379 when opening.