-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make grpc reporter default and add retry #1384
Make grpc reporter default and add retry #1384
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1384 +/- ##
======================================
Coverage 100% 100%
======================================
Files 164 164
Lines 7447 7453 +6
======================================
+ Hits 7447 7453 +6
Continue to review full report at Codecov.
|
43008c4
to
bfbf3bc
Compare
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
conn, _ := grpc.Dial(target, | ||
grpc.WithInsecure(), | ||
grpc.WithBalancerName(roundrobin.Name), | ||
grpc.WithUnaryInterceptor(grpc_retry.UnaryClientInterceptor(grpc_retry.WithMax(o.MaxRetry)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this retry work? Is it possible to configure it with exponential backoff, or some backoff for e.g.?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default it is using BackoffLinearWithJitter
. Which can be changed.
https://github.com/grpc-ecosystem/go-grpc-middleware/blob/master/retry/options.go#L26
Travis passed, I will try to restart it and hope :) |
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
I have restarted the build 4 times, it passed. I will merge this to see how it behaves in other repositories |
* Make grpc reporter default and add retry Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Polish Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Fix port Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Polish Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Use higher retry Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Increase retry to 100 Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Resolves #1218 #1229
Signed-off-by: Pavol Loffay ploffay@redhat.com