From a1f39a6c90d18f3fc23b3a0c828815b464ed31d2 Mon Sep 17 00:00:00 2001 From: Tyler Hobbs Date: Fri, 31 Jan 2014 11:43:02 -0600 Subject: [PATCH] Note that core/max conn limits are per-Session --- cassandra/cluster.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/cassandra/cluster.py b/cassandra/cluster.py index 5cc1c0ab..fed69f5a 100644 --- a/cassandra/cluster.py +++ b/cassandra/cluster.py @@ -383,18 +383,18 @@ class Cluster(object): def get_core_connections_per_host(self, host_distance): """ - Gets the minimum number of connections that will be opened for each - host with :class:`~.HostDistance` equal to `host_distance`. The default - is 2 for :attr:`~HostDistance.LOCAL` and 1 for + Gets the minimum number of connections per Session that will be opened + for each host with :class:`~.HostDistance` equal to `host_distance`. + The default is 2 for :attr:`~HostDistance.LOCAL` and 1 for :attr:`~HostDistance.REMOTE`. """ return self._core_connections_per_host[host_distance] def set_core_connections_per_host(self, host_distance, core_connections): """ - Sets the minimum number of connections that will be opened for each - host with :class:`~.HostDistance` equal to `host_distance`. The default - is 2 for :attr:`~HostDistance.LOCAL` and 1 for + Sets the minimum number of connections per Session that will be opened + for each host with :class:`~.HostDistance` equal to `host_distance`. + The default is 2 for :attr:`~HostDistance.LOCAL` and 1 for :attr:`~HostDistance.REMOTE`. """ old = self._core_connections_per_host[host_distance] @@ -404,18 +404,18 @@ class Cluster(object): def get_max_connections_per_host(self, host_distance): """ - Gets the maximum number of connections that will be opened for each - host with :class:`~.HostDistance` equal to `host_distance`. The default - is 8 for :attr:`~HostDistance.LOCAL` and 2 for + Gets the maximum number of connections per Session that will be opened + for each host with :class:`~.HostDistance` equal to `host_distance`. + The default is 8 for :attr:`~HostDistance.LOCAL` and 2 for :attr:`~HostDistance.REMOTE`. """ return self._max_connections_per_host[host_distance] def set_max_connections_per_host(self, host_distance, max_connections): """ - Gets the maximum number of connections that will be opened for each - host with :class:`~.HostDistance` equal to `host_distance`. The default - is 2 for :attr:`~HostDistance.LOCAL` and 1 for + Gets the maximum number of connections per Session that will be opened + for each host with :class:`~.HostDistance` equal to `host_distance`. + The default is 2 for :attr:`~HostDistance.LOCAL` and 1 for :attr:`~HostDistance.REMOTE`. """ self._max_connections_per_host[host_distance] = max_connections