name: Chapter-3 class: title
name: Introduction-to-Consul
Consul 기본 아키텍처
————————-
.center[
]
??? Consul is a complex system that has many different moving parts. To help users and developers of Consul form a mental model of how it works, this page documents the system architecture.
In the next sections, we will dive deeper into how Consul works.
name: Introduction-to-Consul-Overview
class: img-right
Consul 기본 아키텍처 - 살펴보기
————————-
.center[
]
??? Within each datacenter, we have a mixture of Consul clients and servers. Typically there are three or five Consul servers. This strikes a balance between availability in the case of failure and performance, as consensus gets progressively slower as more machines are added. However, most operations will not hit the limit in the number of clients, they can easily scale into the thousands or tens of thousands.
name: Introduction-to-Consul-Gossip
class: img-right
Consul 기본 아키텍처 - Gossip
————————-
.center[
]
??? Consul uses the gossip protocol for agent-to-agent communication. This provides much greater efficiency with overall Consul communications. Agents can communicate with one another and either obtain information about its peers, or disseminate information to its neighbors.
name: Introduction-to-Consul-Consensus
class: img-right
Consul 기본 아키텍처 - Consensus
————————-
.center[
]
??? The servers in each datacenter are all part of a single Raft peer set. This means that they work together to elect a single leader, a selected server which has extra duties. The leader is responsible for processing all queries and transactions. Transactions must also be replicated to all peers as part of the consensus protocol. Because of this requirement, when a non-leader server receives an RPC request, it forwards it to the cluster leader.
name: Introduction-to-Consul-Multi-DC
class: img-right
Consul 기본 아키텍처 - Multi-DC
————————-
.center[
]
??? The server agents also operate as part of a WAN gossip pool. This pool is different from the LAN pool as it is optimized for the higher latency of the internet and is expected to contain only other Consul server agents. The purpose of this pool is to allow datacenters to discover each other in a low-touch manner. When a server receives a request for a different datacenter, it forwards it to a random server in the correct datacenter. That server may then forward to the local leader, so cross-datacenter requests are relatively fast and reliable.
name: Introduction-to-Consul-Protocols Consul 기본 아키텍처 - Protocols ————————- Consul의 대표적인 두가지 프로토콜에 대해 이해하는 시간이였습니다.:
??? We’ve touched briefly on the two main protocols Consul uses. If you’d like to dive a little deeper into both of these, you can find more information at the end of this slide deck.