Browse files

Change monitoring interval in ClientSocketStats to have larger window.

  • Loading branch information...
1 parent 03214c9 commit 4c69fb6da8fb1d8561ba96ddad4df4e37e55263b @jayjwylie jayjwylie committed Nov 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/java/voldemort/store/stats/ClientSocketStats.java
View
4 src/java/voldemort/store/stats/ClientSocketStats.java
@@ -59,7 +59,9 @@
private QueuedKeyedResourcePool<SocketDestination, ClientRequestExecutor> pool;
// monitoringInterval <= connectionCheckouts + resourceRequests
- private final AtomicInteger monitoringInterval = new AtomicInteger(10000);
+ // 1 qps => monitoring interval of just over a day (~27 hours)
+ // 1000 qps => monitoring interval of 1 minute and 40 seconds
+ private final AtomicInteger monitoringInterval = new AtomicInteger(100000);
// Connection lifecycle
private final AtomicInteger connectionsCreated = new AtomicInteger(0);
private final AtomicInteger connectionsDestroyed = new AtomicInteger(0);

0 comments on commit 4c69fb6

Please sign in to comment.