Skip to content

Commit de712fd

Browse files
author
Greg Whalin
committed
saner defaults
1 parent cdfad0a commit de712fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/com/meetup/memcached/SockIOPool.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,18 @@ protected MessageDigest initialValue() {
164164

165165
// initial, min and max pool sizes
166166
private int poolMultiplier = 3;
167-
private int initConn = 1;
168-
private int minConn = 1;
169-
private int maxConn = 10;
167+
private int initConn = 10;
168+
private int minConn = 5;
169+
private int maxConn = 100;
170170
private long maxIdle = 1000 * 60 * 5; // max idle time for avail sockets
171171
private long maxBusyTime = 1000 * 30; // max idle time for avail sockets
172172
private long maintSleep = 1000 * 30; // maintenance thread sleep time
173-
private int socketTO = 1000 * 30; // default timeout of socket reads
173+
private int socketTO = 1000 * 3; // default timeout of socket reads
174174
private int socketConnectTO = 1000 * 3; // default timeout of socket connections
175175
private boolean aliveCheck = false; // default to not check each connection for being alive
176176
private boolean failover = true; // default to failover in event of cache server dead
177177
private boolean failback = true; // only used if failover is also set ... controls putting a dead server back into rotation
178-
private boolean nagle = true; // enable/disable Nagle's algorithm
178+
private boolean nagle = false; // enable/disable Nagle's algorithm
179179
private int hashingAlg = NATIVE_HASH; // default to using the native hash as it is the fastest
180180

181181
// locks

0 commit comments

Comments
 (0)