summaryrefslogtreecommitdiff
path: root/automated/linux/nginx-server/nginx-linux.yaml
diff options
context:
space:
mode:
authorJosep Puigdemont <josep.puigdemont@linaro.org>2016-10-20 14:39:29 +0200
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-01-04 14:54:43 +0000
commit88cf9ea68aec68538a88094869f4bad50eedd8d9 (patch)
treeb1a760e61603ba5ecbcd7f9edd11d4dace8928fe /automated/linux/nginx-server/nginx-linux.yaml
parent7eeb6135acbc300cc163fe42d178e593891fadb5 (diff)
nginx-server: server side of the http performance tests
The nginx-server.sh script implements the same protocol as the httperf-client.sh script, namely: client server | | |<----------- num_cores ---------| # server indicates num cores |---------- client_ready ------->| # server is configured for 1 core |<-- server_num_cores_1_ready ---| # client runs tests for 1 core |--- client_num_cores_1_done --->| # client is finished testing | | # server reconfigures for 2 cores |<-- server_num_cores_2_ready ---| # client runs tests for 2 cores |--- client_num_cores_2_done --->| # client is finished testing | | # repeated until num_cores in | | # increments of 2 (1, 2, 4, 6...) ... Currently it supports testing NGiNX on plain linux IP stack, and a special version of NGiNX compiled for OFP and ODP-DPDK, however the latter is not too portable at the moment and will require further work. Whether one or the other is tested is configured by the CONFIG_TYPE environment variable in the test definition: linux-ip or odp-dpdk, respectively. Also the maximum amount of cores for which to test can be limited by setting the MAX_CORES environment variable (0 meaning all cores). This relies completely on VLAND and lava-{send,wait} for synchronization. Change-Id: I775083f7183895039064141b51172a3280249848 Signed-off-by: Josep Puigdemont <josep.puigdemont@linaro.org> Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'automated/linux/nginx-server/nginx-linux.yaml')
-rw-r--r--automated/linux/nginx-server/nginx-linux.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/automated/linux/nginx-server/nginx-linux.yaml b/automated/linux/nginx-server/nginx-linux.yaml
new file mode 100644
index 0000000..c438c1c
--- /dev/null
+++ b/automated/linux/nginx-server/nginx-linux.yaml
@@ -0,0 +1,36 @@
+metadata:
+ name: httperf-nginx-linux-ip
+ format: Lava-Test-Shell Test Definition 1.0
+ description: Server running plain NGiNX, no acceleration
+ environment:
+ - lava-test-shell
+ maintainer:
+ - josep.puigdemont@linaro.org
+ os:
+ - debian
+ - ubuntu
+ devices:
+ - x86
+
+install:
+ deps:
+ - bash
+ - ethtool
+ - procps
+ - sysstat
+
+params:
+ CONFIG_TYPE: linux-ip
+ MAX_CORES: 0
+ VLAND_NAME: vlan_one
+
+run:
+ steps:
+ - echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list
+ - apt-get update
+ - apt-get install -y -t jessie-backports nginx
+ - export CONFIG_TYPE
+ - export MAX_CORES
+ - export VLAND_NAME
+ - echo $CONFIG_TYPE, $MAX_CORES, $VLAND_NAME
+ - lava-test-case httperf-nginx-server --shell ./automated/linux/nginx-server/nginx-server.sh