API Stability |
Long-Term
|
The cluster() GraphQL query is used to retrieve information about a cluster.
For information on clusters, see the Cluster Management documentation page. You may also want to look at the LogScale Logical Architecture page in the Training section.
Syntax
Below is the syntax for the cluster() query field:
cluster: Cluster!
Below is an example with several values requested:
query {
cluster {
nodes {
id, name, isAvailable, lastHeartbeat,
targetSize, primarySize
},
clusterInfoAgeSeconds,
clusterManagementSettings {allowRebalanceExistingSegments}
stats{compressedByteSize, uncompressedByteSize}
}
}
{
"data": {
"cluster": {
"nodes": [
{
"name": "localhost:8080",
"primarySize": 0.1325218,
"lastHeartbeat": "2024-09-02T09:37:25.387Z",
"targetSize": 0.105984672,
"id": 1,
"isAvailable": true
}
],
"clusterInfoAgeSeconds": 0.935,
"clusterManagementSettings": {
"allowRebalanceExistingSegments": true
},
"stats": {
"compressedByteSize": 133674640,
"uncompressedByteSize": 1797456088
}
}
}
}
Notice in the example above that some value requests required sub-requests. For instance, nodes has a few values of its own that were requested, like isAvailable. These are all separated by commas, but that's not necessary after the curly-brackets (e.g., there's no comma before stats).
Given Datatypes
For the given datatype, cluster, there are several parameters. Below is a list of them along with a description of each:
Table: Cluster
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column. | |||||
Table last updated: Mar 25, 2025 | |||||
clusterInfoAgeSeconds | float | yes | Long-Term | The cluster information age in seconds. | |
clusterManagementSettings | ClusterManagementSettings | yes | Long-Term | The settings for the LogScale cluster (see See ClusterManagementSettings . | |
defaultCachePolicy | CachePolicy | yes | Preview | The default cache policy. See CachePolicy . Cache policies are a limited preview feature and subject to change. | |
digestReplicationFactor | integer | Short-Term | The digest replication factor. | ||
inBucketStorageSegmentSize | float | yes | Long-Term | The in bucket storage segment size. | |
ingestPartitions | [IngestPartition ] | yes | Long-Term | The ingest partitions. See IngestPartition . | |
missingSegmentSize | float | yes | Long-Term | The missing segment size. | |
nodes | [ClusterNode ] | yes | Long-Term | The nodes of the cluster. See ClusterNode . | |
overReplicatedSegmentSize | float | yes | Long-Term | The over replicated segment size. | |
pendingBucketStorageRiskySegmentSize | float | yes | Long-Term | The pending bucket storage risky segment size. | |
pendingBucketStorageSegmentSize | float | yes | Long-Term | The pending bucket storage segment size. | |
properlyReplicatedSegmentSize | float | yes | Long-Term | The properly replicated segment size. | |
stats | ClusterStats | yes | Short-Term | The cluster stats. See ClusterStats . | |
storageReplicationFactor | integer | Short-Term | The storage replication factor. | ||
targetMissingSegmentSize | float | yes | Long-Term | The target missing segment size. | |
targetOverReplicatedSegmentSize | float | yes | Long-Term | The target over replicated segment size. | |
targetProperlyReplicatedSegmentSize | float | yes | Long-Term | The target properly replicated segment size. | |
targetUnderReplicatedSegmentSize | float | yes | Long-Term | The target under replicated segment size. | |
underReplicatedSegmentSize | float | yes | Long-Term | The under replicated segment size. |