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:

graphql
cluster: Cluster!

Below is an example with several values requested:

Show:
graphql
query {
	cluster {
	  nodes {
       id, name, isAvailable, lastHeartbeat,
       targetSize, primarySize
    },
    clusterInfoAgeSeconds,
    clusterManagementSettings {allowRebalanceExistingSegments}
    stats{compressedByteSize, uncompressedByteSize}
	}
}
Example Responses
Show:
json
{
  "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

ParameterTypeRequiredDefaultStabilityDescription
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
clusterInfoAgeSecondsfloatyes Long-TermThe cluster information age in seconds.
clusterManagementSettingsClusterManagementSettingsyes Long-TermThe settings for the LogScale cluster (see See ClusterManagementSettings.
defaultCachePolicyCachePolicyyes PreviewThe default cache policy. See CachePolicy. Cache policies are a limited preview feature and subject to change.
digestReplicationFactorinteger  Short-TermThe digest replication factor.
inBucketStorageSegmentSizefloatyes Long-TermThe in bucket storage segment size.
ingestPartitions[IngestPartition]yes Long-TermThe ingest partitions. See IngestPartition.
missingSegmentSizefloatyes Long-TermThe missing segment size.
nodes[ClusterNode]yes Long-TermThe nodes of the cluster. See ClusterNode.
overReplicatedSegmentSizefloatyes Long-TermThe over replicated segment size.
pendingBucketStorageRiskySegmentSizefloatyes Long-TermThe pending bucket storage risky segment size.
pendingBucketStorageSegmentSizefloatyes Long-TermThe pending bucket storage segment size.
properlyReplicatedSegmentSizefloatyes Long-TermThe properly replicated segment size.
statsClusterStatsyes Short-TermThe cluster stats. See ClusterStats.
storageReplicationFactorinteger  Short-TermThe storage replication factor.
targetMissingSegmentSizefloatyes Long-TermThe target missing segment size.
targetOverReplicatedSegmentSizefloatyes Long-TermThe target over replicated segment size.
targetProperlyReplicatedSegmentSizefloatyes Long-TermThe target properly replicated segment size.
targetUnderReplicatedSegmentSizefloatyes Long-TermThe target under replicated segment size.
underReplicatedSegmentSizefloatyes Long-TermThe under replicated segment size.