Cluster management
This page explains concepts associated with HCP Consul Dedicated clusters and self-managed Community and Enterprise clusters. The page also describes how the types of clusters function differently in HCP Consul deployments.
Background
You may be familiar with clusters in other contexts, but a cluster in Consul refers to the group of Consul servers that participate in a datacenter's Raft quorum. Consul servers are deployed in a cluster with either three or five voting members in a typical production scenario, although single server deployments are possible for testing and development purposes.
For more information about Consul servers and how they work, refer to the following concepts in the Consul documentation:
- Consul architecture describes the overall role Consul servers play in a deployment
- Consensus protocol describes how servers elect leaders to product quorums through the Raft protocol
- Fault tolerance describes how the number of Consul servers impact network resiliency
Management types
HashiCorp Cloud Platform (HCP) supports two types of cluster management: HCP Consul Dedicated clusters and self-managed Community and Enterprise clusters.
When HCP initially launched, its offerings were synonymous with HCP Consul Dedicated clusters. The HCP platform was the interface used to create, manage, access, and delete clusters operated by HashiCorp on your behalf. Now, the management plane service supports linking clusters that you manage yourself to HCP Consul Central, enabling you to view and access them from a central location alongside every cluster on your network.
You can deploy any combination of HCP Consul Dedicated and self-managed Community and Enterprise clusters side-by-side in an HCP organization. The decision to use one approach to cluster management over the other ultimately depends on your network's specific needs.
HCP Consul Dedicated clusters
A HCP Consul Dedicated cluster is a set of one to three Consul servers that are installed, bootstrapped, and configured by HashiCorp, and hosted in a HCP Consul Dedicated environment. You can create a HCP Consul Dedicated cluster in either an AWS or Azure environment. Because we are responsible for the initial setup process, using HCP Consul Dedicated clusters removes much of the initial operating burden associated with implementing Consul in your service network. We are also responsible for maintaining the hardware and ensuring its availability, freeing up your time and resources for other network operations.
When you use HCP Consul Dedicated clusters, we deploy and maintain the control plane but you are still responsible for operating the data plane. This includes hosting and maintaining your services in your preferred environment, as well as registering them with Consul. To enable communication between HCP Consul Dedicated control plane and services in the data plane, you must create a HashiCorp Virtual Network (HVN) and peer your HVN to AWS or Azure. To learn more about the process for each cloud environment, refer to Create and manage an HVN for AWS or Create and manage an HVN for Azure.
The following diagrams describe the architecture for connections between HCP Consul Dedicated clusters and dataplane components hosted in a user-managed environment:
When deploying a HCP Consul Dedicated cluster, the cluster tier and cluster size you select affect the cluster's functionality and the number of service instances it can support.
Self-managed Community and Enterprise clusters
A self-managed Community or Enterprise cluster is a set of Consul servers that you install, host, and maintain yourself. This type of cluster management provides more personalized control over the bootstrapping process and the configurations that secure your cluster. It also enables you to connect HCP Consul Central to networks that are not based in AWS or Azure, including on-prem and bare metal deployments.
When you use self-managed Community and Enterprise clusters, you are responsible for securing and operating your network. HCP Consul Central supports both VM and Kubernetes deployments. Kubernetes users have the option to use either Helm or the consul-k8s
CLI to manage clusters and link them to HCP. Refer to Link self-managed Community and Enterprise clusters overview for more information.