$ unzip TdBenchV8.00.16.06.zip
$ sudo yum install -y java-11-amazon-corretto
$ echo "select * from lineorder;" > sql/lineorder.sql
- Redshift JDBC Driver をダウンロードする。
$ curl -L -O https://s3.amazonaws.com/redshift-downloads/drivers/jdbc/2.1.0.9/redshift-jdbc42-2.1.0.9.zip
./tdbench.sh
y
2
(全行を削除して、以下を入力)
class com.amazon.redshift.jdbc42.Driver jdbc:redshift redshift-jdbc42-2.1.0.9.jar
db red jdbc:redshift://redshift-cluster-poc-central.********.ap-northeast-1.redshift.amazonaws.com:5439/dev?ssl=true awsuser Password1
wq
g
$ ./tdbench.sh
define category1000 select on category with 1000 workers on ra3 2 fixed nodes
queue q1 scripts/lineorder.sql
worker q1 red 2000
run 10m
$ ps -elf|grep tdbench
0 T ec2-user 4194 3749 0 80 0 - 1865846 - 12:21 pts/0 00:00:02 java -jar tdbench8.0.jar
0 S ec2-user 12176 12153 83 80 0 - 2271745 - 12:35 pts/1 00:13:10 java -jar tdbench8.0.jar
0 S ec2-user 15403 2999 0 80 0 - 29858 - 12:50 pts/0 00:00:00 grep --color=auto tdbench
$ strace -Ttt -ff -s 1500000 -o strace -p 12176