diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-09-24 09:26:49 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-09-24 09:26:49 -0500 |
commit | fb5511877aa1a6da7fa5a5f8bf917b9fd744c37a (patch) | |
tree | d26bd996fc61ff293584f75384bc08fd22e90646 | |
parent | 56dc9b0da6f9d84d749c46b0cb86fee95a392dfc (diff) | |
download | bcfg2-fb5511877aa1a6da7fa5a5f8bf917b9fd744c37a.tar.gz bcfg2-fb5511877aa1a6da7fa5a5f8bf917b9fd744c37a.tar.bz2 bcfg2-fb5511877aa1a6da7fa5a5f8bf917b9fd744c37a.zip |
bcfg2-admin: Blacklist unused plugins in query mode
When the server has high iowait the Cfg and Packages plugins can slow the
bcfg2-admin query command down. This blacklists them. Also DBStats is unused
and can cause problems due to the threading.
-rw-r--r-- | src/lib/Bcfg2/Server/Admin/Query.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Admin/Query.py b/src/lib/Bcfg2/Server/Admin/Query.py index 529b6eb70..e63ca61b8 100644 --- a/src/lib/Bcfg2/Server/Admin/Query.py +++ b/src/lib/Bcfg2/Server/Admin/Query.py @@ -19,6 +19,8 @@ class Query(Bcfg2.Server.Admin.MetadataCore): "-f filename", "write query to file")) + __plugin_blacklist__ = ['DBStats', 'Cfg', 'Pkgmgr', 'Packages' ] + def __init__(self, setup): Bcfg2.Server.Admin.MetadataCore.__init__(self, setup) logging.root.setLevel(100) |