Copy it from here.************************************************************************************************Online to find are both ZK and ETCD comparison, and consul relatively few, this feeling is reliable, also seen in other places on the consul of The Spit Groove, recorded************************************************************************************************LeadIn a distributed micro-service architecture, an application may consist
ETCD is a highly available key-value storage system that is used primarily for shared configuration and service discovery. ETCD is developed and maintained by CoreOS and is inspired by ZooKeeper and Doozer, which is written in the go language and handles log replication through the raft consistency algorithm to ensure strong consistency. Raft is a new consistency algorithm from Stanford, suitable for the lo
Environment :etcd01:192.168.93.201,centos7.2etcd02:192.168.93.203,centos7.2etcd03:192.168.93.203,centos7.2Software version:etcd:2.3.7Implementation steps:With ETCD1 deployment as an example, the other 2 host steps are the same:Installing ETCD[email protected] ~]# Yum install etcd-yModifying a configuration fileVi/etc/etcd//etcd.confEtcd_name=etcd01Etcd_data_dir=
service discovery system is widely used by kubernetes and other systemsIs it easier for him than for zookeeper to be more efficient in the face of smaller clusters? And his programming language go itself is a multithreaded programming language, indeed there is a lot of attraction (although I do not understand the go language, but in learning Docker is also a glimpse of the style)In raft, any time a server can play one of the following roles:Leader: H
Refer to my previous article (Click here) to introduce a key issue in the etcd cluster environment:
Which of the three etcd nodes should be accessed by clustering )???
(1) Any of the three read operations can be performed, even if it is not a leader
(2) For write operations, it seems that only the leader can be connected to write data.
I have a cluster composed of three nodes (127.0.0.1: 4001, 127.0.0.1:
New to buy notebook, reinstall ETCD, record it;
Three systems are centos7.3 virtual machines: IP addresses are: 192.168.23.128-130
Introduce a more clumsy way, suitable for beginners
Installation steps:
1) Yum Install-y Etcd
2 Modify the 9 parameters in the configuration file
Node1 node:
[Root@bxhvm01 ~]# grep-v "^#"/etc/etcd/etcd.conf etcd_name=etcd01 "etcd_dat
Label:.gzetcdrefatitarget toolarturllis # Backup ETCD data etcdctl backup--DATA-DIR/VAR/LIB/ETCD/DEFAULT.ETCD--backup-dir/root/etcd71 ETCD backup uses ETCD command etcdctl for etc Backup, the script is as follows: #!/bin/bashdate_time= ' date +%y%m%d ' Etcdctl backup--data-dir/var/lib/
Open-source service discovery project Zookeeper, Doozer, Etcd, zookeeperdoozer
This article is Jason Wilder's common service discovery ProjectZookeeper,Doozer,EtcdThe original address of a blog is as follows:Open-Source Service Discovery.
Service discovery is a core component of most distributed systems and service-oriented Architecture (SOA. This problem can be considered simply as: when a service exists on multiple host nodes, how can the client d
This is a creation in
Article, where the information may have evolved or changed.
As early as November 2013, in the raft paper can only be downloaded to the draft version on the Internet, I have written a blog on its brief analysis. Over the past 4 years, various raft agreements have been extensively explained, and raft has indeed been widely used. One of the most well-known applications is ETCD. Etcd the
This is a creation in
Article, where the information may have evolved or changed.
1, about ETCD
ETCD is a service discovery tool similar to zookeeper.Reference Introduction:http://dockone.io/article/667Https://coreos.com/blog/performance-of-etcd.htmlETCD Performance Comparison:
2, build the environment
Under Linux: Install the latest 3.1.1
https://github.com/coreos/
"Small and medium-sized team landing Configuration Center," The article describes how to build a configuration center based on ETCD+CONFD, finally mentioned ETCD security issues when said can use account password Authentication to achieve secure access, how to open authentication and how to design access to access it? This article will give you a detailed explanation
Certification notes
This is a creation in
Article, where the information may have evolved or changed.
Objective
This article describes how Kube-apiserver accesses the ETCD back-end storage
Related source code mainly in Kubernetes/staging/src/k8s.io/apiserver/pkg/storage
Universal interface
Interface offers a common Interface for object marshaling/unmarshaling operations and hides all the storage-related Operat Ions behind it (original note)
// kubernetes/vendor/k8s.io/ap
ETCD Simple Installation
1. Installation of Go
You can download the binary package directly on the website: https://golang.org/dl/
Https://storage.googleapis.com/golang/go1.6.3.linux-amd64.tar.gz
Set Environment variables:
Export path= $PATH:/usr/local/go/bin/
Installation of 2.ETCD
Here is the way to compile:
git clone https://github.com/coreos/etcd.git
cd Etcd
Original link Address: http://luyiisme.github.io/2017/04/22/spring-cloud-service-discovery-products/
Here on the usual use of services found in the product to carry out the comparison of characteristics, first of all to see the conclusion:
Feature
Consul
Zookeeper
Etcd
Euerka
Service Health Check
Service status, memory, hard drive, etc.
(weak) long connection, keepalive
Connect Heartbeat
Ava
This is a creation in
Article, where the information may have evolved or changed.
Source: Personal blog Address: http://www.damonyi.cc/?p=194
The project uses the ETCD database to store the container's information and the application's domain name information, and ETCD the Golang code of the operation.
1. Write container information to the specified directory
C, err: = Common. Getetcdclient () if err! = Ni
[[email protected] ~]# Vim/etc/salt/master =============> at the bottom of the configuration file, add the following contentEtcd_pillar_config:etcd.host:10.0.0.7etcd.port:4001Ext_pillar:-Etcd:etcd_pillar_config root=/salt/haproxy/[Email protected] ~]#/etc/init.d/salt-master restartStopping salt-master daemon: [OK]Starting Salt-master daemon: [OK]Set a key here:[Email protected] ~]# curl-s http://10.0.0.7:2379/v2/keys/salt/haproxy/backend_www_oldboyedu_com/web-node1-XPUT-d Value= "10.0.0.7:8080"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.