File tree Expand file tree Collapse file tree 5 files changed +58
-4
lines changed
Expand file tree Collapse file tree 5 files changed +58
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ export PGDATABASE=shardman
1515export PGHOST=localhost
1616export PGUSER=` whoami`
1717
18- pgbench -p 5432 -T 60 -P 5 -c 5 -j 5 --select-only -n &
19- pgbench -p 5433 -T 60 -P 5 -c 5 -j 5 --select-only -n &
20- pgbench -p 5434 -T 60 -P 5 -c 5 -j 5 --select-only -n &
18+ cl=200
19+
20+ pgbench -p 5432 -T 20 -P 5 -c $cl -j $cl --select-only -n &
21+ pgbench -p 5433 -T 20 -P 5 -c $cl -j $cl --select-only -n &
22+ pgbench -p 5434 -T 20 -P 5 -c $cl -j $cl --select-only -n &
2123
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # ##############################################################################
4+ #
5+ # Use pgbench to scale OLTP load with FDW + partitioning machinery
6+ #
7+ # ##############################################################################
8+
9+ PGINSTALL=` pwd` /tmp_install/
10+
11+ export LD_LIBRARY_PATH=$PGINSTALL /lib:$LD_LIBRARY_PATH
12+ export PATH=$PGINSTALL /bin:$PATH
13+
14+ export PGDATABASE=shardman
15+ export PGHOST=localhost
16+ export PGUSER=` whoami`
17+
18+ pkill -U ` whoami` -9 -e postgres
19+ pkill -U ` whoami` -9 -e pgbench
20+
21+ pg_ctl -D PGDATA1 -l n0.log start
22+ pg_ctl -o " -p 5433" -D PGDATA2 -l n1.log start
23+ pg_ctl -o " -p 5434" -D PGDATA3 -l n2.log start
24+
25+ pgbench -p 5432 -T 60 -P 5 -c 100 -j 33 --select-only -n &
26+ pgbench -p 5433 -T 60 -P 5 -c 100 -j 33 --select-only -n &
27+ pgbench -p 5434 -T 60 -P 5 -c 100 -j 33 --select-only -n &
28+
Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ initdb -D $M
2020
2121# echo "work_mem = 2GB" >> $M/postgresql.conf
2222# echo "shared_buffers = 2GB" >> $M/postgresql.conf
23+ echo " max_connections = 10000" >> $M /postgresql.conf
24+
2325pg_ctl -w -D $M -l logfile.log start
2426createdb $U
2527pgbench -i -s 300
26- pgbench -T 60 -c 15 -j 15 -P 5 --select-only -n $U
28+ # pgbench -T 60 -c 100 -j 100 -P 5 --select-only -n $U
2729
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ INSTDIR=` pwd` /tmp_install
4+ export LD_LIBRARY_PATH=$INSTDIR /lib:$LD_LIBRARY_PATH
5+ export PATH=$INSTDIR /bin:$PATH
6+ export PGPORT=5438
7+ export PGHOST=localhost
8+ export PGDATABASE=` whoami`
9+
10+ pkill -U ` whoami` -9 -e postgres
11+ pkill -U ` whoami` -9 -e pgbench
12+
13+ M=` pwd` /PGDATA
14+ U=` whoami`
15+
16+ rm -rf logfile.log || true
17+ pg_ctl -w -D $M -l logfile.log start
18+ pgbench -T 20 -c 10 -j 10 -P 5 --select-only -n $U
19+ pg_ctl -D $M stop
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ initdb -D $D3 -E UTF8 --locale=C
4747echo " shared_preload_libraries = 'postgres_fdw'" >> $D1 /postgresql.conf
4848echo " shared_preload_libraries = 'postgres_fdw'" >> $D2 /postgresql.conf
4949echo " shared_preload_libraries = 'postgres_fdw'" >> $D3 /postgresql.conf
50+ echo " max_connections = 100000" >> $D1 /postgresql.conf
51+ echo " max_connections = 100000" >> $D2 /postgresql.conf
52+ echo " max_connections = 100000" >> $D3 /postgresql.conf
5053# echo "shared_buffers = 10GB" >> $D1/postgresql.conf
5154# echo "shared_buffers = 10GB" >> $D2/postgresql.conf
5255# echo "shared_buffers = 10GB" >> $D3/postgresql.conf
You can’t perform that action at this time.
0 commit comments