R
R
rizzli2020-02-27 17:39:09
linux
rizzli, 2020-02-27 17:39:09

Is it possible to have 2 Redis servers on the same host?

There was a need for two radish servers on the same machine. Ports, pid and config they had different. At first everything was ok, until 90% of the RAM was occupied and both servers began to see part of each other's memory.
I would like to know from knowledgeable people, my idea is initially vicious or could it still be implemented?

UPD: it turns out that both servers wrote to one RDB file.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2020-02-27
@dmtrrr

> both servers began to see part of each other's memory
This does not happen.
If you're writing a lot in Redis and memory is running low, then obviously you need to either write more memory or write less.
Obviously, if there are two Redis on the machine, then they will eat up memory faster than one.
Inside Redis, you can create different databases, why keep two different ones on the same machine is not clear.

A
Alexander Chernykh, 2020-02-27
@sashkets

multiinstance redis

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question