opened
antonbashir
username_0
… (for changing backoff values or algorithm)
Added setBackOffPolicyProvider for setting provider of backoff policy…
issue
created
antonbashir
username_0
Of course!

Imagine that you stop your GRPC Server but do not stop GRPC client.
Then GRPC client starts backoff process and exponentially increments interval.
After start of GRPC server next request from client will be waiting for successful reconnect after backoff interval. 
Because of it in our project we have situation when first request processing during (5-10 seconds).
So, i want to set some minimal value (one second or less) to max backoff interval parameter.
May be i mistake in this reason of long first request processing, but anyway i think that so parameters like backoff policy must be configurable through builder.
comment
created
ejona86
username_1
Then GRPC client starts backoff process and exponentially increments interval.
After start of GRPC server next request from client will be waiting for successful reconnect after backoff interval.

This is essential behavior. Without the backoff, clients will reconnect rapidly to the server and overload it. The backoff _protects_ the server.

So I don't think reducing the backoff time is a good approach. Why does the server restart? And what type of server is it such that there is only one instance?
comment
created
mizantrop2397
username_2
I saw this comment and thought that not only me want to make this parameter configurable. 
Also, i want to try some other policy, for example, periodic backoff policy with constant interval.

As you offer in other issue, solution for my case could be "connection attempt exponential timeout", but i think that this solution costs more developing time than configuring of backoff policy.
https://github.com/grpc/grpc-java/issues/1943

As you could be seen this is my first PR in this project, so if you see some reasons to refuse this feature, please tell me. I want to understand, what negative aspects of configuring backoff policy.
comment
created
antonbashir
username_0
I saw this comment and thought that not only me want to make this parameter configurable. 
Also, i want to try some other policy, for example, periodic backoff policy with constant interval.

As you offer in other issue, solution for my case could be "connection attempt exponential timeout", but i think that this solution costs more developing time than configuring of backoff policy.
https://github.com/grpc/grpc-java/issues/1943

As you could be seen this is my first PR in this project, so if you see some reasons to refuse this feature, please tell me. I want to understand, what negative aspects of configuring backoff policy.
comment
created
ejona86
username_1
That's actually something different. The important part of that is the _timeout_. It causes _errors_ to occur sooner. If that would fix your issue, then this PR would _not_; they fix separate issues.
comment
created
ejona86
username_1
@username_0, closing the PR is fine, but did you want to open an issue so that we could discuss ways to resolve your use-case?
comment