Adaptive Load command line client#616
Conversation
update from master
merge from upstream
merge from upstream
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
…double Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
…variable_setter Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
merge from upstream
…ent.Output turns out not to include the status Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
…plugin names, log thresholds only once per session Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
|
/retest |
|
🔨 rebuilding |
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
…load session spec Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
|
@wjuan-AFK Please review and assign to me when done. Also note that we believe the CI failure to be unrelated to these changes. |
@dubious90 Created #620 to address the ci trouble with respect to docker. |
| * writes the output proto to a file. File paths are taken from class members initialized in the | ||
| * constructor. | ||
| * | ||
| * @return Exit code for this process. |
There was a problem hiding this comment.
Should we state that 0 is good or is that implicit?
There was a problem hiding this comment.
This is a standard in linux, so we can rely on that understanding. https://linuxize.com/post/bash-exit/#exit-status
| } | ||
| const Envoy::Api::IoCallSizeResult write_result = file->write(contents); | ||
| if (!write_result.ok()) { | ||
| throw Nighthawk::NighthawkException(absl::StrCat("Unable to write output file \"", path, |
There was a problem hiding this comment.
nit: write to output file.
| output_filename_ = output_filename.getValue(); | ||
| } | ||
|
|
||
| uint32_t AdaptiveLoadClientMain::Run() { |
There was a problem hiding this comment.
can we file a future bug to enable some dependency injection of the channel here? in the future, people might want to enable other ways of connecting to the nighthawk service besides the two provided here. but we don't need to prematurely allow for that case until we have a specific usecase.
| * writes the output proto to a file. File paths are taken from class members initialized in the | ||
| * constructor. | ||
| * | ||
| * @return Exit code for this process. |
There was a problem hiding this comment.
This is a standard in linux, so we can rely on that understanding. https://linuxize.com/post/bash-exit/#exit-status
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
|
/retest |
|
🔨 rebuilding |
An adaptive load command line executable that drives a Nighthawk Service with a series of benchmarks, varying the RPS or another input variable dynamically.
bazel build -c opt :nighthawkbazel-bin/nighthawk_adaptive_load_client--spec-filepathnameAdaptiveLoadSessionSpectextproto defining the sessiontest/adaptive_load/test_data/valid_session_spec.textproto--output-filepathnameAdaptiveLoadSessionOutputtextproto session output--nighthawk-service-addresshost:portlocalhost:8443--use-tlsNote that to run an adaptive load session, you must also have a Nighthawk Service running, e.g.:
bazel-bin/nighthawk_service &(to run at localhost:8443)Part of #416.