History log of /external/autotest/contrib/db_optimize.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
14cac44542bc6a403cb7a3585eb3ebae00227992 21-Nov-2016 Aviv Keshet <akeshet@chromium.org> autotest: move or eliminate a bunch of autotest_stats stats

BUG=chromium:667171
TEST=unittests; guado_moblab tryjob + test run

Change-Id: I815d2d748a2daa3bc869ead5d09f722245b7317b
Reviewed-on: https://chromium-review.googlesource.com/413103
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
Tested-by: Aviv Keshet <akeshet@chromium.org>
/external/autotest/contrib/db_optimize.py
001c4dd3fd9026a5b6c621ba1c1913c3c40df100 24-Feb-2016 Fang Deng <fdeng@chromium.org> [autotest] Only cleanup db on shards.

Add check which enforce db cleanup to happen only on shards.

TEST=run the script locally w/ and w/o [SHARD] section
BUG=chromium:589498

Change-Id: I9c77633c2990da94e4668f4287badd5e07645896
Reviewed-on: https://chromium-review.googlesource.com/329250
Commit-Ready: Fang Deng <fdeng@chromium.org>
Tested-by: Fang Deng <fdeng@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/contrib/db_optimize.py
e126351488a96ef4a4d4de4cc2b344d2bf8cb129 07-Jun-2015 Fang Deng <fdeng@chromium.org> [autotest] db optimization skips write to bin log

Do not write any optmization table query to binary log
so that slave won't pick it up automatically.

TEST=Run it locally
BUG=chromium:497314

Change-Id: I58c1b8322f2ad0b7647b3431036f673937061bc2
Reviewed-on: https://chromium-review.googlesource.com/275736
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
Tested-by: Fang Deng <fdeng@chromium.org>
/external/autotest/contrib/db_optimize.py
5517a8a8b25d7e72d6f9638c2d86e90dda35d915 12-Mar-2015 Fang Deng <fdeng@chromium.org> [autotest] Fix db_optimize.

Took less than 2 minutes on x86-mario shard with over 3 months
history, ~80,000 rows in afe_jobs ~110,000 rows in
afe_special_tasks.

TEST=Run the script
BUG=chromium:455486

Change-Id: I0feb16e2da608e2db5194907be5d789dcf099fde
Reviewed-on: https://chromium-review.googlesource.com/259232
Tested-by: Fang Deng <fdeng@chromium.org>
Reviewed-by: Mungyung Ryu <mkryu@google.com>
Commit-Queue: Fang Deng <fdeng@chromium.org>
/external/autotest/contrib/db_optimize.py
1e1c41b1b4a1b97c0b7086b8430856ed45e064d3 05-Feb-2015 Gabe Black <gabeblack@chromium.org> graphite: Separate out configuration from the statsd classes.

The new version of the statsd classes should be created using an instance of
the new Statsd class which sets up some defaults without having to specify
them over and over. This makes it essentially compatible with the existing
usage in autotest, but will allow chromite to configure things differently and
avoid having side effects from importing the module or global state.

BUG=chromium:446291
TEST=Ran unit tests, ran stats_es_functionaltest.py, ran the
stats_mock_unittest, ran a butterfly-paladin tryjob with --hwtest, testing by
fdeng.
DEPLOY=apache,scheduler,host-scheduler

Change-Id: I1071813db197c0e5e035b4d8db615030386f1c1c
Reviewed-on: https://chromium-review.googlesource.com/246428
Reviewed-by: Fang Deng <fdeng@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
/external/autotest/contrib/db_optimize.py
a2cb2c1722228e45cd8ba2b094d4952ae265be0f 10-Oct-2014 Jakob Juelich <jakobjuelich@chromium.org> [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>
/external/autotest/contrib/db_optimize.py