Permalink
Browse files

Fix bug for flusherCompleted

  • Loading branch information...
1 parent 43d8951 commit 5f6326032cff1a9ec0164c1ffc20c5da2081a614 @bcui6611 bcui6611 committed Aug 14, 2012
Showing with 9 additions and 7 deletions.
  1. +7 −5 cluster_stats.py
  2. +1 −1 diskqueue_stats.py
  3. +1 −1 prescription.py
View
@@ -505,10 +505,12 @@ def run(self, accessor, scale, threshold=None):
for key, value in stats_info.iteritems():
if key.find(accessor["counter"]) >= 0:
if accessor.has_key("threshold"):
- if accessor["counter"] == "flusherState" and value != threshold_val:
- num_error.append({"node":node, "value": accessor["symptom"]})
- elif accessor["counter"] == "flusherCompleted" and value == threshold_val:
- num_error.append({"node":node, "value": accessor["symptom"]})
+ if accessor["name"] == "flusherState":
+ if value != threshold_val:
+ num_error.append({"node":node, "value": accessor["symptom"]})
+ elif accessor["name"] == "flusherCompleted":
+ if int(value) == threshold_val:
+ num_error.append({"node":node, "value": accessor["symptom"]})
else:
if value > threshold_val:
if accessor.has_key("unit"):
@@ -882,7 +884,7 @@ def run(self, accessor, scale, threshold=None):
"code" : "EPEnginePerformance",
"unit" : "time",
"threshold" : 100,
- "symptom" : "Average wait time '{0}' for items to be serviced by dispatcher is slower than '{1}'",
+ "symptom" : "Average waiting time '{0}' for items serviced by dispatcher is slower than '{1}'",
"formula" : "Avg(ep_bg_wait_avg) > threshold",
},
],
View
@@ -229,7 +229,7 @@ def run(self, accessor, scale, threshold=None):
"high" : 100000,
},
},
- "symptom" : "Number of backlog items for replication '{0}' is above threshold '{1}'",
+ "symptom" : "Number of backlog items or replication ratio '{0}' is above threshold '{1}'",
"formula" : "Avg(ep_tap_total_total_backlog_size) / Avg(curr_items) < threshold",
}
],
View
@@ -48,7 +48,7 @@
"action" : "Increase disk quota for buckets, or add nodes to cluster. Can remove and re-add a server to resolve a disk fragmentation issue. If issue persists please contact support@couchbase.com"
},
"ReplicationTrend" : {
- "cause" : "Ratio of items in the replication queue and active items greater than threshold.",
+ "cause" : "Replication queue overloaded",
"impact" : "If the nodes fails over, data will be missing on the replica. If you failover, information in the replication queue will be lost.",
"action" : "Do not failover the node. Wait until replication queue is low to failover. If replication queue remains high, contact support@couchbase.com",
},

0 comments on commit 5f63260

Please sign in to comment.