You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Redis DB
Your two Redis-server processes must use different PID files and different working directories, must listen for connections on different TCP ports, and one of them (the slave) will most likely have a 'slaveof' parameter in its config file. The pid file location is the 'pidfile' parameter, the working directory is the 'dir' parameter, and the TCP port is the 'port' parameter in the config file.
This means your two processes must have have different config files. Different config files on Linux/Unix servers means a different command to launch the processes (the config file is specified as an argument to the command that invokes redis-server), so you need two start scripts or systemd config files.
I have no experience with Windows server, so I don't know how to do it on Windows (or even if it's possible).
NIKHIL NARAYAN Khetan
unread,
May 20, 2017, 2:55:44 AM5/20/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Redis DB
Hi Rudra,
You can setup both the master and slave in single server by running the instances on different ports and having different pidfiles.
However, I would recommend having them on different server to guarantee availability of data if a machine goes down.