Author: eallen
Date: 2010-07-14 10:19:47 -0400 (Wed, 14 Jul 2010)
New Revision: 4117
Modified:
mgmt/newdata/cumin/python/cumin/main.py
Log:
Bump Businest Message Queues up to use a 10 minute average instead of 60 seconds.
Modified: mgmt/newdata/cumin/python/cumin/main.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/main.py 2010-07-14 12:33:58 UTC (rev 4116)
+++ mgmt/newdata/cumin/python/cumin/main.py 2010-07-14 14:19:47 UTC (rev 4117)
@@ -225,7 +225,7 @@
name_col = self.table._columns_by_name["name"]
avg_over_last_60_seconds_col =
"""((sum("Queue"."msgTotalEnqueues") -
- sum(s."msgTotalEnqueues")) / (count(1)-1)) / 30 as
avg_60"""
+ sum(s."msgTotalEnqueues")) / (count(1)-1)) / 300 as
avg_60"""
queue_id_col = self.table._columns_by_name["_id"]
vhostRef_col = self.table._columns_by_name["_vhostRef_id"]
vhost_table = self.app.model.org_apache_qpid_broker.Vhost.sql_table
@@ -251,7 +251,7 @@
updated_col = samples_table._columns_by_name["_qmf_update_time"]
enqueues_col = samples_table._columns_by_name["msgTotalEnqueues"]
- when = "now() - interval '60 seconds'"
+ when = "now() - interval '600 seconds'"
SqlComparisonFilter(subquery, updated_col, when, ">=")
columns = list()