In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to understand etcd cluster, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
The editor will focus on how to create an etcd cluster. There are two main ways to create an etcd cluster: 1) to create it from scratch; 2) to create an existing etcd cluster.
Create a new etcd cluster from scratch
If there is no etcd cluster in the current environment, then this is the only way. Using this approach, the implementation must determine the ip information for all etcd cluster machines (of course, it can also be dns information, if there is an internal dns system). The next step is to pass the information of all the machines as parameters in the startup script of each etcd machine. Parameters include
-initial-cluster:-initial-cluster=etcd0= http://:2380,etcd1=http://:2380... .
-initial-cluster-state:-initial-cluster-state=new (create a new cluster)
Create a new etcd cluster using the existing etcd cluster
You need to create a special key in an existing etcd cluster, which we call a cluster token. The 6c00 in the following command... . It's token.
$curl-X PUT https://myetcd.local/v2/keys/discovery/6c007a14875d53d9bf0ef5a6fc0257c817f0fb83/config/size-d value=3
Start the etcd machine using the-discovery parameter
-discovery https://myetcd.local/v2/keys/discovery/6c007a14875d53d9bf0ef5a6fc0257c817f0fb83
On how to understand the etcd cluster to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.