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
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
9c25f8cf01
Saner url creation
2013-06-08 02:06:14 +02:00
Honza Kral
68a404b4e8
Docstrings for index arg
2013-06-08 01:31:00 +02:00
Honza Kral
38661ec508
HEAD requests return no body
2013-06-08 01:26:13 +02:00
Honza Kral
d7e375c323
create/exists/delete index
2013-06-08 01:17:19 +02:00
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
0eafdab2e8
Added namespacing to the client
2013-06-01 16:59:07 +02:00
Honza Kral
79c6535657
Removing prototyped API implementations for more robust versions to come
2013-06-01 16:58:47 +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
23829366e9
escape url parts, tests forthcoming
2013-05-23 22:28: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
642b123865
Docstrings for helper functions in client.py
2013-05-22 20:43:50 +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
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
5af5e36c93
In case of race condition, don't block on resurrecting
2013-05-13 17:40:22 +02:00
Honza Kral
b429a15a1b
Fix Transport and ConnectionPool signatures in docs
2013-05-12 21:18:39 +02:00
Honza Kral
43bac35d57
Combine class's docstings with __init__
2013-05-12 21:12:44 +02:00
Honza Kral
60a6cf9389
Documentation for the code scaffolding
2013-05-12 21:11:01 +02:00
Honza Kral
a92ce05ec1
Index page for docs with testable example and license info
2013-05-12 20:37:31 +02:00
Honza Kral
3c021e0c9b
Mock implementations of some client methods
2013-05-12 20:37:16 +02:00
Honza Kral
0f613eb1d4
More extensive README
2013-05-12 19:56:07 +02:00
Honza Kral
427ca00117
Add license information to README
2013-05-06 22:12:44 +02:00
Honza Kral
cc12922fd7
Metadata tweaks
...
* setup.py classifiers
* configure sphinx to work with setuptools
* instruct travis to run sphinx doctests through setuptools
2013-05-06 16:34:33 +02:00
Honza Kral
814b0dff81
Add doctest capability to the docs, run it in Travis CI
2013-05-06 16:15:58 +02:00
Honza Kral
d5bb5976b8
Expose everything on elasticsearch package itself
2013-05-06 16:15:38 +02:00
Honza Kral
82a1f1c32c
Sphinx documentation stub created by quickstart
2013-05-06 15:40:47 +02:00
Honza Kral
603ec53387
TODO is DONE
2013-05-05 04:51:32 +02:00
Honza Kral
fe4a3a5ed0
Elasticsearch is one word
2013-05-05 04:21:03 +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
ace077d33e
ignore coverage's HTML output
2013-05-04 20:02:30 +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
1300e7b279
Forgotten debug print
2013-05-03 17:02:14 +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