odyssey/docker/shell-test/test_sleep.sh

11 lines
278 B
Bash
Raw Normal View History

#!/bin/bash -x
#kill -9 $(ps aux | grep odyssey | grpe -v grep | awk '{print $2}')
2020-09-02 16:13:50 +00:00
sleep 1
#ody-start
for _ in $(eq 1 100); do
2020-09-02 16:13:50 +00:00
psql -h localhost -p 6432 -c 'select 1' -U user1 -d postgres &
psql -h 0.0.0.0 -p 6432 -c 'select pg_sleep(100)' -U user1 -d postgres &
done