dijkstra-backend-cloudron/node_modules/knex/scripts/stress-test
2020-10-12 11:27:15 +02:00
..
docker-compose.yml Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02:00
knex-stress-test.js Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02:00
mysql2-random-hanging-every-now-and-then.js Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02:00
mysql2-sudden-exit-without-error.js Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02:00
README.txt Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02:00
reconnect-test-mysql-based-drivers.js Add initial version of dijkstra backend cloudron image 2020-10-12 11:27:15 +02:00

# Test scripts to evaluate stability of drivers / pool etc.

# To run this test you need to be in this directory + have node >= 8
# and startup docker containers with proxy and sql servers

docker-compose up --no-start
docker-compose start

# Select different test script to run:

node mysql2-random-hanging-every-now-and-then.js 2> /dev/null | grep -B500 -A2 -- "- STATS" 
node mysql2-sudden-exit-without-error
node knex-stress-test.js | grep -A 3 -- "- STATS "
node reconnect-test-mysql-based-drivers.js 2> /dev/null | grep -A 3 -- "- STATS "

# Shut down docker instances when done:

docker-compose down