-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore: add -skip-time-min flag to skip initial N minutes during replay traffic #5288
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
Conversation
tools/replay/main.go
Outdated
| var fClientBuffer = flag.Int("buffer", 100, "How many records to buffer per client") | ||
| var fPace = flag.Bool("pace", true, "whether to pace the traffic according to the original timings.false - to pace as fast as possible") | ||
| var fSkip = flag.Uint("skip", 0, "skip N records") | ||
| var fSkipTimeMin = flag.Int("skip-time-min", 0, "skip records in the first N minutes of the recording") |
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.
i think minutes is too coarse. lets do this in seconds.
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.
In my experience, minutes is the best choice.
I decided to add this option when I had to wait for 120 minutes.
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.
Maybe it's better to add two options, in seconds and in minutes.
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.
You can always convert minutes to seconds, not the other way round. Two flags can be confusing
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.
fixed
Introduces CLI flag -skip-time-min (int) to skip the first N minutes of recorded traffic.