I am currently working on running a deep learning model using Redis server, and for its optimisation, I was wondering if there is a way to run Redis server on multiple nodes, since redis is single threaded.
Asked
Active
Viewed 1,343 times
0
-
I guess there's nothing stopping you from running 2 instances of Redis on two different ports and dividing your data some convenient way across the two. – Mark Setchell Mar 27 '20 at 15:05
-
Have you looked into Redis Cluster - https://redis.io/topics/cluster-tutorial? – matt freake Mar 27 '20 at 20:56
-
You may also want to have a look at https://oss.redislabs.com/redisai/ - a module for AI/DL stuff. – Itamar Haber Mar 28 '20 at 12:50
1 Answers
0
You can definitely run multiple instances of Redis on one node, just use:
redis-server --port 6380
You can then test with redis-cli -p 6380
. Avoid running more instances than cores.
You can split your workload by application scopes. Or you can use Redis Cluster. It is a common pattern to use one node to run both a master instance and a replica instance of another master.
Be sure to look at hash tags for cases where you need multi-key operations.

LeoMurillo
- 6,048
- 1
- 19
- 34
-
However, i'm looking for a way to run Redis server on a multi-node environment i.e. a cluster. Can you tell me how to do it? – Jasleen Kaur Mar 30 '20 at 12:31
-
That's what you do with Redis Cluster https://redis.io/topics/cluster-tutorial – LeoMurillo Mar 30 '20 at 23:43
-
I'm unable to figure out how to incorporate my tensorflow code to run on Redis Cluster. – Jasleen Kaur Mar 31 '20 at 13:22