-
Notifications
You must be signed in to change notification settings - Fork 79
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
Fix to get only backoff metrics of discover RPC #1706
Conversation
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
[CHATOPS:HELP] ChatOps commands.
|
Codecov Report
@@ Coverage Diff @@
## master #1706 +/- ##
==========================================
- Coverage 31.60% 31.53% -0.08%
==========================================
Files 385 385
Lines 32691 32713 +22
==========================================
- Hits 10331 10315 -16
- Misses 21966 22001 +35
- Partials 394 397 +3
Continue to review full report at Codecov.
|
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
[FOSSA] The scan result will be available at https://app.fossa.com/projects/custom%2B21465%2Fvald/refs/branch/fix-discover-logic/701b3b4ba64b83c2fc5141b1a7d9fd05201e62c2 |
Profile Report
|
Co-authored-by: Yusuke Kato <kpango@vdaas.org>
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Thank you for your review! 🙏 |
* fix context propagation Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> * fix discover logic Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> * refactor Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> * add method to get backoff instance Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> * fix invalid memory access error and refactor disconnect logic Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> * add backoff name to roundrobin context Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> * Update internal/client/v1/client/discoverer/discover.go Co-authored-by: Yusuke Kato <kpango@vdaas.org> * fix build error and reuse named return variable Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com> Co-authored-by: Yusuke Kato <kpango@vdaas.org>
Description:
WHAT
I fixed code to get only backoff metrics of discover RPC.
WHY
There was a lot of backoff metrics in discover RPC before.
The current implementation included a backoff metrics that is not directly related to the RPC call.
https://github.com/vdaas/vald/blob/master/internal/client/v1/client/discoverer/discover.go#L221
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: