cassandra.pool
- Hosts and Connection Pools¶
Connection pooling and host management.
-
class
cassandra.pool.
Host
[source]¶ Represents a single Cassandra node.
-
broadcast_address
= None¶ broadcast 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 iftoken_metadata_enabled
isFalse
.
-
broadcast_rpc_address
= None¶ The broadcast rpc address of the node (native_address or rpc_address).
-
listen_address
= None¶ listen 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 iftoken_metadata_enabled
isFalse
. Usually the same asbroadcast_address
unless configured differently in cassandra.yaml.
-
is_up
= None¶ True
if the node is considered up,False
if it is considered down, andNone
if it is not known if the node is up or down.
-
release_version
= None¶ release_version as queried from the control connection system tables
-
dse_version
= None¶ dse_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
isFalse
.
-
dse_workload
= None¶ DSE workload queried from the control connection system tables. Only populated when connecting to DSE with this property available. Not queried if
token_metadata_enabled
isFalse
.
-
conviction_policy
= None¶ A
ConvictionPolicy
instance for determining when this node should be marked up or down.
-
host_id
= None¶ The unique identifier of the cassandra node
-
address
¶ The IP address of the endpoint. This is the RPC address the driver uses when connecting to the node.
-
datacenter
¶ The datacenter the node is in.
-
rack
¶ The rack the node is in.
-