This is a creation in
Article, where the information may have evolved or changed.
"Editor's note" This article compares three service discovery tools for zookeeper, ETCD, and Consul, and explores the best solution for service discovery, for informational purposes only.
If you use a predefined port, the more services you have, the greater the likelihood of a conflict, after all, it is impossible to have two
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
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 connec
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
interface provides RPC interface via GRPC and discards the HTTP interface of V2. The advantage is that the long connection efficiency increases obviously, the disadvantage is that the use is not as convenient as before, especially to the inconvenient maintenance long connection scene.
Discarded the original directory structure, became pure kv, the user can be simulated by the prefix matching mode directory.
Value is no longer saved in memory, and the same memory can support storing more k
1. What is ETCD service?
ETCD is a health/value pair storage System with HTTP protocol, which is a distributed and functional hierarchy configuration system, which can be used to build service discovery system. Distributed, consistent kv storage system for shared configuration and service discovery. It is easy to deploy, install, and use, providing reliable data persistence features. It is secure and the do
node1:192.168.133.140node2:192.168.133.141node3:192.168.133.1421. Install the NTP service:Yum Install NTPStart the NTP serviceSystenctl start NTPInstalling ETCDYum Install-y etcd-3.2.5-1.el7.x86_64Configure ETCDEditing a configuration fileVim/etc/etcd/etcd.confThe contents of the amendment are as follows:#[member]etcd_name=master1 #本机的主机名ETCD_DATA_DIR = "/var/lib/etcd
ETCD version:3.0.15Git sha:fc00305Go version:go1.6.3Go OS/ARCH:LINUX/AMD64USAGE:ETCD [Flags]Start an ETCD serverETCD--versionShow the version of ETCDetcd-h | --helpShow the help information about ETCDETCD--config-filePath to the server configuration fileMember Flags:--name ' Default 'Human-readable name for this member.--data-dir ' ${name}.etcd 'Path to the data
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
This is a creation in
Article, where the information may have evolved or changed.
Using ETCD and Haproxy to do Docker service discovery
tags (space delimited): Etcd Haproxy Docker Service Discovery Architecture Discovery Docker-gen Golang Service
The author is Jwilder, the original text of this article is Docker Service Discovery Using Etcd and Haproxy
have been developed, such as ZooKeeper, ETCD, Consul and so on.These frameworks generally provide such services as:Service RegistrationHost name, port number, version number, or some environment information.Service discoveryYou can get the client to the server address.A distributed general-purpose K/V Storage SystemBased on Paxos algorithm or Raft algorithmLeader election (Leader election)Some other exampl
This is a creation in
Article, where the information may have evolved or changed.
"Editor's note" The ETCD team recently released a beta version of ZETCD, a proxy tool that allows ETCD to be compatible with zookeeper protocols, allowing users to disassociate existing applications from the Zookeeper service.
Distribute
This is a creation in
Article, where the information may have evolved or changed.
The ETCD team has just been excited to announce the newest member--etcd 3.2.0 in the Etcd 3.x series. New features and features such as agent improvements, enhanced backend concurrency, distributed coordination services, lighter go clients, and JWT authentication are emerging in thi
KV storage such as Consul/zookeeper?
Specific implementation
Interface interface currently has two specific implementation classes, respectively, corresponding to ETCD v2 and ETCD v3 two different ETCD API versions
// kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd/etcd
[TOC]Cluster configuration for ETCD Direct reference to ETCD cluster deploymentThis document only adds the process of SSL encryption verification based on it.For the cluster to use SSL, you first need to generate an SSL certificate for the cluster.We use the CFSSL series tools to generate related certificates.Cfssl Related Tools Downloadcurl -s -L -o /opt/kubernetes/bin/cfssl https://pkg.cfssl.org/R1.2/cfss
Preface
The previous article talked about some common cluster operations in ETCD, which mainly covered some common problems that might be encountered, after all, the God (Operational dimension) perspective always sees the problem and then recovers.
For a cluster, it is common to process crashes, physical machine downtime, data migration backups, capacity reduction, and so on. The rest of the operation is nothing more than some common problem-handling
1. Single ETCD node (for test development)Before I have been developing a test that has been used for a ETCD node, then the Start command has been directly hitting a ETCD (I have added the bin directory of the ETCD installation directory to the PATH environment variable), and then the boot information shows
Recently tried a little etcd to do the registration discovery of the service
"Etcd Service"
Download the binary file from Etcd's official website and allocate three machines to do the cluster
10.0.1.98 etcd-001
10.0.1.205 etcd-002
10.0.1.182 etcd-003
Then start the service
Here the ETCD cluster is multiplexed with the 3 nodes that we tested, 3 node to install and start, note to modify the configuration file1, TLS certification file distribution: ETCD cluster authentication, in addition to the native, distributed to other node nodesSCP ca.pem KUBERNETES-KEY.PEM Kubernetes.pem [email protected]10.10. 90.106:/etc/kubernetes/SSLSCP ca.pem KUBERNETES-KEY.PEM Kubernetes.pem [email
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.