embedded-redis icon indicating copy to clipboard operation
embedded-redis copied to clipboard

Allow sharded cluster with custom directory/executable provider to be restarted

Open tobi-laa opened this issue 1 year ago • 2 comments

Problem description

If a sharded cluster is started in a custom directory, stopped and then restarted again, it fails. The underlying reason appears to be that the files specified via the cluster-config-file directive cannot be reused.

Proposed solution

When a RedisInstance is stopped, its redis.conf is parsed and all cluster-config-file directives looked up. All of these cluster config files are resolved against the folder the Redis executable resides in and, if present, are deleted.

tobi-laa avatar Mar 28 '24 22:03 tobi-laa

I like what it does but I don't like the way it does it. Not that there is anything immediately wrong, it is just not my style. I've been wanting to work on this but I just can't seem to find the time. I hope you are not waiting for this to get done soon, I'm swamped.

codemonstur avatar Apr 21 '24 11:04 codemonstur

Thanks for the feedback :) I am not waiting for it to be done soon. We just stumbled over it at work but have a workaround.

If you have any specific ideas as to how you would tackle this bug I could offer to implement another solution to it - once you have the time for it, of course!

Have a nice Sunday

tobi-laa avatar Apr 21 '24 13:04 tobi-laa