feat: improved results directory structure for load generation #24869
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #24831
write
andquery
load generation runners will now automatically setup files in a results directory, using a pre-defined structure. Users of the load tool can specify aresults_dir
to save these results, or the tool will pick aresults
folder in the current directory, by default.Results will be saved in files using the following path convention:
<results_dir>
: the specifiedresults_dir
, or theresults/
folder in the current directory<s>
: spec name<c>
: configuration name, specified by user with theconfig-name
arg, or by default, will use the revision SHA of the running server<write|query|system>
: which kind of results file<time>
: a timestamp in the formYYYY-MM-DD-HH-MM
The resulting file structure will look like this:
The setup code was unified for both
write
andquery
commands, in preparation for the creation of a system stats file, as well as for the capability to run bothquery
andwrite
at the same time, however, those tasks remain for future PRs.Other Changes
/ping
API support to theinfluxdb3_client::Client