cassandra.pool - Hosts and Connection Pools
Connection pooling and host management.
class Host
Represents a single Cassandra node.
Attributes
broadcast_address
= Nonebroadcast address configured for the node, if available (‘peer’ in system.peers table).
This is not present in the system.local table for older versions of Cassandra. It is also not queried if
token_metadata_enabled is False.
listen_address
= Nonelisten address configured for the node, if available. This is only available in the system.local table for newer
versions of Cassandra. It is also not queried if token_metadata_enabled is False.
Usually the same as broadcast_address unless configured differently in cassandra.yaml.
is_up
= NoneTrue 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.
release_version
= Nonerelease_version as queried from the control connection system tables
dse_version
= Nonedse_version as queried from the control connection system tables. Only populated when connecting to
DSE with this property available. Not queried if token_metadata_enabled is False.
dse_workload
= NoneDSE workload queried from the control connection system tables. Only populated when connecting to
DSE with this property available. Not queried if token_metadata_enabled is False.
address
= NoneThe IP address of the node. This is the RPC address the driver uses when connecting to the node
conviction_policy
= NoneA 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 NoConnectionsAvailable
All existing connections to a given host are busy, or there are no open connections.