mhassan1 / redis-memory-server

Redis Server for testing. The server will allow you to connect your favorite client library to the Redis Server and run parallel integration tests isolated from each other.
MIT License
75 stars 9 forks source link

Lightweight cluster mode usage #9

Closed kristof-kasa closed 8 months ago

kristof-kasa commented 2 years ago

Hey!

First of all, thank you for this amazing lib!

My question is:

Is there any way to use this in cluster mode? I don't want multiple nodes, just to test out a few simple things with Redis.Cluster.

Trying to search for binaries that might support it by default, but so far no luck.

mhassan1 commented 2 years ago

The Redis documentation says:

Note that the minimal cluster that works as expected must contain at least three master nodes.

That sounds a bit complicated for this library to set up, but I am open to ideas. It assumes a single spawned process, today.

kristof-kasa commented 2 years ago

I will start playing around with it too see how complicated it will be :D my local docker setup for redis cluster is pretty fast with the startup time. I will try to reproduce the same. As I see I should modify things here

itpropro commented 1 year ago

Hey @kristof-kasa, did you had any success with your tests? Would love to use this library for some cluster tests as well.