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

Adaptive load helper mocks #529

Merged
merged 53 commits into from
Sep 14, 2020
Merged
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
8ea442d
Merge pull request #5 from envoyproxy/master
eric846 Jun 1, 2020
5ac755a
Merge pull request #6 from envoyproxy/master
eric846 Jun 28, 2020
b8c25a5
Merge pull request #7 from envoyproxy/master
eric846 Jul 7, 2020
1c19c68
initial commit
eric846 Jul 9, 2020
7050686
fix comments
eric846 Jul 9, 2020
0776563
fix format
eric846 Jul 9, 2020
16fd8f6
rename adaptive_rps to adaptive_load
eric846 Jul 10, 2020
c383010
add field_selector in example
eric846 Jul 10, 2020
6e1a483
fix example comment
eric846 Jul 10, 2020
4ef1140
fix format
eric846 Jul 10, 2020
4111bf4
add support for fault injection headers
eric846 Jul 10, 2020
871a959
replace linear and binary search with exponential search
eric846 Jul 10, 2020
1fd77c1
add InputVariableSetter mechanism
eric846 Jul 11, 2020
edc36b2
add input variable setter to build file
eric846 Jul 11, 2020
4d0364e
fix syntax errors
eric846 Jul 11, 2020
aed6d94
rename samples/adaptive_rps
eric846 Jul 11, 2020
d9ae87d
improve comments, change step controller initial value from int64 to …
eric846 Jul 12, 2020
a05a6f5
add proto validation rules, fix comments, make rps the default input_…
eric846 Jul 13, 2020
8cd4d21
fix comment wording
eric846 Jul 13, 2020
d814a96
simplify protos, add defaults, specify required or optional
eric846 Jul 14, 2020
5f5a885
add missing newline
eric846 Jul 14, 2020
7e20a78
Kick CI
eric846 Jul 14, 2020
9048267
simplify protos
eric846 Jul 15, 2020
306c0ec
fix format
eric846 Jul 15, 2020
d33f543
fix some optional field comments and rules
eric846 Jul 15, 2020
442cca9
Merge pull request #10 from envoyproxy/master
eric846 Jul 16, 2020
677b783
add Nighthawk status field in BenchmarkResult as nested nighthawk.cli…
eric846 Jul 19, 2020
cefb366
switch to standard Envoy plugin config proto, add prefix to internal …
eric846 Jul 22, 2020
f3684df
Merge remote-tracking branch 'upstream/master' into adaptive-rps-protos2
eric846 Jul 22, 2020
5463051
create headers
eric846 Jul 22, 2020
46e0e25
fix format
eric846 Jul 22, 2020
f634642
use docstring format
eric846 Jul 22, 2020
3c39faa
fix typos in comments
eric846 Jul 23, 2020
b9c8f2b
split build target, get rid of ostream, change InputValueSetter to us…
eric846 Jul 24, 2020
5fc4db4
remove nested namespace, remove redundant _include in target names
eric846 Jul 26, 2020
64e7852
merge from upstream
eric846 Jul 29, 2020
12807f1
Merge remote-tracking branch 'upstream/master' into adaptive-rps-headers
eric846 Jul 29, 2020
e8e960f
merge from upstream
eric846 Aug 27, 2020
6306b4e
Merge remote-tracking branch 'upstream/master' into master2
eric846 Aug 27, 2020
1ece783
Merge remote-tracking branch 'upstream/master' into master2
eric846 Aug 28, 2020
70705e9
Merge remote-tracking branch 'upstream/master' into master2
eric846 Aug 31, 2020
e576bc1
Merge remote-tracking branch 'upstream/master' into master2
eric846 Sep 1, 2020
1fca528
Merge remote-tracking branch 'upstream/master' into master2
eric846 Sep 3, 2020
ed32856
Merge remote-tracking branch 'upstream/master' into master2
eric846 Sep 3, 2020
eecf00d
Merge remote-tracking branch 'upstream/master' into master2
eric846 Sep 8, 2020
13179fb
Merge remote-tracking branch 'upstream/master' into master2
eric846 Sep 10, 2020
3eb89e6
Merge remote-tracking branch 'upstream/master' into master2
eric846 Sep 11, 2020
070c04d
add const to adaptive load helper interface methods, clean up deps an…
eric846 Sep 11, 2020
1110cf2
add mocks for adaptive load helpers
eric846 Sep 11, 2020
fae60ad
Merge remote-tracking branch 'upstream/master' into master2
eric846 Sep 12, 2020
12852c6
Merge branch 'master2' into adaptive-rps-mocks
eric846 Sep 12, 2020
80578fa
fix typo
eric846 Sep 12, 2020
50bc113
add comments to mock classes
eric846 Sep 14, 2020
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
Prev Previous commit
Next Next commit
add missing newline
Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
  • Loading branch information
eric846 committed Jul 14, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 5f5a885f00b61527fe1c53023bad6bdfa3177214
2 changes: 1 addition & 1 deletion api/adaptive_load/metrics_plugin_impl.proto
Original file line number Diff line number Diff line change
@@ -4,4 +4,4 @@ syntax = "proto3";

package nighthawk.adaptive_load;

// Plugin-specific config protos for MetricsPlugins that ship with Nighthawk should go here.
// Plugin-specific config protos for MetricsPlugins that ship with Nighthawk should go here.
8 changes: 4 additions & 4 deletions api/adaptive_load/scoring_function_impl.proto
Original file line number Diff line number Diff line change
@@ -11,11 +11,11 @@ package nighthawk.adaptive_load;
// above the threshold. The score is proportional to the difference from the
// threshold.
message LinearScoringFunctionConfig {
// The target value of the metric.
// The target value of the metric. Required.
double threshold = 1;
// Scaling constant: k in k * (threshold - value). Use this in combination
// with step controller constants to produce reasonable input increments for
// reasonable differences from the threshold.
// reasonable differences from the threshold. Required.
double k = 2;
}

@@ -25,9 +25,9 @@ message LinearScoringFunctionConfig {
// metric equals the threshold, approaches 1.0 for values far below the
// threshold, and approaches -1.0 for values far above the threshold.
message SigmoidScoringFunctionConfig {
// The target value of the metric.
// The target value of the metric. Required.
double threshold = 1;
// Tuning constant: k in 1 - 2 / (1 + exp(-k(value - threshold))). k should
// be around the same size as 1/threshold.
// be around the same size as 1/threshold. Required.
double k = 2;
}