Commit Graph
28 Commits
Author SHA1 Message Date
Honza Kral 37f2335478 Simple test case for unit testing client commands 2013-06-07 23:57:59 +02:00
Honza Kral ca99215e46 Make test_client into a package 2013-06-07 23:18:58 +02:00
Honza Kral c064bf7764 wait_for_status when waiting for test server to boot up 2013-06-07 18:25:57 +02:00
Honza Kral 991eb881df Added real test server 2013-05-27 23:02:38 +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 476b1ca132 expose timeout on Connection class 2013-05-24 01:25:19 +02:00
Honza Kral a70db43abd Enable url_prefix for Connection, do not include it in trace calls 2013-05-23 22:15:55 +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 b4ba7433bd Make sure dead connections are handled in a thread-safe manner 2013-05-05 00:36:39 +02:00
Honza Kral 5c0332721a ElasticSearch client class 2013-05-04 20:01:15 +02:00
Honza Kral 4c74c6911c Serialization error tests 2013-05-03 17:56:27 +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 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
Honza Kral 6aad2599d7 Adding JSONSerializer 2013-05-02 23:42:11 +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
Honza Kral b22012b1a7 Connection's repr test 2013-05-02 15:41:22 +02:00
Honza Kral a7e3b95e01 Make tests pass on sloow machines 2013-05-02 15:36:53 +02:00
Honza Kral 0fd398a0d5 Error logging 2013-05-02 00:41:27 +02:00
Honza Kral ebd6370e59 Add logging on successful request 2013-05-02 00:34:46 +02:00
Honza Kral 71daa6ef14 RequestsHttpConnection class handling the actual http communication 2013-05-01 21:55:44 +02:00
Honza Kral af1891c7ce removing dummy tests 2013-05-01 16:51:22 +02:00
Honza Kral 20fbba1230 Initial commit, simple python scaffold 2013-05-01 16:39:30 +02:00