Deploy HammerDB on AWS EC2 Linux and a Test Database. This is for reference only. Consider removing database secrets from templates.
This repo also contains a template to deploy dms to perform cdc from RDS to S3.
For reference on the HammerDB TPC test see https://www.hammerdb.com/docs/ch03s05.html
aws cloudformation create-stack \
--stack-name hammerdb \
--template-body file://hammerdb_cloudformation_template.yaml \
--parameters ParameterKey=DBInstanceClass,ParameterValue=db.m5.large \
ParameterKey=DBIops,ParameterValue=3000 \
--capabilities CAPABILITY_IAM
- CD into HammerDB home directory
- Run
./hammerdbcli
- Run
librarycheck
- Run
dbset db pg
- Run
buildschema
. Wait until you see message "ALL VIRTUAL USERS COMPLETE" (~2 min) - Exit the hammerdb cli by typing
exit
psql -h <db_endpoint> -U awsuser HammerDBTestDB
Sample update command to test cdc
UPDATE district
SET d_state='Ud'
WHERE d_state='Ut';
- From the HammerDB home directory run
./hammerdbcli auto ../pgrun.tcl
- Monitor transactions per minute (tpm) from the cli.
aws cloudformation create-stack \
--stack-name dmscdcworkflow \
--template-body file://dms_cdc_workflow_template.yaml \
--parameters \
ParameterKey=SourceDBEndpoint,ParameterValue=hh1ny0hdtbd6deh.cy89ufkjvp6q.us-west-2.rds.amazonaws.com \
ParameterKey=TargetBucket,ParameterValue=pablo.data.lake \
--capabilities CAPABILITY_IAM