You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Module path/to/module/module.so initialization failed. Module not loaded" when cluster mode enabled #25
When cluster mode is enabled in the config file like so: port 6379 cluster-enabled yes cluster-config-file nodes.conf cluster-node-timeout 5000 appendonly yes loadmodule /path/RediSearch/src/module.so
I get the error "Module path/to/module/module.so initialization failed. Module not loaded".
The module however loads fine in standalone mode
Am I doing something wrong? Is there a special configuration for cluster mode?
Hi. I've never tried the module in cluster mode, I can check. Cluster support is in the near future roadmap but not supported yet.
It should be possible to use the module in cluster mode, given that: 1. you name the index with curly braces, i.e. IDX.CREATE idx{foo} ..... Since it generates keys that have the prefix of the index name, the index name must be or contain a sharding key.
and 2. All document ids need to contain curly braces that match the index's curly braces, otherwise you will get sharding violations.
Ok, after a bit of research, it turns out that denying cluster mode on even one command in a module, prevents it from being loaded in cluster mode. I'm not sure if that's the desired behavior, and I've asked antirez about it.
In the mean time I'm keeping this issue open as a reminder to disable the cluster "protection" and test the module in cluster situations.
Activity
dvirsky commentedon Feb 4, 2017
Hi. I've never tried the module in cluster mode, I can check. Cluster support is in the near future roadmap but not supported yet.
It should be possible to use the module in cluster mode, given that: 1. you name the index with curly braces, i.e.
IDX.CREATE idx{foo} ..... Since it generates keys that have the prefix of the index name, the index name must be or contain a sharding key.and 2. All document ids need to contain curly braces that match the index's curly braces, otherwise you will get sharding violations.
dvirsky commentedon Feb 5, 2017
Ok, after a bit of research, it turns out that denying cluster mode on even one command in a module, prevents it from being loaded in cluster mode. I'm not sure if that's the desired behavior, and I've asked antirez about it.
In the mean time I'm keeping this issue open as a reminder to disable the cluster "protection" and test the module in cluster situations.
dvirsky commentedon Feb 6, 2017
BTW Seems like this is a bug in Redis itself, although in this case the module indeed should not be used in a cluster.
dvirsky commentedon Jun 6, 2017
Fixed in a previous version.
ashutoshtripathi commentedon May 30, 2018
Hi @dvirsky Can I use redisearch module in cluster mode now ? Because I am still facing the issue reported by @badnessJust
-Thanks
Replace C++ POC with Rust POC (#66)
refactor FullTermDocument* into term::Document term::Metadata term::b…
Merge pull request RediSearch#25 from RedisLabsModules/knn_by_id