aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-03-26 11:06:26 +0100
committerBryn M. Reeves <bmr@redhat.com>2019-03-26 12:02:44 +0000
commit3922829a59e987450d8c04e7ed3d42e3b03282dc (patch)
treeb7e4ce88d8ced72782ef02b5fd9b3d13a99e1e18
parent1bca5644014a159fae8e4b7121d363dc1473fa6f (diff)
downloadsos-3922829a59e987450d8c04e7ed3d42e3b03282dc.tar.gz
[foreman] decrease default task export to 1 month
For bigger foreman deployments, csv postgres queries timeout while users are not much concerned about old tasks. Let decrease default time span to 1 month and increase timeout for collecting those commands. Resolves: #1623 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/foreman.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
index cd3b6f2f..a1e937f3 100644
--- a/sos/plugins/foreman.py
+++ b/sos/plugins/foreman.py
@@ -22,7 +22,7 @@ class Foreman(Plugin):
profiles = ('sysmgmt',)
packages = ('foreman', 'foreman-proxy')
option_list = [
- ('months', 'number of months for dynflow output', 'fast', 6)
+ ('months', 'number of months for dynflow output', 'fast', 1)
]
def setup(self):
@@ -154,11 +154,11 @@ class Foreman(Plugin):
for table in foremandb:
_cmd = self.build_query_cmd(foremandb[table])
- self.add_cmd_output(_cmd, suggest_filename=table)
+ self.add_cmd_output(_cmd, suggest_filename=table, timeout=600)
for dyn in foremancsv:
_cmd = self.build_query_cmd(foremancsv[dyn], csv=True)
- self.add_cmd_output(_cmd, suggest_filename=dyn)
+ self.add_cmd_output(_cmd, suggest_filename=dyn, timeout=600)
def build_query_cmd(self, query, csv=False):
"""