-
Hi, I have a general question about how connections are formed to PostgreSQL for vusers for TPCC runs in a PostgreSQL, I am running 1000000 transactions with up to 60 vusers and I only see one connection on my PostgreSQL database at any time for HammerDB no matter the number of virtual users. How exactly does HammerDB connect to PostgreSQL with vusers? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
you don't mention the OS you are using. |
Beta Was this translation helpful? Give feedback.
-
There does seem to be some confusion here, it is well worth re-reading the blog post and searching for the word "parallel", that is the crucial concept that HammerDB creates multiple Virtual Users that connect to the database and run the workload in parallel. (Many tools aren't able to do this, HammerDB does). So as an example, here 10 Virtual Users are created, we also create a monitor virtual user so that is 11 in total. For the command line vuset vu 10 and vucreate e.g.
Once we start running (vurun in the CLI) if we check in the database we can see that 11 sessions are created:
and as postgres is a process based database we can see those 11 sessions as processes:
Note you won't see 10 processes on the HammerDB client side as those 10 Virtual Users are running as threads inside the HammerDB process. From this point it is definitely worth reading the documentation and the blog to understand some of the more basic concepts first. |
Beta Was this translation helpful? Give feedback.
There does seem to be some confusion here, it is well worth re-reading the blog post and searching for the word "parallel", that is the crucial concept that HammerDB creates multiple Virtual Users that connect to the database and run the workload in parallel. (Many tools aren't able to do this, HammerDB does).
So as an example, here 10 Virtual Users are created, we also create a monitor virtual user so that is 11 in total.
For the command line vuset vu 10 and vucreate e.g.