Commit Graph
45 Commits
Author SHA1 Message Date
Honza Král 1b60d9bf84 iElasticsearch 2.0 exposes just host:port in nodes.info
Fixes #293
2015-11-02 14:26:28 +01:00
Honza Král 10c36ad530 Make search_exists consistent with other _exists APIs
Fixes #230 Thanks ncrocfer for the report!
2015-05-18 15:50:35 +02:00
Steven Moy 7a674dbb0b Fixed Issue 180 Pass connection pool and seed_connections as two
separate arguments
2015-01-08 15:43:14 -08:00
Honza Král 0fd051922b Use chain instead of concatenation.
Fixes #180
2015-01-09 00:16:34 +01:00
Honza Král d3e745ab77 Make initial sniff (sniff_on_start) ignore sniff_timeout
This is due to issue mentioned in #167 as part of discussion
2015-01-04 19:44:21 +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 265d00d5d6 Retry on some HTTP statuses and touching up the retry logic 2014-11-24 17:08:23 +01:00
Honza Král bf74f7244e make host url parsing more resilient
Reject invalid combinations of url scheme and connection_class
2014-11-14 15:55:32 +01:00
Honza Král d9296e85b9 Timeout should not trigger a retry by default 2014-11-10 23:52:26 +01:00
Honza Král 18d6b41e82 Allow body to be passed as bytes in python 3.4
Fixes #113, thanks leplatrem for the report!
2014-08-23 15:25:44 -07:00
Honza Král 8966902e40 Filter out master-only nodes when sniffing
Fixes #106, thanks jolynch!
2014-07-31 00:33:26 +02:00
Honza Král c112399631 Allow for global parameter to set per-request timeout
Fixes #100, thanks portante!
2014-07-02 15:56:57 +02:00
Bruno Renié df25a01638 Typo in sniff_hosts error message 2014-04-30 18:25:16 +02:00
Honza Král d9fd79934c Better sniff url 2014-02-14 00:29:41 +01:00
Honza Král 36ff358948 Empty string should not be returned as None 2014-02-10 18:14:39 +01:00
Honza Král bf9917b0bf Add an option to change the timeout used for sniff requests.
Fixes #45
2014-02-10 16:57:35 +01:00
Honza Král 6a7d4389cd Always raise TransportError with two params.
Fixes #44, thanks brianz!
2014-02-06 01:15:41 +01:00
Honza Král ce27faf296 Node info api has moved 2014-01-18 01:53:47 +01:00
Honza Král 05c4eefbf3 Enable deserialization of different content types coming from the server. 2013-12-14 18:15:15 +01:00
Honza Král e2ab7ea80d Adding a third return value from connection.perform_request - headers
This will be used to implement deserializing based on mimetype
2013-12-13 19:36:21 +01:00
Honza Král 95fba05e02 Fix unicode body handling.
Only body should be encoded as bytes, not anything going through the
serializer (mostly because of bulk)
2013-12-04 15:07:56 +01:00
Honza Král cf03f9831a Ass send_get_body_as parameter for situations where GET cannot have a body 2013-12-02 22:57:47 +01:00
Hari haran daad6eacca Spell mistake corrected 2013-11-18 02:17:17 +05:30
Honza Král 9e68ea91ed If we have sniffed no hosts, consider our sniff failed 2013-11-03 22:38:30 +01:00
Honza Král 04afc03cdd Thrift plugin uses different format in cluster stats 2013-10-29 17:45:49 +01:00
Honza Kral 672fdf7d5f Make ignore a global parameter 2013-09-25 23:09:50 +02:00
Honza Kral d72b15680c Switch to urllib3 for more performance 2013-08-08 18:06:36 +02:00
Honza Kral ba98e13da7 Don't serialize stings 2013-06-20 14:07:09 +02:00
Honza Kral da478caf12 clarify comment, we now mark all connections as live on success 2013-06-14 16:49:05 +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 51486bec13 Mark connection as dead even when sniffing to avoid using that host 2013-06-14 16:36:56 +02:00
Honza Kral 38661ec508 HEAD requests return no body 2013-06-08 01:26:13 +02:00
Honza Kral a7a3d660b5 It's REtries, not tries, respect that 2013-05-24 01:45:15 +02:00
Honza Kral b1e6c4d6a7 When sniffing try all connections, including the ones used to seed the client 2013-05-24 01:42:04 +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 c23aacf1f9 Sniff based on time interval, not number of requests 2013-05-23 17:42:14 +02:00
Honza Kral 787820803a don't shorted sniffing intervals on failure 2013-05-23 17:22:49 +02:00
Honza Kral a093f0258e support IPv6 addresses when parsing node info 2013-05-22 18:49:30 +02:00
Honza Kral fecd26193c Simpler easier to use callback for extracting node information 2013-05-22 18:45:55 +02:00
Honza Kral 0dae1e9df1 Only trigger retry and mark connection as dead on connection errors
Not when we receive an error code from ES.
2013-05-19 18:45:12 +02:00
Honza Kral e74d4f3e5b Transport API docs 2013-05-19 18:26:10 +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 1300e7b279 Forgotten debug print 2013-05-03 17:02:14 +02:00
Honza Kral c96c74b322 Added sniffing logic to Transport 2013-05-03 02:03:05 +02:00
Honza Kral bf0ed843d1 Added Transport class that manages connections 2013-05-03 01:08:25 +02:00