Getting Started with Consul
Consul is a tool that provides Service Discovery, Distributed Failure Detection, and a Key/Value Store with support for multiple datacenters. In this course, you'll learn how to use Consul to build scalable and reliable infrastructure.
What you'll learn
Application development is increasingly moving toward small, cohesive services instead of monolithic applications. In this course, Getting Started with Consul, you'll learn how to use Consul to build scalable and reliable infrastructure. You'll see how Service Discovery affords the ability to easily wire up services to talk to each other. With Distributed Failure Detection, your infrastructure can react in real-time to changes in the health of your services. Traffic will be routed to healthy nodes and services giving unhealthy nodes the chance to self-heal. Consul provides this and a revolutionary means of configuring applications via a Key/Value Store. No more need for static configuration files. And the best part is that Consul supports this across all of your Datacenters providing a consistent framework. When you're finished with this course, you will have a great understanding of the benefits that Consul provides and you'll be able to bring this revolutionary functionality to your organization. Software required: Vagrant.
Table of contents
- Nodes and Services 3m
- What We Will Set Up 2m
- Defining the consul-server Node 4m
- Launching the consul-server Node 2m
- Network Interfaces on consul-server 3m
- Exercise - Consul Is Easy to Install 1m
- Installing Consul 5m
- Running the Consul Dev Agent 5m
- Running Consul Locally to Access the Web UI 6m
- Interface - Web UI 4m
- Interface - HTTP API 2m
- Interface - DNS 5m
- Interface - CLI RPC 4m
- Client vs. Cluster Address Conventions 3m
- Challenge - Spin Up Web and LB nodes 1m
- Defining Web and LB Nodes 2m
- Running Web and LB Nodes 1m
- Consul Agent On Web and LB nodes 5m
- Remote Command Execution Across Cluster 3m
- Graceful Leave vs. Failure 3m
- From Nodes to Services 1m
- Registering a Web Service 3m
- Service Definitions 3m
- Health Checking the Web Service 2m
- Launching NGINX 5m
- Consul DNS for Randomized Internal Service Load Balancing 6m
- HTTP API and Failing Services 6m
- Exercise - Register Load Balancer 6m
- Maintenance Mode 5m
- Registration Methods 7m
- HAProxy 1m
- Setup Script for HAProxy 2m
- Static HAProxy Config 7m
- Handling Failed Services 4m
- HAProxy Config Template 2m
- What Is Consul Template? 2m
- Installing Consul Template 2m
- Consul Template Dry Mode 4m
- Dynamically Regenerate HAProxy Config 6m
- Rolling Updates with Maintenance Mode 2m
- Other Tools Like Consul Template 3m
- Benefits Recap and What Next 3m
- Intro 0m
- Terms - Agent, Client, and Server Mode 3m
- Gossip and Edge Triggered Updates 6m
- Understanding Serf Health Status 3m
- Node and Service Level Check Definitions 1m
- Custom Node Level Health Checks of Disk, Memory, and CPU 3m
- Self Healing Nodes 2m
- Health Checking Is the Value at the Last Transition 2m
- Health Check Recap 2m
- Don't Forget to Try This Out 3m
- Consul Docs Overview 3m
- Other Resources 3m