Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(cli): add trafficgen command for load testing#7307

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 26 commits intomainfromcj/scaletest-trafficgen
May 5, 2023
Merged
Changes from1 commit
Commits
Show all changes
26 commits
Select commitHold shift + click to select a range
220edbf
feat(cli): add trafficgen command for load testing
johnstcnApr 18, 2023
737b475
skip test for now
johnstcnApr 27, 2023
9b26587
make fmt
johnstcnApr 27, 2023
c56d84e
lint
johnstcnApr 27, 2023
e548892
swap order of waiting for read and write
johnstcnApr 27, 2023
31ef743
close connection, add output formatting
johnstcnMay 2, 2023
fafca95
do what the comment says
johnstcnMay 2, 2023
65c6d88
move back under scaletest cmd
johnstcnMay 2, 2023
0bfa9f6
integrate with scaletest harness
johnstcnMay 2, 2023
da935a2
drain connection async
johnstcnMay 3, 2023
5daa526
fix cancellation
johnstcnMay 3, 2023
4f165be
handle deadline exceeded in drain
johnstcnMay 3, 2023
31fa8be
address PR comments
johnstcnMay 3, 2023
0817204
fixup! address PR comments
johnstcnMay 3, 2023
a6d7870
ACTUALLY limit traffic instead of just blasting the firehose
johnstcnMay 3, 2023
935dcbd
log config
johnstcnMay 3, 2023
e2efeff
lint
johnstcnMay 3, 2023
b105e67
chore(cli): scaletest: move logic for flushing traces into tracing pr…
johnstcnMay 4, 2023
731b4db
remove unnecessary context-based I/O
johnstcnMay 4, 2023
9dc28a2
refactor bytes per second to bytes per tick and tick interval
johnstcnMay 4, 2023
7b98b35
rename trafficgen -> workspace-traffic
johnstcnMay 4, 2023
b9c845f
make gen
johnstcnMay 4, 2023
2574a00
use strategy.timeout instead of duration
johnstcnMay 4, 2023
516ffa1
rm ctx from countReadWriter
johnstcnMay 4, 2023
655d95a
fixup
johnstcnMay 5, 2023
ca8b212
Merge remote-tracking branch 'origin/main' into cj/scaletest-trafficgen
johnstcnMay 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
swap order of waiting for read and write
  • Loading branch information
@johnstcn
johnstcn committedMay 3, 2023
commite5488922db334554a8a0f3b47c8122ee3f9de23c
6 changes: 3 additions & 3 deletionscli/trafficgen.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -96,12 +96,12 @@ func (r *RootCmd) trafficGen() *clibase.Cmd {
close(wch)
}()

if rErr := <-rch; rErr != nil {
return xerrors.Errorf("read from pty: %w", rErr)
}
if wErr := <-wch; wErr != nil {
return xerrors.Errorf("write to pty: %w", wErr)
}
if rErr := <-rch; rErr != nil {
return xerrors.Errorf("read from pty: %w", rErr)
}

_, _ = fmt.Fprintf(inv.Stdout, "Test results:\n")
_, _ = fmt.Fprintf(inv.Stdout, "Took: %.2fs\n", time.Since(start).Seconds())
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp