[autotest] Add script for db_optimize

This adds a script which will load the database configuration
from global_config and will then run optimize table for all tables
in chromeos_autotest_db.

It will also send a stat via StatsD.

BUG=None
TEST=Manually.

Change-Id: Ibedb9760aaffd7393a0d7a408dd22d3429e27666
Reviewed-on: https://chromium-review.googlesource.com/222645
Tested-by: Jakob Jülich <jakobjuelich@chromium.org>
Reviewed-by: Prashanth B <beeps@chromium.org>
Commit-Queue: Jakob Jülich <jakobjuelich@chromium.org>
1 file changed