色哟哟视频在线观看-色哟哟视频在线-色哟哟欧美15最新在线-色哟哟免费在线观看-国产l精品国产亚洲区在线观看-国产l精品国产亚洲区久久

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

性能與可靠性并重,F(xiàn)lexus X 實(shí)例助力 Redis 三主三從集群高效運(yùn)行

jf_21561199 ? 來源:jf_21561199 ? 作者:jf_21561199 ? 2025-01-07 17:21 ? 次閱讀

前言

在追求極致性能與可靠性的道路上,F(xiàn)lexus X 實(shí)例以卓越的算力與智能調(diào)度,為 Redis 三主三從集群的高效運(yùn)行保駕護(hù)航。此架構(gòu)不僅實(shí)現(xiàn)了數(shù)據(jù)的高可用性,還通過負(fù)載均衡提升了整體性能,確保您的業(yè)務(wù)在海量數(shù)據(jù)面前依然游刃有余。828 華為云企業(yè)上云節(jié),華為云 Flexus X 實(shí)例攜手 Redis 三主三從集群解決方案,為您帶來前所未有的優(yōu)惠與便捷,開啟數(shù)據(jù)庫高效運(yùn)行的新篇章!

鏈接直達(dá)華為云Flexus云服務(wù)器X實(shí)例

wKgZPGd88iaAcNayAAEA43MSbXE986.png

Redis 集群介紹

Redis 三主三從集群是提升數(shù)據(jù)庫系統(tǒng)可用性、容錯(cuò)性和性能的關(guān)鍵部署模式。它由三個(gè)主節(jié)點(diǎn)處理讀寫請求,三個(gè)從節(jié)點(diǎn)復(fù)制主節(jié)點(diǎn)數(shù)據(jù),確保數(shù)據(jù)高可用與冗余。通過自動故障轉(zhuǎn)移機(jī)制,從節(jié)點(diǎn)能在主節(jié)點(diǎn)故障時(shí)自動接管,保障服務(wù)連續(xù)性。此外,讀寫分離與負(fù)載均衡策略進(jìn)一步優(yōu)化了系統(tǒng)性能,適用于電商、社交網(wǎng)絡(luò)和實(shí)時(shí)數(shù)據(jù)分析等高要求場景。

集群的核心優(yōu)勢在于其高效的數(shù)據(jù)復(fù)制與同步機(jī)制,從節(jié)點(diǎn)無縫復(fù)制主節(jié)點(diǎn)數(shù)據(jù),不阻塞主節(jié)點(diǎn)處理流程。同時(shí),當(dāng)主節(jié)點(diǎn)故障時(shí),系統(tǒng)能迅速自動完成故障轉(zhuǎn)移,無需人工干預(yù),極大提升了系統(tǒng)的穩(wěn)定性和可靠性。

Redis 三主三從集群以其卓越的高可用性、容錯(cuò)能力和性能優(yōu)化,成為復(fù)雜應(yīng)用場景下數(shù)據(jù)存儲與訪問的首選方案。通過合理配置與部署,它能有效滿足各類業(yè)務(wù)對數(shù)據(jù)存儲的高要求,確保數(shù)據(jù)的安全、可靠與高效訪問。

官方網(wǎng)站:https://redis.io/

官方文檔:https://redis.io/docs/latest/

wKgZO2d88iaAA-FlAAUBjTqs1JE744.png

環(huán)境規(guī)劃

部署流程

需要了解:

?采用 docker 方式進(jìn)行部署 Redis 三主三從集群

?詳細(xì)購買配置實(shí)例可參考文章:快速部署華為云Flexus X實(shí)例,開啟您的云端之旅

?部署 docker 服務(wù)請參考文章:華為FlexusX與Docker+Nginx的高效整合之路

拉取鏡像

拉取鏡像并創(chuàng)建網(wǎng)絡(luò)

[root@flexusx-251f~]# docker pull redis:6.0.86.0.8:Pulling from library/redisbb79b6b2107f:Pull complete1ed3521a5dcb:Pull complete5999b99cee8f:Pull complete3f806f5245c9:Pull completef8a4497572b2:Pull completeeafe3b6b8d06:Pull completeDigest:sha256:21db12e5ab3cc343e9376d655e8eabbdbe5516801373e95a8a9e66010c5b8819Status:Downloaded newer image for redis:6.0.8docker.io/library/redis:6.0.8[root@flexusx-251f~]# docker network create redis-cluster-net4d9a413869dd2339ef196cf0b5611fbc6209d586c2c5fd5b2b8b8f02d1dd8203

部署主節(jié)點(diǎn)

[root@flexusx-251f~]# docker run -itd--nameredis-master1 --networkredis-cluster-net -p6379:6379 -v/data/redis/share/redis-node-1:/data redis:6.0.8 --cluster-enabledyes --appendonlyyes --port637904c85ab05c718ace09a8eb56a77220edc9d068a5201125e23b3a222fc898c323[root@flexusx-251f~]# docker run -itd--nameredis-master2 --networkredis-cluster-net -p6380:6379 -v/data/redis/share/redis-node-2:/data redis:6.0.8 --cluster-enabledyes --appendonlyyes --port6379a900e7ddf6c99313b4f1bfd068d8a6b735a4425ec3b055d5e0616a944bdd44e6[root@flexusx-251f~]# docker run -itd--nameredis-master3 --networkredis-cluster-net -p6381:6379 -v/data/redis/share/redis-node-3:/data redis:6.0.8 --cluster-enabledyes --appendonlyyes --port6379

部署從節(jié)點(diǎn)

[root@flexusx-251f~]# docker run -itd--nameredis-slave1 --networkredis-cluster-net -p6382:6379 -v/data/redis/share/redis-slave-1:/data redis:6.0.8 --cluster-enabledyes --appendonlyyes --port63797f39daa7c0a7a5ca221db4a3e02ec495c82e69d3131e32b968be2cf7be3a93a4[root@flexusx-251f~]# docker run -itd--nameredis-slave2 --networkredis-cluster-net -p6383:6379 -v/data/redis/share/redis-slave-2:/data redis:6.0.8 --cluster-enabledyes --appendonlyyes --port63794e615a412d19072e4dd233f92f062867ab9bc8bf59587aa6252e2c1bc9796690[root@flexusx-251f~]# docker run -itd--nameredis-slave3 --networkredis-cluster-net -p6384:6379 -v/data/redis/share/redis-slave-3:/data redis:6.0.8 --cluster-enabledyes --appendonlyyes --port637956693d453988d23f1d477867e4a7b7dba5b2e6b9fd8a80724ae0a14f5c4deead

初始化 redis 集群

放行端口 6379,6380,6381,6382,6383,6384

wKgZPGd88ieAKcppAAEJKWHCzYI212.png

查看 Redis 主機(jī) IP 地址

[root@flexusx-251f~]# docker inspect redis-master1 |grep-iipadd"SecondaryIPAddresses":null,"IPAddress":"","IPAddress":"172.27.0.2",[root@flexusx-251f~]# docker inspect redis-master2 |grep-iipadd"SecondaryIPAddresses":null,"IPAddress":"","IPAddress":"172.27.0.3",[root@flexusx-251f~]# docker inspect redis-master3 |grep-iipadd"SecondaryIPAddresses":null,"IPAddress":"","IPAddress":"172.27.0.7",[root@flexusx-251f~]# docker inspect redis-slave1 |grep-iipadd"SecondaryIPAddresses":null,"IPAddress":"","IPAddress":"172.27.0.6",[root@flexusx-251f~]# docker inspect redis-slave2 |grep-iipadd"SecondaryIPAddresses":null,"IPAddress":"","IPAddress":"172.27.0.4",[root@flexusx-251f~]# docker inspect redis-slave3 |grep-iipadd"SecondaryIPAddresses":null,"IPAddress":"","IPAddress":"172.27.0.5",

進(jìn)入其中一個(gè)主節(jié)點(diǎn)的容器內(nèi)部

[root@flexusx-251f~]# docker exec -itredis-master1 /bin/bash root@04c85ab05c71:/data#

注意將 ip 修改為自己的容器 ip,端口對應(yīng)之前創(chuàng)建的節(jié)點(diǎn) port

?在使用 redis-cli --cluster create命令創(chuàng)建 Redis 集群時(shí),Redis 會自動根據(jù)提供的節(jié)點(diǎn)數(shù)量和 --cluster-replicas 1的參數(shù)來分配主節(jié)點(diǎn)和從節(jié)

[root@flexusx-251f~]# docker exec -itredis-master1 /bin/bash root@04c85ab05c71:/data#redis-cli --clustercreate 172.27.0.2:6379 172.27.0.3:6379 172.27.0.7:6379 172.27.0.6:6379 172.27.0.4:6379 172.27.0.5:6379 --cluster-replicas1

當(dāng)出現(xiàn)提示“Can I set the above configuration? (type 'yes' to accept):”的時(shí)候,輸入 yes 即可;

>>>Performing hashslots allocation on 6 nodes...Master[0]->Slots 0 -5460Master[1]->Slots 5461 -10922Master[2]->Slots 10923 -16383Addingreplica 172.27.0.4:6379 to 172.27.0.2:6379Addingreplica 172.27.0.5:6379 to 172.27.0.3:6379Addingreplica 172.27.0.6:6379 to 172.27.0.7:6379M:24b3c498fa142da2e7f49f1c60dde9d7b49c8694 172.27.0.2:6379slots:[0-5460](5461slots)masterM:31292a53e00a7613e37621404bb3b9fe3da79fac 172.27.0.3:6379slots:[5461-10922](5462slots)masterM:7921f3f2a93b319f0689f777f108ea871215a8f9 172.27.0.7:6379slots:[10923-16383](5461slots)masterS:ebebfbe22aafda4ab34621e336b87833229fb91b 172.27.0.6:6379replicates7921f3f2a93b319f0689f777f108ea871215a8f9S:0ed3f67915347da7146eece57f4f7d52c1393065 172.27.0.4:6379replicates24b3c498fa142da2e7f49f1c60dde9d7b49c8694S:8c3b43b00509c0a591862ed6ea561b873b0a5edd 172.27.0.5:6379replicates31292a53e00a7613e37621404bb3b9fe3da79facCanI set the above configuration?(type'yes'to accept):yes

這樣我們的三主三從就部署成功了

wKgZO2d88ieAYKLpAADmZEpzLNs318.png

查看集群狀態(tài)

第一種方式,任意進(jìn)入一個(gè)容器內(nèi)部,然后進(jìn)入 6379 端口的這個(gè)客戶端,-c 表示以集群的方式進(jìn)入

[root@flexusx-251f~]# docker exec -itredis-master1 /bin/bash root@04c85ab05c71:/data#redis-cli -p6379 -c127.0.0.1:6379>cluster infocluster_state:ok #正常 cluster_slots_assigned:16384cluster_slots_ok:16384cluster_slots_pfail:0cluster_slots_fail:0cluster_known_nodes:6 # 6 節(jié)點(diǎn) cluster_size:3cluster_current_epoch:6cluster_my_epoch:1cluster_stats_messages_ping_sent:269cluster_stats_messages_pong_sent:305cluster_stats_messages_sent:574cluster_stats_messages_ping_received:300cluster_stats_messages_pong_received:269cluster_stats_messages_meet_received:5cluster_stats_messages_received:574

第二種方式,通過 cluster nodes 查看

[root@flexusx-251f~]# docker exec -itredis-master1 /bin/bash 127.0.0.1:6379>cluster nodes31292a53e00a7613e37621404bb3b9fe3da79fac172.27.0.3:6379@16379 master -0 1726211088655 2 connected 5461-1092224b3c498fa142da2e7f49f1c60dde9d7b49c8694172.27.0.2:6379@16379 myself,master -0 1726211087000 1 connected 0-54607921f3f2a93b319f0689f777f108ea871215a8f9172.27.0.7:6379@16379 master -0 1726211088000 3 connected 10923-16383ebebfbe22aafda4ab34621e336b87833229fb91b172.27.0.6:6379@16379 slave 7921f3f2a93b319f0689f777f108ea871215a8f9 0 1726211087654 3 connected8c3b43b00509c0a591862ed6ea561b873b0a5edd172.27.0.5:6379@16379 slave 31292a53e00a7613e37621404bb3b9fe3da79fac 0 1726211087000 2 connected0ed3f67915347da7146eece57f4f7d52c1393065172.27.0.4:6379@16379 slave 24b3c498fa142da2e7f49f1c60dde9d7b49c8694 0 1726211086000 1 connected

第三種方式,通過 redis-cli --cluster check 172.27.0.2:6379查看(改成自己的 ip)

[root@flexusx-251f~]# docker exec -itredis-master1 /bin/bash root@04c85ab05c71:/data#redis-cli -p6379 -croot@04c85ab05c71:/data#redis-cli --clustercheck 172.27.0.2:6379172.27.0.2:6379(24b3c498...)->2 keys |5461slots |1slaves.172.27.0.3:6379(31292a53...)->0 keys |5462slots |1slaves.172.27.0.7:6379(7921f3f2...)->0 keys |5461slots |1slaves.[OK]2 keys in 3 masters.0.00keys per slot on average.>>>Performing ClusterCheck (usingnode 172.27.0.2:6379)M:24b3c498fa142da2e7f49f1c60dde9d7b49c8694 172.27.0.2:6379slots:[0-5460](5461slots)master1additional replica(s)M:31292a53e00a7613e37621404bb3b9fe3da79fac 172.27.0.3:6379slots:[5461-10922](5462slots)master1additional replica(s)M:7921f3f2a93b319f0689f777f108ea871215a8f9 172.27.0.7:6379slots:[10923-16383](5461slots)master1additional replica(s)S:ebebfbe22aafda4ab34621e336b87833229fb91b 172.27.0.6:6379slots:(0slots)slavereplicates7921f3f2a93b319f0689f777f108ea871215a8f9S:8c3b43b00509c0a591862ed6ea561b873b0a5edd 172.27.0.5:6379slots:(0slots)slavereplicates31292a53e00a7613e37621404bb3b9fe3da79facS:0ed3f67915347da7146eece57f4f7d52c1393065 172.27.0.4:6379slots:(0slots)slavereplicates24b3c498fa142da2e7f49f1c60dde9d7b49c8694[OK]All nodes agree about slots configuration.>>>Check foropen slots...>>>Check slotscoverage...[OK]All 16384 slots covered.

數(shù)據(jù)存儲測試

在主 master2 節(jié)點(diǎn)上存數(shù)據(jù)

[root@flexusx-251f~]# docker exec -itredis-master2 /bin/bashroot@a900e7ddf6c9:/data#redis-cli -p6379 -c127.0.0.1:6379>set name zhangsanOK127.0.0.1:6379>set subject MathOK

在從 slave3 上查看數(shù)據(jù)

[root@flexusx-251f~]# docker exec -itredis-slave3 /bin/bashroot@4bc3876d311b:/data#redis-cli -p6379 -c127.0.0.1:6379>get name->Redirected to slot [5798]located at 172.27.0.3:6379"zhangsan"172.27.0.3:6379>get subject"Math"

擴(kuò)容測試

在創(chuàng)建兩臺節(jié)點(diǎn)容器

[root@flexusx-251f~]# docker run -itd--nameredis-master4 --networkredis-cluster-net -p6385:6379 -v/data/redis/share/redis-node-4:/data redis:6.0.8 --cluster-enabledyes --appendonlyyes --port6379[root@flexusx-251f~]# docker run -itd--nameredis-slave4 --networkredis-cluster-net -p6386:6379 -v/data/redis/share/redis-slave-4:/data redis:6.0.8 --cluster-enabledyes --appendonlyyes --port6379

查看節(jié)點(diǎn) ip 地址

[root@flexusx-251f~]# docker inspect redis-master4 |grep-iipadd "SecondaryIPAddresses": null,"IPAddress":"","IPAddress":"172.27.0.8",[root@flexusx-251f~]# docker inspect redis-slave4 |grep-iipadd"SecondaryIPAddresses":null,"IPAddress":"","IPAddress":"172.27.0.9",

進(jìn)入 redis-master4 節(jié)點(diǎn),增加節(jié)點(diǎn)

[root@flexusx-251f~]# docker exec -itredis-master4 /bin/bashroot@b77caa384727:/data#redis-cli --clusteradd-node 172.27.0.8:6379 172.27.0.2:6379>>>Adding node172.27.0.8:6379 to cluster 172.27.0.2:6379>>>Performing ClusterCheck (usingnode 172.27.0.2:6379)M:24b3c498fa142da2e7f49f1c60dde9d7b49c8694 172.27.0.2:6379slots:[0-5460](5461slots)master1additional replica(s)M:31292a53e00a7613e37621404bb3b9fe3da79fac 172.27.0.3:6379slots:[5461-10922](5462slots)master1additional replica(s)M:7921f3f2a93b319f0689f777f108ea871215a8f9 172.27.0.7:6379slots:[10923-16383](5461slots)master1additional replica(s)S:ebebfbe22aafda4ab34621e336b87833229fb91b 172.27.0.6:6379slots:(0slots)slavereplicates7921f3f2a93b319f0689f777f108ea871215a8f9S:8c3b43b00509c0a591862ed6ea561b873b0a5edd 172.27.0.5:6379slots:(0slots)slavereplicates31292a53e00a7613e37621404bb3b9fe3da79facS:0ed3f67915347da7146eece57f4f7d52c1393065 172.27.0.4:6379slots:(0slots)slavereplicates24b3c498fa142da2e7f49f1c60dde9d7b49c8694[OK]All nodes agree about slots configuration.>>>Check foropen slots...>>>Check slotscoverage...[OK]All 16384 slots covered.>>>Send CLUSTERMEET to node 172.27.0.8:6379 to make it join the cluster.[OK]New node added correctly.

查看主從狀態(tài)

?可以看到只有主節(jié)點(diǎn),還未分配從節(jié)點(diǎn)

root@b77caa384727:/data#redis-cli --clustercheck 172.27.0.2:6379172.27.0.2:6379(24b3c498...)->2 keys |5461slots |1slaves.172.27.0.3:6379(31292a53...)->2 keys |5462slots |1slaves.172.27.0.7:6379(7921f3f2...)->0 keys |5461slots |1slaves.172.27.0.8:6379(290b2aa0...)->0 keys |0slots |0slaves.[OK]4 keys in 4 masters.0.00keys per slot on average.>>>Performing ClusterCheck (usingnode 172.27.0.2:6379)M:24b3c498fa142da2e7f49f1c60dde9d7b49c8694 172.27.0.2:6379slots:[0-5460](5461slots)master1additional replica(s)M:31292a53e00a7613e37621404bb3b9fe3da79fac 172.27.0.3:6379slots:[5461-10922](5462slots)master1additional replica(s)M:7921f3f2a93b319f0689f777f108ea871215a8f9 172.27.0.7:6379slots:[10923-16383](5461slots)master1additional replica(s)S:ebebfbe22aafda4ab34621e336b87833229fb91b 172.27.0.6:6379slots:(0slots)slavereplicates7921f3f2a93b319f0689f777f108ea871215a8f9S:8c3b43b00509c0a591862ed6ea561b873b0a5edd 172.27.0.5:6379slots:(0slots)slavereplicates31292a53e00a7613e37621404bb3b9fe3da79facS:0ed3f67915347da7146eece57f4f7d52c1393065 172.27.0.4:6379slots:(0slots)slavereplicates24b3c498fa142da2e7f49f1c60dde9d7b49c8694M:290b2aa0e79a9c9ad5ebdb6aa468176b61513283 172.27.0.8:6379slots:(0slots)master[OK]All nodes agree about slots configuration.>>>Check foropen slots...>>>Check slotscoverage...[OK]All 16384 slots covered.

槽位分配:172.27.0.8:6379 還沒有分配槽位

root@b77caa384727:/data#redis-cli --clusterreshard 172.27.0.2:6379>>>Performing ClusterCheck (usingnode 172.27.0.2:6379)M:24b3c498fa142da2e7f49f1c60dde9d7b49c8694 172.27.0.2:6379slots:[0-5460](5461slots)master1additional replica(s)M:31292a53e00a7613e37621404bb3b9fe3da79fac 172.27.0.3:6379slots:[5461-10922](5462slots)master1additional replica(s)M:7921f3f2a93b319f0689f777f108ea871215a8f9 172.27.0.7:6379slots:[10923-16383](5461slots)master1additional replica(s)S:ebebfbe22aafda4ab34621e336b87833229fb91b 172.27.0.6:6379slots:(0slots)slavereplicates7921f3f2a93b319f0689f777f108ea871215a8f9S:8c3b43b00509c0a591862ed6ea561b873b0a5edd 172.27.0.5:6379slots:(0slots)slavereplicates31292a53e00a7613e37621404bb3b9fe3da79facS:0ed3f67915347da7146eece57f4f7d52c1393065 172.27.0.4:6379slots:(0slots)slavereplicates24b3c498fa142da2e7f49f1c60dde9d7b49c8694M:290b2aa0e79a9c9ad5ebdb6aa468176b61513283 172.27.0.8:6379slots:(0slots)master[OK]All nodes agree about slots configuration.>>>Check foropen slots...>>>Check slotscoverage...[OK]All 16384 slots covered.Howmany slots do you want to move (from1 to 16384)?4096Whatis the receiving node ID?290b2aa0e79a9c9ad5ebdb6aa468176b61513283Pleaseenter all the source node IDs.Type'all'to use all the nodes as source nodes for the hash slots.Type'done'once you entered all the source nodes IDs.Sourcenode #1: allReadyto move 4096 slots.Sourcenodes:M:24b3c498fa142da2e7f49f1c60dde9d7b49c8694 172.27.0.2:6379slots:[0-5460](5461slots)master1additional replica(s)M:31292a53e00a7613e37621404bb3b9fe3da79fac 172.27.0.3:6379slots:[5461-10922](5462slots)master1additional replica(s)M:7921f3f2a93b319f0689f777f108ea871215a8f9 172.27.0.7:6379slots:[10923-16383](5461slots)master1additional replica(s)Destinationnode:M:290b2aa0e79a9c9ad5ebdb6aa468176b61513283 172.27.0.8:6379slots:(0slots)masterReshardingplan:Movingslot 5461 from 31292a53e00a7613e37621404bb3b9fe3da79fac.............

查看主從狀態(tài)

root@b77caa384727:/data#redis-cli --clustercheck 172.27.0.2:6379172.27.0.2:6379(24b3c498...)->1 keys |4096slots |1slaves.172.27.0.3:6379(31292a53...)->1 keys |4096slots |1slaves.172.27.0.7:6379(7921f3f2...)->0 keys |4096slots |1slaves.172.27.0.8:6379(290b2aa0...)->2 keys |4096slots |0slaves.[OK]4 keys in 4 masters.0.00keys per slot on average.>>>Performing ClusterCheck (usingnode 172.27.0.2:6379)M:24b3c498fa142da2e7f49f1c60dde9d7b49c8694 172.27.0.2:6379slots:[1365-5460](4096slots)master1additional replica(s)M:31292a53e00a7613e37621404bb3b9fe3da79fac 172.27.0.3:6379slots:[6827-10922](4096slots)master1additional replica(s)M:7921f3f2a93b319f0689f777f108ea871215a8f9 172.27.0.7:6379slots:[12288-16383](4096slots)master1additional replica(s)S:ebebfbe22aafda4ab34621e336b87833229fb91b 172.27.0.6:6379slots:(0slots)slavereplicates7921f3f2a93b319f0689f777f108ea871215a8f9S:8c3b43b00509c0a591862ed6ea561b873b0a5edd 172.27.0.5:6379slots:(0slots)slavereplicates31292a53e00a7613e37621404bb3b9fe3da79facS:0ed3f67915347da7146eece57f4f7d52c1393065 172.27.0.4:6379slots:(0slots)slavereplicates24b3c498fa142da2e7f49f1c60dde9d7b49c8694M:290b2aa0e79a9c9ad5ebdb6aa468176b61513283 172.27.0.8:6379slots:[0-1364],[5461-6826],[10923-12287](4096slots)master[OK]All nodes agree about slots configuration.>>>Check foropen slots...>>>Check slotscoverage...[OK]All 16384 slots covered.

為 172.27.0.8:6379 分配從節(jié)點(diǎn) 172.27.0.9:6379

# 172.27.0.8:6379 節(jié)點(diǎn)的 IDroot@b77caa384727:/data#redis-cli --clusteradd-node 172.27.0.9:6379 172.27.0.8:6379 --cluster-slave--cluster-master-id290b2aa0e79a9c9ad5ebdb6aa468176b61513283>>>Adding node172.27.0.9:6379 to cluster 172.27.0.8:6379>>>Performing ClusterCheck (usingnode 172.27.0.8:6379)M:290b2aa0e79a9c9ad5ebdb6aa468176b61513283 172.27.0.8:6379slots:[0-1364],[5461-6826],[10923-12287](4096slots)masterM:24b3c498fa142da2e7f49f1c60dde9d7b49c8694 172.27.0.2:6379slots:[1365-5460](4096slots)master1additional replica(s)M:31292a53e00a7613e37621404bb3b9fe3da79fac 172.27.0.3:6379slots:[6827-10922](4096slots)master1additional replica(s)M:7921f3f2a93b319f0689f777f108ea871215a8f9 172.27.0.7:6379slots:[12288-16383](4096slots)master1additional replica(s)S:8c3b43b00509c0a591862ed6ea561b873b0a5edd 172.27.0.5:6379slots:(0slots)slavereplicates31292a53e00a7613e37621404bb3b9fe3da79facS:ebebfbe22aafda4ab34621e336b87833229fb91b 172.27.0.6:6379slots:(0slots)slavereplicates7921f3f2a93b319f0689f777f108ea871215a8f9S:0ed3f67915347da7146eece57f4f7d52c1393065 172.27.0.4:6379slots:(0slots)slavereplicates24b3c498fa142da2e7f49f1c60dde9d7b49c8694[OK]All nodes agree about slots configuration.>>>Check foropen slots...>>>Check slotscoverage...[OK]All 16384 slots covered.>>>Send CLUSTERMEET to node 172.27.0.9:6379 to make it join the cluster.Waitingfor the cluster to join>>>Configure nodeas replica of 172.27.0.8:6379.[OK]New node added correctly.

擴(kuò)容完成

root@b77caa384727:/data#redis-cli --clustercheck 172.27.0.2:6379 172.27.0.2:6379(24b3c498...)->1 keys |4096slots |1slaves.172.27.0.3:6379(31292a53...)->1 keys |4096slots |1slaves.172.27.0.7:6379(7921f3f2...)->0 keys |4096slots |1slaves.172.27.0.8:6379(290b2aa0...)->2 keys |4096slots |1slaves.[OK]4 keys in 4 masters.0.00keys per slot on average.>>>Performing ClusterCheck (usingnode 172.27.0.2:6379)M:24b3c498fa142da2e7f49f1c60dde9d7b49c8694 172.27.0.2:6379slots:[1365-5460](4096slots)master1additional replica(s)S:c3abe3fa7ef3103d32e19f17c152250e3392c94f 172.27.0.9:6379slots:(0slots)slavereplicates290b2aa0e79a9c9ad5ebdb6aa468176b61513283M:31292a53e00a7613e37621404bb3b9fe3da79fac 172.27.0.3:6379slots:[6827-10922](4096slots)master1additional replica(s)M:7921f3f2a93b319f0689f777f108ea871215a8f9 172.27.0.7:6379slots:[12288-16383](4096slots)master1additional replica(s)S:ebebfbe22aafda4ab34621e336b87833229fb91b 172.27.0.6:6379slots:(0slots)slavereplicates7921f3f2a93b319f0689f777f108ea871215a8f9S:8c3b43b00509c0a591862ed6ea561b873b0a5edd 172.27.0.5:6379slots:(0slots)slavereplicates31292a53e00a7613e37621404bb3b9fe3da79facS:0ed3f67915347da7146eece57f4f7d52c1393065 172.27.0.4:6379slots:(0slots)slavereplicates24b3c498fa142da2e7f49f1c60dde9d7b49c8694M:290b2aa0e79a9c9ad5ebdb6aa468176b61513283 172.27.0.8:6379slots:[0-1364],[5461-6826],[10923-12287](4096slots)master1additional replica(s)[OK]All nodes agree about slots configuration.>>>Check foropen slots...>>>Check slotscoverage...[OK]All 16384 slots covered.

體驗(yàn)和感受

華為云 Flexus X 實(shí)例,以其卓越的算力、靈活的擴(kuò)展性和智能的運(yùn)維管理,為 Redis 三主三從集群的高效運(yùn)行提供了強(qiáng)有力的支撐。Redis 三主三從集群,作為業(yè)界公認(rèn)的高可用、高性能解決方案,通過數(shù)據(jù)復(fù)制、自動故障轉(zhuǎn)移和讀寫分離機(jī)制,確保了數(shù)據(jù)的安全性、一致性和系統(tǒng)的穩(wěn)定性。而華為云 Flexus X 實(shí)例,憑借其出色的資源調(diào)度能力和優(yōu)化的網(wǎng)絡(luò)架構(gòu),進(jìn)一步提升了集群的處理能力和響應(yīng)速度。

在 828 華為云企業(yè)上云節(jié),無論您是電商巨頭、社交網(wǎng)絡(luò)先鋒,還是實(shí)時(shí)數(shù)據(jù)分析領(lǐng)域的探索者,F(xiàn)lexus X 都能助您一臂之力,讓數(shù)據(jù)成為驅(qū)動業(yè)務(wù)增長的核心動力。點(diǎn)擊下方鏈接,立即行動,讓 Flexus X 實(shí)例攜手 Redis 三主三從集群,為您的數(shù)字化轉(zhuǎn)型之路加速護(hù)航!

產(chǎn)品鏈接華為云Flexus云服務(wù)器X實(shí)例直播建站服務(wù)器-華為云

wKgZPGd88ieADNnOAAMdMY7jqCs214.png

審核編輯 黃宇

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報(bào)投訴
  • 華為云
    +關(guān)注

    關(guān)注

    3

    文章

    2607

    瀏覽量

    17491
收藏 人收藏

    評論

    相關(guān)推薦

    云服務(wù)器 Flexus X 實(shí)例:多智能體對話框架 AutoGen 部署和實(shí)例運(yùn)行

    在體驗(yàn)了華為云的 Flexus 云服務(wù)器 X 實(shí)例 后,感受到其卓越的性能和靈活性,通過彈性伸縮服務(wù)和負(fù)載均衡,能夠輕松應(yīng)對市場的瞬息萬變,確保業(yè)務(wù)的連續(xù)
    的頭像 發(fā)表于 01-08 11:51 ?92次閱讀
    云服務(wù)器 <b class='flag-5'>Flexus</b> <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b>:多智能體對話框架 AutoGen 部署和<b class='flag-5'>實(shí)例</b><b class='flag-5'>運(yùn)行</b>

    構(gòu)建數(shù)據(jù)庫解決方案,基于華為云 Flexus X 實(shí)例容器化 MySQL 主從同步架構(gòu)

    華為云企業(yè)上云節(jié),Flexus X 實(shí)例特惠開啟,助力企業(yè)輕松構(gòu)建高性能數(shù)據(jù)庫系統(tǒng)。專業(yè)團(tuán)隊(duì)技術(shù)支持,確保部署無憂,運(yùn)維
    的頭像 發(fā)表于 01-07 17:22 ?134次閱讀
    構(gòu)建數(shù)據(jù)庫解決方案,基于華為云 <b class='flag-5'>Flexus</b> <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b>容器化 MySQL 主從同步架構(gòu)

    云服務(wù)器 Flexus X 實(shí)例:輕量級 http 服務(wù)器 Tinyhttpd 部署

    Flexus 云服務(wù)器 X 實(shí)例?是華為云推出的一款高性能、高可靠性的云服務(wù)器產(chǎn)品,它專為滿足企業(yè)級用戶對計(jì)算資源的嚴(yán)格要求而設(shè)計(jì)。本篇文章
    的頭像 發(fā)表于 01-07 16:59 ?94次閱讀
    云服務(wù)器 <b class='flag-5'>Flexus</b> <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b>:輕量級 http 服務(wù)器 Tinyhttpd 部署

    華為云 Flexus X 實(shí)例 docker 部署 rancher 并構(gòu)建 k8s 集群

    ·?華為云最近正在舉辦 828 B2B 企業(yè)節(jié),Flexus X 實(shí)例的促銷力度非常大,特別適合那些對算力性能有高要求的小伙伴。如果你有自建 MySQL、
    的頭像 發(fā)表于 01-02 13:44 ?85次閱讀
    華為云 <b class='flag-5'>Flexus</b> <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b> docker 部署 rancher 并構(gòu)建 k8s <b class='flag-5'>集群</b>

    Flexus X 實(shí)例在華為云 EulerOS 環(huán)境中部署堡壘機(jī) Jumpserver 的詳細(xì)指南

    前言 "抓住華為云 828 B2B 企業(yè)節(jié)優(yōu)惠,Flexus X 實(shí)例助力性能計(jì)算需求——體驗(yàn) Jumpserver 堡壘機(jī)的流暢
    的頭像 發(fā)表于 01-02 13:43 ?70次閱讀
    <b class='flag-5'>Flexus</b> <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b>在華為云 EulerOS 環(huán)境中部署堡壘機(jī) Jumpserver 的詳細(xì)指南

    華為云 Flexus 云服務(wù)器 X 實(shí)例部署 Note Mark 筆記工具

    能夠充分利用其卓越的計(jì)算能力,確保應(yīng)用運(yùn)行流暢,更能依托其穩(wěn)定可靠的云服務(wù)體驗(yàn),實(shí)現(xiàn)高效、便捷且安全的數(shù)據(jù)管理,開啟個(gè)人信息化管理的新篇章! 一、Flexus 云服務(wù)器
    的頭像 發(fā)表于 01-02 13:42 ?73次閱讀
    華為云 <b class='flag-5'>Flexus</b> 云服務(wù)器 <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b>部署 Note Mark 筆記工具

    華為云Flexus X實(shí)例,Redis性能加速評測及對比

    隨著云計(jì)算技術(shù)的飛速發(fā)展,Redis 作為一種高性能的內(nèi)存數(shù)據(jù)庫,在各種應(yīng)用場景中發(fā)揮著越來越重要的作用。為了滿足不同用戶對 Redis 性能的高要求,華為云推出了
    的頭像 發(fā)表于 12-29 15:47 ?185次閱讀
    華為云<b class='flag-5'>Flexus</b> <b class='flag-5'>X</b><b class='flag-5'>實(shí)例</b>,<b class='flag-5'>Redis</b><b class='flag-5'>性能</b>加速評測及對比

    深度評測,華為云 Flexus X 實(shí)例在 Sysbench 性能測試中的亮眼表現(xiàn)

    了卓越的能力。通過 Sysbench 的詳盡測試,Flexus X 實(shí)例在多核計(jì)算能力、內(nèi)存吞吐量、磁盤響應(yīng)速度及吞吐能力方面均獲得了高分。其高主頻、多核支持以及智能資源調(diào)配機(jī)制,確保了在各種工作負(fù)載下的穩(wěn)定
    的頭像 發(fā)表于 12-27 13:47 ?122次閱讀
    深度評測,華為云 <b class='flag-5'>Flexus</b> <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b>在 Sysbench <b class='flag-5'>性能</b>測試中的亮眼表現(xiàn)

    華為云 Flexus X 輕松實(shí)現(xiàn) Redis多從高效部署

    購買實(shí)例、配置 Redis 主從節(jié)點(diǎn),并驗(yàn)證一架構(gòu)的正確。通過實(shí)際操作,您將體驗(yàn)到 Flexus
    的頭像 發(fā)表于 12-27 13:45 ?205次閱讀
    華為云 <b class='flag-5'>Flexus</b> <b class='flag-5'>X</b> 輕松實(shí)現(xiàn) <b class='flag-5'>Redis</b> 一<b class='flag-5'>主</b>多從<b class='flag-5'>高效</b>部署

    云服務(wù)器 Flexus?X 實(shí)例:部署?AgentOps,全方位監(jiān)測智能體

    通過深入體驗(yàn)華為云的?Flexus 云服務(wù)器 X 實(shí)例,我發(fā)現(xiàn)它不僅提供了直接通過公網(wǎng)訪問的便利,還支持高效的內(nèi)容復(fù)制粘貼功能,使得操作更
    的頭像 發(fā)表于 12-26 18:10 ?145次閱讀
    云服務(wù)器 <b class='flag-5'>Flexus</b>?<b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b>:部署?AgentOps,全方位監(jiān)測智能體

    基于華為云 Flexus 云服務(wù)器 X 實(shí)例部搭建 Halo 博客平臺

    署 Halo 博客平臺,充分發(fā)揮其穩(wěn)定可靠的云服務(wù)優(yōu)勢。通過這一實(shí)踐,我們將展示如何利用華為云的強(qiáng)大支持,實(shí)現(xiàn)博客平臺的高效搭建與管理。依托華為云 Flexus 云服務(wù)器 X
    的頭像 發(fā)表于 12-26 09:40 ?179次閱讀
    基于華為云 <b class='flag-5'>Flexus</b> 云服務(wù)器 <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b>部搭建 Halo 博客平臺

    華為云 Flexus X 實(shí)例 MySQL 性能加速評測及對比

    場景需求 3 二、Flexus 云服務(wù)器 X 購買 3 2.1 Flexus X 實(shí)例購買 4 2.2 購買 MySQL 加速鏡像 4 2.
    的頭像 發(fā)表于 12-25 17:10 ?199次閱讀
    華為云 <b class='flag-5'>Flexus</b> <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b> MySQL <b class='flag-5'>性能</b>加速評測及對比

    基于華為云 Flexus 云服務(wù)器 X 實(shí)例搭建 Linux 學(xué)習(xí)環(huán)境

    不僅提供了強(qiáng)大的計(jì)算資源,還擁有靈活的擴(kuò)展能力和穩(wěn)定的運(yùn)行表現(xiàn),為用戶提供了可靠的技術(shù)支撐。特別是對于那些希望快速搭建 Linux 學(xué)習(xí)環(huán)境的用戶來說,華為云 Flexus 云服務(wù)器 X
    的頭像 發(fā)表于 12-25 17:10 ?181次閱讀
    基于華為云 <b class='flag-5'>Flexus</b> 云服務(wù)器 <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b>搭建 Linux 學(xué)習(xí)環(huán)境

    Flexus X 實(shí)例 CPU、內(nèi)存及磁盤性能實(shí)測與分析

    引言 隨著云計(jì)算的普及,企業(yè)對于云資源的需求日益增加,而選擇一款性能強(qiáng)勁、穩(wěn)定性高的云實(shí)例成為了關(guān)鍵。華為云 Flexus X 實(shí)例作為華為
    的頭像 發(fā)表于 12-24 17:35 ?204次閱讀

    華為 Flexus 云服務(wù)器 X 實(shí)例 使用流程

    評測與應(yīng)用體驗(yàn):高性能與經(jīng)濟(jì)的完美結(jié)合引言在云計(jì)算領(lǐng)域,彈性算力的需求日益增長。傳統(tǒng)云服務(wù)器通常提供固定的規(guī)格,導(dǎo)致資源浪費(fèi)和不匹配的性能問題。華為云推出的 Flexus 云服務(wù)器
    的頭像 發(fā)表于 12-24 17:28 ?166次閱讀
    華為 <b class='flag-5'>Flexus</b> 云服務(wù)器 <b class='flag-5'>X</b> <b class='flag-5'>實(shí)例</b> 使用流程
    主站蜘蛛池模板: 久久九九精品国产自在现线拍| 最新精品国产| 亚洲 天堂 国产在线播放| 在线播放国产视频| 电影 qvod| 美国兽皇zoo在线播放| 亚洲国产日韩欧美高清片a| 91嫩草视频在线观看| 国产亚洲精品品视频在线| 日本超A大片在线观看| 一本之道高清在线3线观看| 国产免费变态视频网址网站| 欧美日韩亚洲一区二区三区在线观看| 亚洲免费成人| 国产伦精品一区二区三区免费| 欧美亚洲韩日午夜| 夜夜躁日日躁狠狠| 广播电台在线收听| 老师的玉足高跟鞋满足我| 日韩精品久久久久久久电影| 一区三区不卡高清影视| 高清无码中文字幕影片| 欧美丰满熟妇BBB久久久| 超碰97人在线视频| 久久草香蕉频线观| 污污又黄又爽免费的网站| 88.7在线收听| 久草在线一免费新视频| 激情丛林电影完整在线| 偷尝禁果H1V1幸运的山熊| 快播av种子大全| 能看的黄页最新网站| 国产av在在免费线观看美女| 国产精品自在自线亚洲| 饥渴的护士自慰被发现| 亚洲高清视频在线| 欲香欲色天天影视大全| 99在线国产视频| 国产360激情盗摄全集| 国产在线观看免费| 久久国产免费观看精品1|