Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

tobi-laa
Copy link

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.

@codemonstur
Copy link
Owner

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.

@tobi-laa
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants