-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Xin Huang <xin1.huang@intel.com>
- Loading branch information
1 parent
98cfcc5
commit f32f97b
Showing
4 changed files
with
106 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### Nighthawk test server configuration | ||
|
||
### Nighthawk test server deployment | ||
|
||
### Gateway | ||
|
||
### HTTPRoute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
static_resources: | ||
listeners: | ||
# define an origin server on :10000 that always returns "lorem ipsum..." | ||
- address: | ||
socket_address: | ||
address: 0.0.0.0 | ||
port_value: 10000 | ||
filter_chains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
generate_request_id: false | ||
codec_type: AUTO | ||
stat_prefix: ingress_http | ||
route_config: | ||
name: local_route | ||
virtual_hosts: | ||
- name: service | ||
domains: | ||
- "*" | ||
http_filters: | ||
- name: dynamic-delay | ||
typed_config: | ||
"@type": type.googleapis.com/nighthawk.server.DynamicDelayConfiguration | ||
static_delay: 0.5s | ||
- name: test-server # before envoy.router because order matters! | ||
typed_config: | ||
"@type": type.googleapis.com/nighthawk.server.ResponseOptions | ||
response_body_size: 10 | ||
v3_response_headers: | ||
- { header: { key: "foo", value: "bar" } } | ||
Check failure on line 32 in test/benchmark/test-server.yaml GitHub Actions / lint
Check failure on line 32 in test/benchmark/test-server.yaml GitHub Actions / lint
Check failure on line 32 in test/benchmark/test-server.yaml GitHub Actions / lint
|
||
- { | ||
header: { key: "foo", value: "bar2" }, | ||
Check failure on line 34 in test/benchmark/test-server.yaml GitHub Actions / lint
Check failure on line 34 in test/benchmark/test-server.yaml GitHub Actions / lint
|
||
append: true, | ||
} | ||
- { header: { key: "x-nh", value: "1" } } | ||
- name: envoy.filters.http.router | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
dynamic_stats: false | ||
admin: | ||
access_log_path: /tmp/envoy.log | ||
address: | ||
socket_address: | ||
address: 0.0.0.0 | ||
port_value: 8081 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters