Skip to content

Instantly share code, notes, and snippets.

@amgorb
Created February 20, 2017 16:19
Show Gist options
  • Save amgorb/c38a77599c1f30e853cc9babf596d634 to your computer and use it in GitHub Desktop.
Save amgorb/c38a77599c1f30e853cc9babf596d634 to your computer and use it in GitHub Desktop.
redis replication scheduled to be closed ASAP for overcoming of output buffer limits.
If you redis initial replication fails with error like
"5101:M 20 Feb 18:14:29.130 # Client id=4500196 addr=71.459.815.760:43872 fd=533 name= age=127 idle=127 flags=S db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=13997 oll=1227 omem=192281275 events=rw cmd=psync scheduled to be closed ASAP for overcoming of output buffer limits.
means that slave buffer is not enough and you should increase it (at master!) with command like
redis-cli config set client-output-buffer-limit "slave 836870912 836870912 0"
more info: https://redis.io/topics/clients
@d0zingcat
Copy link

In my case, I found that I need to set repl-backlog-size 512mb as well(RDB file size is around 65 GB) in addition to set client-output-buffer-limit "slave 836870912 836870912 0"

@vanso-hubsi
Copy link

vanso-hubsi commented Oct 10, 2024

and in 2024 still more lifes saved ๐Ÿ‘๐Ÿ˜‰

@pratik4599
Copy link

some times rdb file size is around 3000mb, most of the time below 1000 mb

current soft and hard limits are 64 and 256 mb

how much should i set client-output-buffer-limit ?

TIA.

@dbdbdeep90
Copy link

and in 2024 still more lifes saved too

@BestAwperEver
Copy link

it's 2025 already, and lives are still being saved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment