cmu-db / ottertune

The automatic DBMS configuration tool
Other
1.22k stars 311 forks source link

1. check celery status before running tasks 2. random->lhs when lacking data for GPR 3. fix editing session #349

Closed yangdsh closed 4 years ago

yangdsh commented 4 years ago

1. check celery status before running tasks

If celery is not running, first I used call_command() to stop celery and celerybeat. I did not use call_command() to restart celery, because call_command() is a blocking function call and it blocks Django from running the following lines. Instead, I run celery in the background using os.popen('python manage.py startcelery &')

2. random->lhs when lacking data for this workload

If there is no background task for this workload, we generate 10 recommendation configs with the lhs algorithm instead of the random algorithm.

3. query and edit the session hyperparameters

I feel that we can use the existing backdoor method in the driver fabfile to query and edit the session hyperparameters. The arguments format should be as follows:

  1. There are ' around the json string
  2. There is \ before any comma in the json string
  3. There is no \ before " in the json string

Examples:

dvanaken commented 4 years ago

@yangdsh I accidentally hit 'approved' review but please make the couple of changes I requested and I will merge. Thanks again!