Skip to content

test(benchmark): support log stream appender#462

Merged
ijsong merged 1 commit intomainfrom
benchmark_log_stream_appender
Jun 7, 2023
Merged

test(benchmark): support log stream appender#462
ijsong merged 1 commit intomainfrom
benchmark_log_stream_appender

Conversation

@ijsong
Copy link
Copy Markdown
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
Copy Markdown
Member Author

ijsong commented Jun 2, 2023

@ijsong
Copy link
Copy Markdown
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"

@ijsong ijsong force-pushed the log_stream_appender branch from 05f590e to ea02918 Compare June 4, 2023 07:37
@ijsong ijsong force-pushed the benchmark_log_stream_appender branch from 763e20d to e6b68f9 Compare June 4, 2023 07:37
@codecov-commenter
Copy link
Copy Markdown

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 ijsong force-pushed the log_stream_appender branch from ea02918 to f8a7676 Compare June 4, 2023 08:05
@ijsong ijsong force-pushed the benchmark_log_stream_appender branch from e6b68f9 to 53b2258 Compare June 4, 2023 08:05
@ijsong
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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