Previous topic

cassandra.query - Prepared Statements, Batch Statements, Tracing, and Row Factories

Next topic

cassandra.decoder - Data Return Formats

This Page

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.

version = None

A tuple representing the Cassandra version for this host. This will remain as None if the version is unknown.

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 None[source]

The datacenter the node is in.

rack None[source]

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.