Commit Graph
31 Commits
Author SHA1 Message Date
Honza Král fe53ab588e Fix sniffing for 5.0
Fixes #477
2016-12-06 12:17:57 +01:00
Honza Král fb8eb4e385 Respect publish host when present on a node.
Closes #251. Thanks danpilch and bowensong for the patch!
2015-12-01 03:40:40 +01:00
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 6f7a56964c Removing ThriftConnection and MemcachedConnection 2015-10-07 17:47:05 +02: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 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 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
Honza Král 756a6aee25 unicode_literals ftw 2014-05-29 01:16:17 +02:00
Honza Král a54d7035bb Compatibility with python 3.2
Now all the python 2/3 compatibility code is in elasticsearch.compat
Fixes #52
2014-02-21 16:59:13 +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
Honza Král 04afc03cdd Thrift plugin uses different format in cluster stats 2013-10-29 17:45:49 +01:00
Honza Kral fe7cc106f6 Use unittest2 even for python 2.6 2013-08-28 19:11:28 +02:00
Honza Kral d180e62a99 Revert "Support python 2.6"
This reverts commit 158f6e6183.
2013-08-28 19:02:42 +02:00
Honza Kral 158f6e6183 Support python 2.6 2013-08-27 04:07:52 +02:00
Honza Kral 39bcd81957 Minor fixes 2013-08-25 17:58:30 +02:00
Honza Kral ba98e13da7 Don't serialize stings 2013-06-20 14:07:09 +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 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 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 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 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