Cluster management endpoints allow you to monitor and configure your Garage cluster’s status, health, and layout configuration.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/deuxfleurs-org/garage/llms.txt
Use this file to discover all available pages before exploring further.
Get Cluster Status
Returns the cluster’s current status, including node information and layout details.Response
Current version number of the cluster layout
List of nodes in the cluster
Example
Get Cluster Health
Returns the cluster’s health status with partition and node connectivity information.Response
Overall cluster status:
healthy, degraded, or unavailablehealthy: Connected to all storage nodesdegraded: Not connected to all nodes, but write quorum availableunavailable: Write quorum not available for some partitions
Number of nodes this node has connected to since daemon start
Number of nodes currently connected
Number of storage nodes registered in cluster layout
Number of storage nodes currently connected
Total number of partitions (currently always 256)
Number of partitions with write quorum available
Number of partitions with all storage nodes connected
Example
Get Cluster Statistics
Returns global cluster statistics including storage usage and capacity.Response
Plain-text formatted statistics. Do not parse this field as its format is not stable.
Example
Get Cluster Layout
Returns the cluster’s current layout configuration, including staged changes.Response
Current version number of the cluster layout
List of nodes with roles in the current layout
List of pending role changes that will be applied on next layout update
Size of one partition in bytes
Layout computation parameters
Example
Update Cluster Layout
Send modifications to the cluster layout. Changes are staged and must be applied withApplyClusterLayout.
Request Body
ID of the node to configure
Availability zone for the node
Storage capacity in bytes. Set to
null to configure as gateway node.Example: 100000000000 for 100GB (SI units: 1kB = 1000 bytes)Tags for the node
Set to
true to remove the node from the layoutExample: Add Storage Node
Example: Configure Gateway Node
Apply Cluster Layout
Applies staged layout changes to the cluster.Request Body
Expected new version number (safety measure to prevent concurrent modifications)
Response
The newly applied cluster layout
Plain-text information about the layout computation (do not parse)
Example
Revert Cluster Layout
Clears all staged layout changes without applying them.Example
Connect Cluster Nodes
Instructs this node to connect to other Garage nodes.Request Body
Array of node addresses in format<node_id>@<address>:<port>
List of node connection strings
Response
Connection results for each node