-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Support adding config while creating a new DMap #169
Comments
I'm so sorry for my late response. I considered this previously but I was doubtful about the feature. Olric is a shared-nothing system. Configuration inconsistencies between nodes and API calls may lead to subtle bugs. I usually follow Hazelcast to get inspired. It seems that the guys at Hazelcast don't allow setting/overriding Here is some doc:
I like the idea of declaring DMap configuration at the time of initialization, but it can be dangerous. What do you think? By the way, I wonder how you use Olric in your environment. What is your use case? Does it fix the problems? I would like to hear more if you can publicly talk about it. |
To clarify, any changes to |
@derekperkins Currently, updating the configuration of a running Olric instance isn't possible by design but you can modify Currently, updating the configuration may lead to subtle bugs even if we deliberately build that feature because there is no golden source of truth in Olric's design. It's a loosely-coupled, shared-nothing system. Configuration differences may lead to undefined behaviors. See this: https://github.com/buraksezer/olric/blob/master/internal/dmap/dmap.go#L96 |
Like the original poster, my intent is not to change the configuration of a running cluster, it's just moving where that configuration happens from an api perspective. In our case, we are instantiating |
Currently, as I see it, there is no way to pass config while creating a new DMap. That is,
db.NewDMap(name string)
uses the config specified while creating a new Olric instance or from map of custom DMap config.For my usecase, I want to able to pass config at the DMap level instead of at Olric instance level like so:
Am I missing something here? Is this something I could help add?
The text was updated successfully, but these errors were encountered: