Skip to content

Commit

Permalink
Change monitoring interval in ClientSocketStats to have larger window.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjwylie committed Jan 15, 2013
1 parent 03214c9 commit 4c69fb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/java/voldemort/store/stats/ClientSocketStats.java
Expand Up @@ -59,7 +59,9 @@ public class ClientSocketStats {
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);
Expand Down

0 comments on commit 4c69fb6

Please sign in to comment.