Can support wait for a moment before retries
See original GitHub issueif attempt == self.max_retries:
raise
else if self.retry_wait:
time.sleep(self.retry_wait)
I use AutoSSH tunnel to connect to es, the network is sometimes unstable, will disconnect for a few seconds, and then automatically restore.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
What is the optimal retry wait time? - MSDN - Microsoft
In this case, we highly recommend that your client code back off and wait before retrying. This will give the system some time...
Read more >Be a good client: retries. When a request to a server ... - Medium
In this case, a maximum threshold for the waiting time between retries before informing the end-user of the failure.
Read more >Retries and Timeouts | Linkerd
Once requests are retried a certain number of times, it becomes important to limit the total amount of time a client waits before...
Read more >Timeouts, retries and backoff with jitter - AWS
The preferred solution that we use in Amazon is a backoff. Instead of retrying immediately and aggressively, the client waits some amount of...
Read more >Retry-After - HTTP - MDN Web Docs
The Retry-After response HTTP header indicates how long the user agent should wait before making a follow-up request.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A little improve over the solution of @vc1 could be instead of an linear retry, start with a lower value and increase it in every iteration (poly/exp).
Closed via https://github.com/elastic/elasticsearch-py/pull/794