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

end to end latency benchmark #1935

Merged
merged 4 commits into from
Dec 22, 2020

Conversation

bhautikpip
Copy link
Contributor

Using wrk (HTTP benchmarking) end to end latency benchmark for any sample app configured with agent and collector setup with receiver. I am also planning to add support for collecting cpu and memory data using oshi instrumentation probably in next PR.

Inspired from this server integrated benchmark: https://github.com/openzipkin/zipkin/blob/master/benchmarks/src/test/java/zipkin2/server/ServerIntegratedBenchmark.java

Copy link
Contributor

@anuraaga anuraaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some nits, thanks!

import org.testcontainers.utility.MountableFile;

public class E2EAgentBenchmark {
private static String app = System.getenv("APP_IMAGE");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private static String app = System.getenv("APP_IMAGE");
private static final String APP_NAME = System.getenv("APP_IMAGE", "ghcr.io/open-telemetry/java-test-containers:smoke-springboot-jdk8-20201204.400701583");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I did not understand this suggestion. System.gentenv() accepts 1 String param right?

Copy link
Contributor

@anuraaga anuraaga Dec 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops - sorry System.getenv().getOrDefault

}

private void runBenchmark() throws Exception {
if (app == null || app.equals("")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove these lines with above suggestion

Copy link
Contributor

@anuraaga anuraaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @bhautikpip!

Comment on lines +26 to +27
exporters:
- logging
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we leave out the exporter, or is there a no-op exporter? in hopes of reducing the impact of running a local collector on the benchmark

Copy link
Contributor Author

@bhautikpip bhautikpip Dec 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find no-op exporter in here. Wouldn't leaving out exporter throws some weird exceptions on the terminal? Since we are not exporting any data out from collector.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tried running collector without any exporters :) But if it throws errors when there's no exporter defined than using logging seems reasonable.

Comment on lines +26 to +27
exporters:
- logging
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tried running collector without any exporters :) But if it throws errors when there's no exporter defined than using logging seems reasonable.

@anuraaga anuraaga merged commit a1945f2 into open-telemetry:master Dec 22, 2020
@anuraaga
Copy link
Contributor

Thanks @bhautikpip!

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.

None yet

3 participants