Help : Hammerdb setup with mysql instance #425
Replies: 1 comment 1 reply
-
There is a lot of information in the HammerDB documentation and the blog, also using the GUI locally such as on a laptop can really help with understanding the CLI but as a quick CLI primer for MySQL: Firstly, we will write a script to build a 30 warehouse schema with 5 virtual users, the most common beginning mistake is to create too many warehouses and too many virtual users expecting higher performance - see the blog here for how many to create. We have the default user of root, password mysql and database tpcc. more buildmysql.tcl
Then we will run it.
You will see progress such as the following showing the build is running:
and the following when it is complete
You can login to MySQL to check the newly built schema e.g.
Now we will write a test script: more testmysql.tcl
We run it in the same way as the build with the following output:
This simple test on a latop gave a performance result of: Try rerunning by increasing your virtual users When you have finished, you can drop the database.
This should be enough to get started. To understand some of the more advanced parameters, see the presentation here and then the documentation and blog. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone..
I am new to setup hammerdb with mysql instance, and need help with step by step instructions if anyone can help...
I have setup an compute engine "ds-poc" and installed hammerdb on it.
then I have created and cloud sql instance "t-streamb" under this I have created a DB "tpcc"
Please help me with the instructions :
my print dict output is as follow:
hammerdb>print dict
Dictionary Settings for MySQL
connection {
mysql_host = (I have set this value to public IP of my mysql instance)
mysql_port = 3306
mysql_socket = /tmp/mysql.sock
mysql_ssl = false
mysql_ssl_two_way = false
mysql_ssl_linux_capath = /etc/mysql/certs
mysql_ssl_windows_capath = C:\mysql\certs
mysql_ssl_ca = ca-cert.pem
mysql_ssl_cert = client-cert.pem
mysql_ssl_key = client-key.pem
mysql_ssl_cipher = server
}
tpcc {
mysql_count_ware = 1000
mysql_num_vu = 20
mysql_user = username
mysql_pass = password
mysql_dbase = tpcc
mysql_storage_engine = innodb
mysql_partition = true
mysql_prepared = false
mysql_total_iterations = 10000000
mysql_raiseerror = false
mysql_keyandthink = false
mysql_driver = test
mysql_rampup = 2
mysql_duration = 5
mysql_allwarehouse = false
mysql_timeprofile = false
mysql_async_scale = false
mysql_async_client = 10
mysql_async_verbose = false
mysql_async_delay = 1000
mysql_connect_pool = false
Beta Was this translation helpful? Give feedback.
All reactions