Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of redis Cluster creating 3 Master and 3 Slave redis Cluster without reids-trib script

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the example analysis of redis cluster creating 3 master and 3 slave redis cluster without reids-trib script. what is introduced in this article is very detailed and has certain reference value. Interested friends must finish it!

1. Start 126127128 3 7000 port redis (master)

/ usr/local/bin/redis-server / etc/redis/cluster/7000/redis.conf

2. Add master nodes to the redis cluster

126-7000:

Cluster meet 20.26.33.127 7000

Cluster meet 20.26.33.128 7000

3. Distribution slots 126-7000 (0-5460) 127-7000 (5461-10922) 128-7000 (10923-16383)

126-7000: modify nodes.conf 0-5460

127-7000: modified nodes.conf 5461-10922

128-7000: modify nodes.conf 10923-16383

4. Start 126127128 3 7001 port redis (slave)

/ usr/local/bin/redis-server / etc/redis/cluster/7001/redis.conf

5. Add slave nodes to the redis cluster

126-7000:

Cluster meet 20.26.33.126 7001

Cluster meet 20.26.33.127 7001

Cluster meet 20.26.33.128 7001

6. Set the slave with 3 master nodes each

Cluster replicate: sets the current node as the slave node of the node specified by node_id (viewed through cluster nodes)

126-7001:cluster replicate 733f04bdb253e1b1c3211eb34ce891f18f1088ec

127-7001:cluster replicate d6e118c3923c204f54686510465867db8518a4cc

128-7001:cluster replicate cd8c7a1542efa3f66ba4e262073d0e5bd2f4a22d

The above is all the content of the article "sample Analysis of redis Cluster creating 3 Master and 3 Slave redis Cluster without reids-trib script". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report