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

gemini: warmup time configurable using cli argument #131

Merged
merged 1 commit into from
Jun 7, 2019
Merged

Conversation

dahankzter
Copy link
Contributor

Gemini now has a cli argument 'warmup' which is a duration given
in a format such as '30s', '15m' or '10h'.
This time is taken from the duration time so as to make total run
time easy to set.

For example: Given a duration of 10h and a warmup of 2h there will
be an 8 hours window where validations happen after a 2 hours run
with only inserts.

Fixes: #129

@dahankzter dahankzter requested a review from penberg June 5, 2019 08:54
@penberg
Copy link
Contributor

penberg commented Jun 5, 2019

Why not make total runtime always "warmup + duration"? To me, that seems easier to reason about.

@@ -398,6 +415,7 @@ func init() {
rootCmd.Flags().BoolVarP(&nonInteractive, "non-interactive", "", false, "Run in non-interactive mode (disable progress indicator)")
rootCmd.Flags().DurationVarP(&duration, "duration", "", 30*time.Second, "")
rootCmd.Flags().StringVarP(&outFileArg, "outfile", "", "", "Specify the name of the file where the results should go")
rootCmd.Flags().DurationVarP(&warmup, "warmup", "", 30*time.Second, "Specify the warmup perid as a duration for example 30s or 10h")
Copy link
Contributor

Choose a reason for hiding this comment

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

If warmup is included in duration, this default means we do no testing, right?

@dahankzter
Copy link
Contributor Author

dahankzter commented Jun 5, 2019 via email

@dahankzter dahankzter force-pushed the warmup branch 2 times, most recently from 8b32585 to 2ea6729 Compare June 7, 2019 07:50
@dahankzter
Copy link
Contributor Author

I have changed the total run time to be the sum of the warmup and duration arguments.

Gemini now has a cli argument 'warmup' which is a duration given
in a format such as '30s', '15m' or '10h'.
This time is added to the duration time so as to make total run
time easy to calculate.

For example: Given a duration of 10h and a warmup of 2h the total
runtime will be an 12 hours and validations will start to happen
after a 2 hours warmup run with only inserts.
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.

Add warmup phase to facilitate quicker data population
2 participants