[stress-tests] Fix typo when finding sysbench binary
We were erroneously looking for the sysbench2 binary. While there unify naming and add direct links from the documentation to each mentioned file.nc-nginx-test
parent
c83c925734
commit
96e5ce8f33
|
@ -11,11 +11,13 @@ This documents normalised stress-testing and references files under
|
||||||
|
|
||||||
## VM tests
|
## VM tests
|
||||||
|
|
||||||
- `vm-test.sh`: generate a text file to compare CPU and other factors across
|
- `[vm-tests.sh][vm-tests.sh]`: generate a text file to compare CPU and other
|
||||||
VM types, providers or instances which may affect DD performance.
|
factors across VM types, providers or instances which may affect DD
|
||||||
|
performance.
|
||||||
|
|
||||||
We can compare the resulting lgos just with, e.g. `vim -d`.
|
We can compare the resulting logs just with, e.g. `vim -d`.
|
||||||
|
|
||||||
|
[vm-tests.sh]: https://gitlab.com/DD-workspace/DD/-/tree/main/stress-tests/vm-tests.sh
|
||||||
|
|
||||||
## DD tests
|
## DD tests
|
||||||
|
|
||||||
|
@ -26,12 +28,17 @@ be interesting to expand them to interact with other services.
|
||||||
|
|
||||||
This directory contains following files:
|
This directory contains following files:
|
||||||
|
|
||||||
- `dd-stress-test.tpl.jmx`: template to generate [JMeter][jm] tests to execute
|
- `[dd-stress-test.tpl.jmx][dd-stress-test.tpl.jmx]`: template to generate
|
||||||
- `dd-tests.sh`: helper script that generates the actual test plan files and
|
[JMeter][jm] tests to execute
|
||||||
executes them. See `./dd-tests.sh --help`
|
- `[dd-tests.sh][dd-tests.sh]`: helper script that generates the actual test
|
||||||
- `dd-test-selenium.sh`: this gives us an idea of how a user would perceive
|
plan files and executes them. See `./dd-tests.sh --help`
|
||||||
DD to be behaving while under load. Called by `./dd-tests.sh` by default.
|
- `[dd-tests-selenium.py][dd-tests-selenium.py]`: this gives us an idea of
|
||||||
|
how a user would perceive DD to be behaving while under load.
|
||||||
|
Called by `./dd-tests.sh` by default.
|
||||||
|
|
||||||
|
[dd-stress-test.tpl.jmx]: https://gitlab.com/DD-workspace/DD/-/tree/main/stress-tests/dd-stress-test.tpl.jmx
|
||||||
|
[dd-tests.sh]: https://gitlab.com/DD-workspace/DD/-/tree/main/stress-tests/dd-tests.sh
|
||||||
|
[dd-tests-selenium.py]: https://gitlab.com/DD-workspace/DD/-/tree/main/stress-tests/dd-tests-selenium.py
|
||||||
|
|
||||||
### Results
|
### Results
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@ sed -E \
|
||||||
# Call Selenium test process in parallel
|
# Call Selenium test process in parallel
|
||||||
if [ "${USE_SELENIUM}" = "YES" ]; then
|
if [ "${USE_SELENIUM}" = "YES" ]; then
|
||||||
printf "\n\nRunning parallel Selenium-based tests:\t%s\tover %s seconds\n\n" "${DD_DOMAIN}" "${duration}"
|
printf "\n\nRunning parallel Selenium-based tests:\t%s\tover %s seconds\n\n" "${DD_DOMAIN}" "${duration}"
|
||||||
python3 dd-test-selenium.py test --duration "${duration}" --out-dir "${out_dir}/selenium" "${DD_DOMAIN}" 2>&1 > "${out_dir}/selenium.log" &
|
python3 dd-tests-selenium.py test --duration "${duration}" --out-dir "${out_dir}/selenium" "${DD_DOMAIN}" 2>&1 > "${out_dir}/selenium.log" &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Execute test
|
# Execute test
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
LOG_FILE="${LOG_FILE:-vm-test.log}"
|
LOG_FILE="${LOG_FILE:-vm-test.log}"
|
||||||
|
|
||||||
SYSBENCH="$(command -v sysbench2)"
|
SYSBENCH="$(command -v sysbench)"
|
||||||
|
|
||||||
# Save stderr as well
|
# Save stderr as well
|
||||||
exec 2>&1
|
exec 2>&1
|
Loading…
Reference in New Issue