<a id="clustering"></a>

# Clustering

These how-to guides cover common operations related to clustering in LXD.

## Create and configure clusters

LXD servers can join together as members of a cluster, then be configured for features such as control plane mode and cluster healing.

* [Form a cluster](https://canonical.com/lxd/docs/latest/howto/cluster_form/index.html.md)
* [Manage a cluster](https://canonical.com/lxd/docs/latest/howto/cluster_manage/index.html.md)
* [Configure networks](https://canonical.com/lxd/docs/latest/howto/cluster_config_networks/index.html.md)
* [Configure storage](https://canonical.com/lxd/docs/latest/howto/cluster_config_storage/index.html.md)

## Manage instances and cluster groups

Instances on cluster members can be accessed from and migrated to other members. Cluster groups and placement groups can be used to control how instances are distributed across cluster members.

* [Manage instances](https://canonical.com/lxd/docs/latest/howto/cluster_manage_instance/index.html.md)
* [Set up cluster groups](https://canonical.com/lxd/docs/latest/howto/cluster_groups/index.html.md)
* [Use placement groups](https://canonical.com/lxd/docs/latest/howto/cluster_placement_groups/index.html.md)

## Recover clusters or cluster volumes

Quorum loss from member failures and orphaned volume entries from interrupted migrations can both be recovered.

* [Recover a cluster](https://canonical.com/lxd/docs/latest/howto/cluster_recover/index.html.md)
* [Recover orphaned volume entries](https://canonical.com/lxd/docs/latest/howto/cluster_recover_volumes/index.html.md)

## Set up a virtual IP

A highly available virtual IP provides a stable entry point for client connections even if individual cluster members go offline.

* [Set up a highly available virtual IP](https://canonical.com/lxd/docs/latest/howto/cluster_vip/index.html.md)

## Link clusters

Clusters can be linked together for authenticated communication, enabling features such as replicators.

* [Create cluster links](https://canonical.com/lxd/docs/latest/howto/cluster_links_create/index.html.md)
* [Manage cluster links](https://canonical.com/lxd/docs/latest/howto/cluster_links_manage/index.html.md)

## Related topics

Explanation:

- [Clusters](https://canonical.com/lxd/docs/latest/explanation/clusters/index.html.md#exp-clusters)

Reference:

- [Clusters](https://canonical.com/lxd/docs/latest/reference/clusters/index.html.md#ref-clusters)
