Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Syncing issue master slave #396

Closed
RajivKurian opened this Issue · 3 comments

2 participants

@RajivKurian

I have a master running on port 6379 and slave on port 6380, both on the same machine. The master is not set to use any kind of auth. The slave is set to take snapshots but the master is not.

The relevant configs are :

Master:
################################# REPLICATION #################################

Master-Slave replication.

slaveof

masterauth

slave-serve-stale-data yes

repl-ping-slave-period 10

repl-timeout 60

SLAVE CONFIG:
save 300 1
save 200 10
save 60 10000

rdbcompression yes

The filename where to dump the DB

dbfilename session-slave.rdb

The working directory.

dir /home/ubuntu/redis-session/data-dump

################################# REPLICATION #################################
slaveof some-hostname-I-cannot-share 6379

masterauth

slave-serve-stale-data yes
repl-ping-slave-period 10
repl-timeout 120

On the slave logs - this is what I see - I have tried stopping both slave and master and then trying to restart

Connecting to MASTER...
[21674] 21 Mar 20:47:20 * MASTER <-> SLAVE sync started
[21674] 21 Mar 20:47:20 * Non blocking connect for SYNC fired the event.
[21674] 21 Mar 20:47:21 # I/O error reading bulk count from MASTER: Operation now in progress

Don't know what the problem is. Any help ? Thanks in advance.

@RajivKurian

sorry for the weird font size change don't know how that happened

@RajivKurian

never mind I figured it out. This is a bit odd though. My master has a working directory that it does not have access to (/var/...) but I have commented out all the save configuration lines so that it does not save to disk at all. The master was for some reason still trying to access the working directory and this was causing the sync to fail

@badboy

Just so you know:

  1. Wrap your code in ``` so it's displayed correctly without markdown interpretation
  2. The master needs to write an rdb file which gets synced to the slave even if rdb saving is otherwise disabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.