-
Notifications
You must be signed in to change notification settings - Fork 344
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
Implemented a second service for the collector #339
Implemented a second service for the collector #339
Conversation
E2E tests are passing:
|
Codecov Report
@@ Coverage Diff @@
## master #339 +/- ##
=========================================
+ Coverage 89.75% 89.8% +0.04%
=========================================
Files 64 64
Lines 2997 3011 +14
=========================================
+ Hits 2690 2704 +14
Misses 207 207
Partials 100 100
Continue to review full report at Codecov.
|
|
||
// GetNameForHeadlessCollectorService returns the headless service name for the collector in this Jaeger instance | ||
func GetNameForHeadlessCollectorService(jaeger *v1.Jaeger) string { | ||
return fmt.Sprintf("%s-collector-headless", jaeger.Name) |
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.
nit: This could take the output from GetNameForCollectorService
and append -headless
. Only minor though feel free to ignore.
I manually tested the load balancing for the communication between the agent => collector and it's still working after this PR. https://gist.github.com/jpkrohling/0de49a9c23c24f4db07427aee7206a0e When setting the Here's the YAML definition for the test application: apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
spec:
selector:
matchLabels:
app: myapp
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: jaegertracing/vertx-create-span:operator-e2e-tests
env:
- name: JAEGER_ENDPOINT
value: "http://simple-prod-collector:14268/api/traces" |
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
bc3d55f
to
cec8456
Compare
@adinunzio84, would you take a look at this PR and see if it solves the problem you reported? |
@jpkrohling Could you scale up the test app, and see whether the use of |
It does. Doesn't look as even as when using the agent, but it does balance. Note that the output here is skewed, as it still has data from the first run:
|
@jpkrohling ok great! |
I'm merging this, but let me know if there's anything missing, @adinunzio84. |
Fixes #264
Signed-off-by: Juraci Paixão Kröhling [email protected]