title: Redis replication and client-output-buffer-limit
body: <p>I am having a problem with redis replication that I can not figure out.  Master keeps hitting the client-output-buffer-limit.</p>
  
  <p><strong>Master Config:</strong></p>
  
  <pre><code># redis-cli -p 6380 config get client-output-buffer-limit
  1) "client-output-buffer-limit"
  2) "normal 0 0 0 slave 536870912 536870912 0 pubsub 33554432 8388608 60"
  </code></pre>
  
  <p><strong>Master Log:</strong></p>
  
  <pre><code>Client id=3014598 addr={{MASTER}} fd=6 name= age=217 idle=217 flags=S db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=3723 oll=4806 omem=581952061 events=rw cmd=psync scheduled to be closed ASAP for overcoming of output buffer limits.
  </code></pre>
  
  <p><strong>Master Info:</strong></p>
  
  <pre><code># redis-cli -p 6380 info
  role:master
  connected_slaves:1
  slave0:ip={{SLAVE_IP}},port=6380,state=wait_bgsave,offset=0,lag=0  //  stays on wait_bgsave
  </code></pre>
  
  <p><strong>Slave Info:</strong></p>
  
  <pre><code>role:slave
  master_host:{{MASTER_IP}}
  master_port:6380
  master_link_status:down
  master_last_io_seconds_ago:-1
  master_sync_in_progress:1
  </code></pre>
  
  <p>Redis version: 3.0.2</p>
  
  <p>Database size: ~21GB
  Master is a 30GB Ram EC2 instance
  Slave is a 60GB Ram EC2 instance</p>
  
  <p>The slave is connecting, however the master always times-out no matter how high I set the buffers.  The master is almost always in the wait_bgsave state.  </p>
  
  <p>Can anybody provide any insight into why this might be happening?</p>