Skip to content

Run multiple driver scripts in parallel #729

Closed Answered by sm-shaw
wahajali asked this question in Q&A
Discussion options

You must be logged in to vote

Anything you want to do is possible in HammerDB. Here is an example contained in the same script.

Note that there is also the primary and replica modes https://www.hammerdb.com/docs/ch08.html so you can connect multiple instances of HammerDB to run different workloads as well with all starting and stopping from a single primary.

#LOAD LIBRARIES AND MODULES
if [catch {::tcl::tm::path add modules} ] { error "Failed to find modules directory" }
if [catch {package require tpchcommon} ] { error "Failed to load tpch common functions" } else { namespace import tpchcommon::* }
set rema [ lassign [ findvuhposition ] myposition totalvirtualusers ]
set myposition [ expr $myposition % 5 ] 
if { $mypo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wahajali
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants