diff options
author | 2023-02-27 13:22:45 +0100 | |
---|---|---|
committer | 2023-02-28 18:27:17 +0000 | |
commit | c2f76f4590f57729d1bcf03bd816c10991431b18 (patch) | |
tree | 9ab0273c87c3f5ba21cf0ee8277f60f73e95f762 /extras/hs-test/resources | |
parent | b0116a13dcc631d5128209dec867c3fb5209629d (diff) |
hs-test: test vpp+nginx mirroring with tap ifaces
Type: test
Signed-off-by: Maros Ondrejicka <mondreji@cisco.com>
Change-Id: I05bbed8fd9d40929f040574044aed5292a475e91
Diffstat (limited to 'extras/hs-test/resources')
-rw-r--r-- | extras/hs-test/resources/nginx/nginx_proxy_mirroring.conf | 82 | ||||
-rw-r--r-- | extras/hs-test/resources/nginx/nginx_server_mirroring.conf | 32 |
2 files changed, 114 insertions, 0 deletions
diff --git a/extras/hs-test/resources/nginx/nginx_proxy_mirroring.conf b/extras/hs-test/resources/nginx/nginx_proxy_mirroring.conf new file mode 100644 index 00000000000..03af8b76f15 --- /dev/null +++ b/extras/hs-test/resources/nginx/nginx_proxy_mirroring.conf @@ -0,0 +1,82 @@ +user root; +worker_processes 4; +worker_rlimit_nofile 102400; +daemon off; + +events { + use epoll; + worker_connections 102400; + accept_mutex off; +} + +http { + include mime.types; + default_type application/octet-stream; + + access_log off; + + keepalive_timeout 300; + keepalive_requests 1000000; + + proxy_connect_timeout 300; + large_client_header_buffers 4 512k; + client_max_body_size 3000m; + client_header_buffer_size 2048m; + client_body_buffer_size 1024m; + proxy_buffers 16 10240k; + proxy_buffer_size 10240k; + + gzip on; + + upstream bk { + server 10.10.2.1:8091; + keepalive 30000; + } + upstream bk1 { + server 10.10.2.1:8092; + keepalive 30000; + } + upstream bk2 { + server 10.10.2.1:8093; + keepalive 30000; + } + + server { + listen 80; + server_name 10.10.1.2; + + server_tokens off; + + proxy_redirect off; + + location / { + root html; + index index.html index.htm; + proxy_pass http://bk; + proxy_set_header Connection ""; + proxy_set_header X-Original-URI $request_uri; + proxy_set_header Host $host:$server_port; + chunked_transfer_encoding on; + proxy_http_version 1.1; + mirror /mimic1; + mirror /mimic2; + mirror_request_body on; + } + location /mimic1 { + proxy_pass http://bk1$request_uri; + proxy_set_header X-Original-URI $request_uri; + proxy_set_header Connection ""; + chunked_transfer_encoding on; + proxy_http_version 1.1; + proxy_set_header Host $host:$server_port; + } + location /mimic2 { + proxy_pass http://bk2$request_uri; + proxy_set_header X-Original-URI $request_uri; + proxy_set_header Host $host:$server_port; + proxy_set_header Connection ""; + proxy_http_version 1.1; + chunked_transfer_encoding on; + } + } +} diff --git a/extras/hs-test/resources/nginx/nginx_server_mirroring.conf b/extras/hs-test/resources/nginx/nginx_server_mirroring.conf new file mode 100644 index 00000000000..4056801ea13 --- /dev/null +++ b/extras/hs-test/resources/nginx/nginx_server_mirroring.conf @@ -0,0 +1,32 @@ +master_process on; +worker_rlimit_nofile 10240; +worker_processes 2; +daemon off; + +events { + use epoll; + worker_connections 10240; + accept_mutex off; + multi_accept off; +} + +http { + keepalive_timeout 300s; + keepalive_requests 1000000; + sendfile on; + server { + listen 8091; + listen 8092; + listen 8093; + root /usr/share/nginx; + index index.html index.htm; + location /return_ok + { + return 200 ''; + } + location /64B.json + { + return 200 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; + } + } +} |