A cluster is a logical container that organizes compute resources under a single definition with shared networking. Creating a cluster provisions the container and optionally deploys instances based on the specified plan and pool count.
Clusters support three types:
This guide explains how to create a cluster using a plan directly using the Vultr API. To create a cluster using a reusable instance template, see How to Create a Cluster Using an Instance Template.
Send a GET request to the Get Cluster Availability endpoint to check available cluster types in your target region. Replace REGION with the region identifier (e.g., ewr, ord).
The response contains the available cluster types and plans for the specified region.
Send a POST request to the Create Cluster endpoint to create a new cluster. Replace REGION with the region identifier, PLAN with the compute plan, and CLUSTER-LABEL with a descriptive name. Set type to vps, bare-metal, or gpu-fabric. The desired_pool_count must be equal to or greater than min_pool_count.
A successful request returns an HTTP 200 OK response with the cluster details. Note the cluster id for future operations.
Send a GET request to the Get Cluster endpoint to retrieve the cluster details. Replace {cluster-id} with the id from the previous step.
Verify that the cluster status progresses from Pending to Active once all instances are provisioned.
0 Comments
Be the first to comment and share your perspective with the community.