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

test(benchmark): support log stream appender #462

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

ijsong
Copy link
Member

@ijsong ijsong commented Jun 2, 2023

What this PR does

This PR adds the --pipeline-size flag to the benchmark tool. It makes the benchmark test client use LogStreamAppender, which allows pipelined append requests.

  • No pipelined requests if the flag is zero (default value).
  • Use pipelined requests by using LogStreamAppender if the flag is greater than zero.

The benchmark tool cannot support per-target level pipelined yet. Thus, if the --pipeline-size is greater than zero, all the log stream-specific targets will use LogStreamAppender.

@ijsong
Copy link
Member Author

ijsong commented Jun 2, 2023

The current lint failure will be fixed soon:

run golangci-lint
  Running [/home/runner/golangci-lint-1.53.0-linux-amd64/golangci-lint run --out-format=github-actions] in [] ...
  level=error msg="[linter] depguard: create analyzer: couldn't expand $gostd: could not read GOROOT directory: open src: no such file or directory\nmust have an Allow and/or Deny package list"

@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.03 🎉

Comparison is base (f8a7676) 62.66% compared to head (53b2258) 62.69%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@                   Coverage Diff                   @@
##           log_stream_appender     #462      +/-   ##
=======================================================
+ Coverage                62.66%   62.69%   +0.03%     
=======================================================
  Files                      133      133              
  Lines                    18336    18336              
=======================================================
+ Hits                     11490    11496       +6     
+ Misses                    6271     6267       -4     
+ Partials                   575      573       -2     

see 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ijsong
Copy link
Member Author

ijsong commented Jun 7, 2023

@ijsong started a stack merge that includes this pull request via Graphite.

Base automatically changed from log_stream_appender to main June 7, 2023 17:01
This PR adds the `--pipeline-size` flag to the benchmark tool. It makes the benchmark test client
use LogStreamAppender, which allows pipelined append requests.

- No pipelined requests if the flag is zero (default value).
- Use pipelined requests by using LogStreamAppender if the flag is greater than zero.

The benchmark tool cannot support per-target level pipelined yet. Thus, if the `--pipeline-size` is
greater than zero, all the log stream-specific targets will use LogStreamAppender.
@ijsong
Copy link
Member Author

ijsong commented Jun 7, 2023

Graphite rebased this pull request as part of a merge.

@ijsong ijsong merged commit b1b075c into main Jun 7, 2023
@ijsong ijsong deleted the benchmark_log_stream_appender branch June 7, 2023 17:17
@ijsong
Copy link
Member Author

ijsong commented Jun 7, 2023

@ijsong merged this pull request with Graphite.

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