Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Simplifying Service Management with Consul

You're reading from   Simplifying Service Management with Consul Overcome connectivity and security challenges within dynamic service architectures

Arrow left icon
Product type Paperback
Published in Nov 2021
Publisher Packt
ISBN-13 9781800202627
Length 234 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Robert E. Jackson Robert E. Jackson
Author Profile Icon Robert E. Jackson
Robert E. Jackson
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Section 1: Consul Use Cases and Architecture
2. Chapter 1: Consul Overview – Operation and Use Cases FREE CHAPTER 3. Chapter 2: Architecture – How Does It Work? 4. Chapter 3: Keep It Safe, Stupid, and Secure Your Cluster! 5. Chapter 4: Data Center (Not Trade) Federation 6. Section 2: Use Cases Deep Dive
7. Chapter 5: Little Bo Peep Lost Her Service 8. Chapter 6: Connect Four or More 9. Chapter 7: Animate Me 10. Chapter 8: Where Do We Go Now? 11. Other Books You May Enjoy

Rafting consensus

We've seen how the Consul servers elect their leader utilizing the consensus protocol, but what exactly does that mean, and is that all that they do? Well, of course they do more; otherwise, this would be a very short section. The consensus protocol that Consul utilizes is based on the Raft algorithm (https://raft.github.io/raft.pdf), which is based on Paxos (https://en.wikipedia.org/wiki/Paxos_%28computer_science%29). If you get the feeling that we are quickly heading down a rabbit hole, don't worry—we aren't going to keep digging until we hit water.

A closer look at leader election

As you will soon see, a Consul server is configured with a number of other servers, which it will Raft up with. This is called the bootstrap_expect value within the configuration. That number of servers is important to remember, as it will come up again. Of course, if a Consul server is going to expect a number of servers to Raft up with, it needs to know about...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime