Skip to content
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

Merged
merged 6 commits into from
Feb 27, 2019

Conversation

pavolloffay
Copy link
Member

Resolves #1218 #1229

Signed-off-by: Pavol Loffay ploffay@redhat.com

@ghost ghost assigned pavolloffay Feb 26, 2019
@ghost ghost added the review label Feb 26, 2019
@pavolloffay pavolloffay changed the title Make grpc reporter default and add retry WIP: Make grpc reporter default and add retry Feb 26, 2019
@codecov
Copy link

codecov bot commented Feb 26, 2019

Codecov Report

Merging #1384 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1384   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files         164     164           
  Lines        7447    7453    +6     
======================================
+ Hits         7447    7453    +6
Impacted Files Coverage Δ
cmd/collector/app/builder/builder_flags.go 100% <100%> (ø) ⬆️
cmd/agent/app/reporter/grpc/flags.go 100% <100%> (ø) ⬆️
cmd/agent/app/reporter/flags.go 100% <100%> (ø) ⬆️
cmd/agent/app/reporter/grpc/collector_proxy.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 189cf70...f9a890b. Read the comment docs.

@pavolloffay pavolloffay changed the title WIP: Make grpc reporter default and add retry Make grpc reporter default and add retry Feb 26, 2019
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
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))))
Copy link
Contributor

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.?

Copy link
Member Author

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

@pavolloffay
Copy link
Member Author

Travis passed, I will try to restart it and hope :)

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@pavolloffay
Copy link
Member Author

I have restarted the build 4 times, it passed. I will merge this to see how it behaves in other repositories

@pavolloffay pavolloffay merged commit d8ab694 into jaegertracing:master Feb 27, 2019
@ghost ghost removed the review label Feb 27, 2019
annanay25 pushed a commit to annanay25/jaeger that referenced this pull request Mar 1, 2019
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants