weaviate.cluster
Module for interacting with Weaviate cluster information
- class weaviate.cluster.Cluster(connection: Connection)
Bases:
object
Cluster class used for cluster information
Initialize a Cluster class instance.
- Parameters:
connection (weaviate.connect.Connection) – Connection object to an active and running Weaviate instance.
- get_nodes_status(class_name: str | None = None) list
Get the nodes status.
- Parameters:
class_name (Optional[str]) – Get the status for the given class. If not given all classes will be included.
- Returns:
List of nodes and their respective status.
- Return type:
list
- Raises:
requests.ConnectionError – If the network connection to weaviate fails.
weaviate.UnexpectedStatusCodeException – If weaviate reports a none OK status.
weaviate.EmptyResponseException – If the response is empty.