Questions tagged [exponential-backoff]
76 questions
1
vote
1 answer
Exponential backoff in kubernetes?
I am new to kubernetes and I am having trouble tracking down an exponential backoff signal I am observing on my Jmeter load tests for response times. I have a kubernetes service that is running between 4-32 pods with horizontal pod autoscaling. Each…

vineet_j
- 11
- 2
1
vote
1 answer
Defining BackoffStrategy for SQS in AWS
I want to setup a backoff strategy for sqs in Spring application. What I did is :
@Bean
public ConnectionFactory sqsConnectionFactory() {
PredefinedBackoffStrategies.ExponentialBackoffStrategy backoffStrategy = new…

Artur Skrzydło
- 1,135
- 18
- 37
1
vote
1 answer
Attribute access on a decorated callable class
I have a callable class:
class CallMeMaybe:
__name__ = 'maybe'
def __init__(self):
self.n_calls = 0
def __call__(self):
self.n_calls += 1
raise Exception
That seems to work as advertised:
>>> f =…

wim
- 338,267
- 99
- 616
- 750
1
vote
1 answer
ExponentialBackoff job Reload function Error: Call to undefined method
I'm getting the following fatal error when running the php script below:
Waiting for job to complete
**Fatal error: Uncaught Error: Call to undefined method
Google\Cloud\BigQuery\CopyJobConfiguration::*reload()*
in…

Chris Jones
- 77
- 8
1
vote
2 answers
exponential backoff implementation in python
I have two lists 'start' and 'end'. They are of the same length (4 million each):
for i in xrange(0,len(start)):
print start[i], end[i]
3000027 3000162
3000162 3000186
3000186 3000187
3000187 3005000
3005000 3005020
3005020 3005090
3007000…

which_command
- 501
- 1
- 4
- 15
1
vote
3 answers
RX Java - Retry some code that throws exception
I'm trying to use RX Java to consume some data coming from a source that keeps sending objects.
I'm wondering how to implement a retry policy for cases in which my own code throws an exception. For example a network exception should trigger a retry…

Nick Tsitlakidis
- 2,269
- 3
- 22
- 26
1
vote
0 answers
Backoff strategy using recursive functions and promises
Almost sure I messed up my promises, but here it goes, before my head explodes
I'm trying to implement a retry mechanism for my UnprocessedItems after a batch operation using aws dynamodb. I have an array of batches that I want to write to the…

YOBB
- 125
- 1
- 10
0
votes
0 answers
Spring-retry UniformrandomBackOff vs ExponentialRandomBackoff
Spring retry provides a UnifromRandomBackOff. Is there any study on how it performs in practice compared to well-known ExponentialRandomBackoff? Is there any guideline on which to be preferred?

tuk
- 5,941
- 14
- 79
- 162
0
votes
0 answers
SQS-JMS implementation exponential backoff for failed messages
I am looking for a way to implement an exponential backoff strategy for failing messages on consumer. I am using SQS-JMS implementation and SQS implements JMS 1.1 specifications thus it is not possible to set a retry interval for a particular…

mrtyvz
- 11
- 2
0
votes
2 answers
Backoff.DecorrelatedJitterBackoffV2, 1 second start, max around 32 sec in waits, with failFast
I'm using Polly.Contrib for HttpClient retries.
var delay = Backoff.DecorrelatedJitterBackoffV2(
medianFirstRetryDelay: TimeSpan.FromSeconds(1),
retryCount: 4,
fastFirst: true);
If I want the maximum time waiting to be ~32 seconds…

yzorg
- 4,224
- 3
- 39
- 57
0
votes
3 answers
Python While Loop attempts restart to 0 if successful
So I am learning exponential backoff, my code was running too fast and causing api limit errors I created this function and it works. but I want it once it is successful, attempts should be 0 again, right now every time theres an error it justs add…
0
votes
1 answer
Where to implement Exponential Backoff algorithm in a Controller-worker system?
I am trying to create a system where I need to implement the exponential backoff algorithm. I have a controller and a worker. The worker is the one that sends the request to a particular URL and waits for the response. The controller just assigns…

Om Shreenidhi
- 31
- 7
0
votes
1 answer
Return status code when maximum retries attempted using backoff
Using asyncio and aiohttp, I have implemented an async function that triggers an API get request whenever a new record is inserted into database. If the request is successful, the status code has to be updated in database, otherwise the request…

Animeartist
- 1,047
- 1
- 10
- 21
0
votes
1 answer
How Client Side Timeout helps with Server resource exhaustion
I was going through following document published by Amazon regarding "Timeout, Retry and Jitter":
https://d1.awsstatic.com/builderslibrary/pdfs/timeouts-retries-and-backoff-with-jitter.pdf
While reading the document, I found the following text
When…

Tarun
- 3,162
- 3
- 29
- 45
0
votes
1 answer
HttpClient asyncRequest and exponential backoff
I need to implement an exponential backoff on a request that might fail. However, it's implemented as an async request. Had this been done synchronously, I'd have a better idea on where to put the delay. Roughly, I'm thinking it'd work something…

Woodsman
- 901
- 21
- 61