-
Notifications
You must be signed in to change notification settings - Fork 312
Guide on how to use TPCC benchmark #190
Comments
I let it run all night, it dropped to 65 txn/s over a 1000 tuning session loops. |
Hi @thomasloubejac, Thank you for your help |
What I will give you here worked for me on postgres-9.6, you'll have to adapt on other dbms
On your client Machine
see a future post down below if you want further information on the configuration files.
the last command should take no more than 3 minutes.
At this point you need to have your server machine setup, make sure everything works with :
So put these values in your oltpbench/config/{yourconfiguration} . Then in the driver directory :
If it doesn't give errors straight up, then it means it worked and you're ok to go. this might take a while (27min for a less beefy configuration in my case). Note that the beefier the config, the longer it takes. then
this is to make sure that you have enough time in your workload.
and a really long html file. Note that <title>ZeroDivisionError at /new_result/</title> means that the bench didn't even have time to run. I suspect there is a problem in the timing of the actions in this function. Note that a task is killed before the experiment even started.
repeat the steps until you find the maximum values that your configuration will support.
On your server machine
I removed every other knob because it either makes the process slower or you shouldn't touch them (according to my DBA). Note that the tuning session will generate configurations within the range [default, maxval].
Lastclient side : fab run_loops:1000 (during a randomly generate sessions, advice from the team) It happened that I had to restart the website and celery worker before it accepted running the tuning session. PS : I didn't even succeed in getting results yet, I'm still trying to figure things out. |
Thank you very much @thomasloubejac thank you for your time explaining this step by step. I'll try to test this for my case it is for mysql on percona server. Thank you again |
ottertune/client/driver$ cat driver_config.json | jq
|
ottertune/server/website/website/fixtures/$ cat postgres9-6_knobs.json
|
Ok then I hope this will help you! |
Now we have an end-to-end example using OtterTune to tune Postgres 9.6 with a AWS instance. It may be a good example to get started. |
@bohanjason Thank you very much |
@nabti No problem , sorry for the late reply. |
@thomasloubejac can you make the video for this it will be a great help because from last 1.5 months i am trying to run it but still not able to run it |
@thomasloubejac @nabti were you able to run whole project end-to-end. |
During randomly generate session :
During tuning session (celery worker shows recommendation)
So I'm wondering if I did anything wrong ?
I had 500 random configurations tested before going to tuning session.
Am I supposed to reload the database ? If so, how often ?
The text was updated successfully, but these errors were encountered: