hs-test: add nginx test
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: Idd5352f254df0d1f36c1270e73440c9287247b81
This commit is contained in:
26
extras/hs-test/resources/nginx/nginx.conf
Normal file
26
extras/hs-test/resources/nginx/nginx.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
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 80;
|
||||
root /usr/share/nginx;
|
||||
index index.html index.htm;
|
||||
location /return_ok
|
||||
{
|
||||
return 200 '';
|
||||
}
|
||||
}
|
||||
}
|
6
extras/hs-test/resources/nginx/start.sh
Executable file
6
extras/hs-test/resources/nginx/start.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
LDP_PATH=/usr/lib/libvcl_ldpreload.so
|
||||
VCL_CFG=/vcl.conf
|
||||
LD_PRELOAD=$LDP_PATH VCL_CONFIG=$VCL_CFG nginx -c /nginx.conf
|
||||
tail -f /dev/null
|
10
extras/hs-test/resources/nginx/vcl.conf
Normal file
10
extras/hs-test/resources/nginx/vcl.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
vcl {
|
||||
heapsize 64M
|
||||
segment-size 4000000000
|
||||
add-segment-size 4000000000
|
||||
rx-fifo-size 4000000
|
||||
tx-fifo-size 4000000
|
||||
|
||||
use-mq-eventfd
|
||||
app-socket-api /tmp/nginx/var/run/app_ns_sockets/default
|
||||
}
|
Reference in New Issue
Block a user