Skip to content

Commit 1199a2a

Browse files
author
Toni Reina
authored
Add scalability_info field to ClusterState (#84)
Add a field which indicates whether the cluster can be scaled up or down.
1 parent 1ec773c commit 1199a2a

7 files changed

Lines changed: 728 additions & 419 deletions

File tree

gen/go/qdrant/cloud/cluster/v1/cluster.pb.go

Lines changed: 537 additions & 389 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/openapiv2/qdrant/cloud/cluster/v1/cluster.swagger.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,30 @@
765765
"default": "CLUSTER_PHASE_UNSPECIFIED",
766766
"description": "Defines the operational or transitional state of the Qdrant cluster.\n\n - CLUSTER_PHASE_UNSPECIFIED: The phase is unknown or not specified. Should not normally be used.\n - CLUSTER_PHASE_CREATING: The cluster is currently being created.\n - CLUSTER_PHASE_FAILED_TO_CREATE: The cluster creation process failed.\n - CLUSTER_PHASE_UPDATING: The cluster configuration is being updated.\n - CLUSTER_PHASE_FAILED_TO_UPDATE: The cluster update process failed.\n - CLUSTER_PHASE_SCALING: The cluster is undergoing scaling (up or down).\n - CLUSTER_PHASE_UPGRADING: The Qdrant version in the cluster is being upgraded.\n - CLUSTER_PHASE_SUSPENDING: The cluster is in the process of being suspended.\n - CLUSTER_PHASE_SUSPENDED: The cluster is currently suspended (inactive).\n - CLUSTER_PHASE_FAILED_TO_SUSPEND: The cluster suspension process failed.\n - CLUSTER_PHASE_RESUMING: The cluster is resuming from a suspended state.\n - CLUSTER_PHASE_FAILED_TO_RESUME: The cluster resumption process failed.\n - CLUSTER_PHASE_HEALTHY: The cluster is operational and healthy.\n - CLUSTER_PHASE_NOT_READY: The cluster is operational but not all components are ready or healthy.\n - CLUSTER_PHASE_RECOVERY_MODE: The cluster is in recovery mode, potentially after a failure.\n - CLUSTER_PHASE_MANUAL_MAINTENANCE: The cluster is under manual maintenance.\n - CLUSTER_PHASE_FAILED_TO_SYNC: There was an error syncing the cluster in the cloud provider region.\n - CLUSTER_PHASE_NOT_FOUND: The cluster was expected but not found in the cloud provider region."
767767
},
768+
"v1ClusterScalabilityInfo": {
769+
"type": "object",
770+
"properties": {
771+
"status": {
772+
"$ref": "#/definitions/v1ClusterScalabilityStatus",
773+
"description": "The current scalability status of the cluster."
774+
},
775+
"reason": {
776+
"type": "string",
777+
"description": "Optional human-readable reason providing more context about the scalability status.\nWhen a cluster is not scalable, this field explains why."
778+
}
779+
},
780+
"title": "ClusterScalabilityInfo provides information about the"
781+
},
782+
"v1ClusterScalabilityStatus": {
783+
"type": "string",
784+
"enum": [
785+
"CLUSTER_SCALABILITY_STATUS_UNSPECIFIED",
786+
"CLUSTER_SCALABILITY_STATUS_NOT_SCALABLE",
787+
"CLUSTER_SCALABILITY_STATUS_SCALABLE"
788+
],
789+
"default": "CLUSTER_SCALABILITY_STATUS_UNSPECIFIED",
790+
"description": "ClusterScalabilityStatus defines the scalability states of a cluster.\n\n - CLUSTER_SCALABILITY_STATUS_UNSPECIFIED: Scalability status is unspecified.\n - CLUSTER_SCALABILITY_STATUS_NOT_SCALABLE: The cluster is not scalable.\n - CLUSTER_SCALABILITY_STATUS_SCALABLE: The cluster supports scaling operations."
791+
},
768792
"v1ClusterState": {
769793
"type": "object",
770794
"properties": {
@@ -797,6 +821,10 @@
797821
"resources": {
798822
"$ref": "#/definitions/v1ClusterNodeResourcesSummary",
799823
"title": "The resources used by the cluster per node.\nFor the complete cluster you have to multiply by cluster.configuration.number_of_nodes"
824+
},
825+
"scalabilityInfo": {
826+
"$ref": "#/definitions/v1ClusterScalabilityInfo",
827+
"description": "Whether the cluster can be scaled up or down."
800828
}
801829
},
802830
"description": "ClusterState represents the current state of a cluster\nAll fields in this message are read-only."

0 commit comments

Comments
 (0)