Commit Graph
17 Commits
Author SHA1 Message Date
Marc AbramowitzandHonza Král 0246c5bbda Remove extra spaces from exception message
Without this change, it prints with extra spaces -- e.g.:

    E           elasticsearch.exceptions.ImproperlyConfigured: No defined connections, you need to                     specify at least one host.
2015-01-27 16:51:39 +01:00
Honza Král 836c6d1933 Introducing DummyConnectionPool for when only 1 connection defined 2014-12-20 00:35:24 +01:00
Honza Král 82a32540d7 Fix race condition in ConnectionPool
Fixes #158
2014-12-20 00:34:42 +01:00
Honza Král 0f0630d8d7 Make sure we always have connections defined 2014-12-08 14:32:52 +01:00
Honza Král b8b9f67092 Logging fixes 2013-11-03 22:39:03 +01:00
Honza Kral 4477895b42 Connection Layer docs 2013-09-24 15:49:38 +02:00
Honza Kral 30bbb2a0cd Cut off the timeout increases after 5 failures by default
Contrary to popular beliefs there are Python processes in the wild that
run for weeks and increasing the timeout without bound is not useful for
those.
2013-06-14 16:59:36 +02:00
Honza Kral c686cd2be3 Have error counting contained within ConnectionPool and don't leak out to Transport
Thanks @bleskes for the inspiration!
2013-06-14 16:46:58 +02:00
Honza Kral dd19553ba7 Have sniff_hosts reuse existing connection to not waste open sockets 2013-05-24 01:29:31 +02:00
Honza Kral 1e81d09b14 Docstrings for connection_pool 2013-05-22 20:30:44 +02:00
Honza Kral 9e6714e2fa Add a RandomSelector 2013-05-22 20:30:38 +02:00
Honza Kral 5af5e36c93 In case of race condition, don't block on resurrecting 2013-05-13 17:40:22 +02:00
Honza Kral 603ec53387 TODO is DONE 2013-05-05 04:51:32 +02:00
Honza Kral 379d443cfa If a connection fails Nth time in a row put it on timeout for 2**(N-1) * default_timeout 2013-05-05 01:00:10 +02:00
Honza Kral b4ba7433bd Make sure dead connections are handled in a thread-safe manner 2013-05-05 00:36:39 +02:00
Honza Kral 8cd053799e When resurrect happens it shouldn't return the risen connection, just return it to pool 2013-05-03 03:19:49 +02:00
Honza Kral e3c76ecf01 ConnetionPool to hold all the connections
It provides load balancing and keeps track of the status of individual
connections (dead/alive) and penalizes dead connections with a timeout.
2013-05-02 17:54:26 +02:00