Consul introduction and consul Introduction

Source: Internet
Author: User

Consul introduction and consul Introduction
Consul contains many components in general. Consul is a service discovery and Configuration tool. Service Discovery: one client provides its own services, such as api services or mysql services, and the other client can discover the service providers through DNS or http. Health Check: Consul provides multiple health checks. Combined with service discovery. K/V Storage: dynamic configuration, consistency and coordination, leader election, and feature tagging. Consul's http api enables developers to use it better. Multi-Data Center: Consul creatively provides a multi-data center mechanism. This means that you do not have to create redundant virtual layers to apply multiple partitions. Consul Data Structure Consul is A distributed (P), high-availability system (). Each Consul Service provides a node and runs a Consul proxy. The Consul proxy does not mean that you must discover other services or perform corresponding data operations. The proxy only needs to be responsible for health check. The proxy connects to one or more Consul servers. The Consul server stores data, copies data, and selects leaader. Although the Consul server can run on a single instance, we recommend that you run three to five instance clusters in each data center to prevent data loss. Difference zookeeper: zookeeper provides temporary nodes for service discovery. when the service is disconnected, the temporary node is deleted. This service discovery mechanism is more sophisticated and complex than heartbeat detection, but it also has some inherent scalability problems and increases client complexity. All servers must maintain active connections with zookeeper. The service discovery mechanism of Consul is very different. Consul runs a client on every node of the cluster. These clients are part of the gossip pool (distributed health check, the gossip protocol is efficient in service downtime detection. No matter the number of services in the service cluster, Consul can perform a health check by simply returning the 200 status of the service.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.