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() list
Get the nodes status.
- 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.