cassandra.pool - Hosts and Connection Pools

Connection pooling and host management.

class cassandra.pool.Host[source]

Represents a single Cassandra node.

is_up = None

True if the node is considered up, False if it is considered down, and None if it is not known if the node is up or down.

address = None

The IP address or hostname of the node.

conviction_policy = None

A ConvictionPolicy instance for determining when this node should be marked up or down.

datacenter

The datacenter the node is in.

rack

The rack the node is in.

exception cassandra.pool.NoConnectionsAvailable[source]

All existing connections to a given host are busy, or there are no open connections.