title: jedis connection settings for high performance and reliablity
body: <p>I am using Jedis client for connecting to my Redis server. The following are the settings I'm using for connecting with Jedis (using apache common pool):</p>
  
  <pre><code>JedisPoolConfig poolConfig = new JedisPoolConfig();
  poolConfig.setTestOnBorrow(true);
  poolConfig.setTestOnReturn(true);
  poolConfig.setMaxIdle(400);
  
  // Tests whether connections are dead during idle periods
  poolConfig.setTestWhileIdle(true);
  poolConfig.setMaxTotal(400);
  
  // configuring it for some good max value so that timeout don't occur
  poolConfig.setMaxWaitMillis(120000);
  </code></pre>
  
  <p>So far with these setting I'm not facing any issues in terms of reliability (I can always get the Jedis connection whenever I want), but I am seeing a certain lag with Jedis performance.</p>
  
  <p>Can any one suggest me some more optimization for achieving high performance?</p>