Skip to content

Adding set repl-syncio-timeout in config command#886

Closed
charsyam wants to merge 2 commits intoredis:unstablefrom
charsyam:repl_syncio_timeout
Closed

Adding set repl-syncio-timeout in config command#886
charsyam wants to merge 2 commits intoredis:unstablefrom
charsyam:repl_syncio_timeout

Conversation

@charsyam
Copy link
Contributor

Adding repl-syncio-timeout in config Command.
regardless of any other issue. I think it is better to set timeout values.

redis 127.0.0.1:6379> config get repl-syncio-timeout
1) "repl-syncio-timeout"
2) "5"

and

redis 127.0.0.1:6379> config get repl-syncio-timeout
1) "repl-syncio-timeout"
2) "3"

@antirez
Copy link
Contributor

antirez commented Jan 19, 2013

Hello! I'm perplexed about the two additions, especially the one about freeMemoryIfNeeded().

  1. I agree that's an odd condition to set maxmemory on the slave side, however it is not entirely crazy. For instance I may have a farm of Redis instances used just for caching, and I want to use all the slaves to scale reads, and different slaves will have different amounts of installed memory. Right now it is possible while a bit strange, if I apply this change it will no longer be possible.

  2. About repl-syncio-timeout, I've the feeling this is not to be exposed to the user, because when this timeout is used we are not doing some kind of O(N) effort that depends on speed of disk or alike. If the master can't accept the connection in 5 seconds, well, we need to stop trying to replicate with it, because otherwise we block the slave.

At the same time exposing it in clear words to the user is hard, and there is little the user can do about this parameter. Even if your muster is so busy and ruined by load that it can't reply in 5 seconds most of the times, the slave will retry to connect and eventually it may succeed if the master works at all. Otherwise it is important for our slave to be able to disconnect to accept other commands and possibly to get reconfigured by a Redis Sentinel instance.

Thanks anyway! And have a good weekend. Closing.

@antirez antirez closed this Jan 19, 2013
sundb pushed a commit to sundb/redis that referenced this pull request Jul 28, 2025
redis#886)

If we modify aof-use-rdb-preamble in the middle of rewrite,
we may get a wrong aof base suffix. This is because the suffix
is concatenated by the main process afterwards, and it may be
different from the beginning.

We cache this value when we start the rewrite.

Signed-off-by: Binbin <[email protected]>
Signed-off-by: Ping Xie <[email protected]>
gabsow added a commit to gabsow/redis that referenced this pull request Sep 28, 2025
minchopaskal pushed a commit to minchopaskal/redis that referenced this pull request Oct 16, 2025
…actions/checkout-4.1.0

build(deps): bump actions/checkout from 4.0.0 to 4.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants