在集群上安装模块
Redis 堆栈 |
---|
Redis Enterprise Software 附带多个模块。从版本 7.8.2 开始,Redis Enterprise Software 包括三个功能集,与不同的 Redis 数据库版本兼容。您可以从集群管理器 UI 中的集群模块> 中查看已安装的模块、其版本及其最低兼容的 Redis 数据库版本。
要使用其他模块或将现有模块升级到最新版本,您需要在集群上安装新的模块包。
-
某些模块版本不支持也不推荐与 Redis Enterprise 一起使用。
-
我们建议您在升级集群上的模块之前咨询 Redis 支持,尤其是在集群用于生产时。
获取打包的模块
要在 Redis Enterprise Software 集群上安装或升级模块,您需要一个模块包。
-
对于 Redis 下载中心未提供的官方 Redis 模块版本,请联系支持人员。
-
对于自定义打包的模块,请从开发人员处下载自定义打包的模块。
将模块添加到集群
使用以下方法之一将模块添加到 Redis Enterprise 集群中:
-
REST API
POST
请求发送到/v2/modules
端点 -
Redis Enterprise Cluster Manager 用户界面
-
对于 RedisGears,请按照以下安装说明进行作
REST API 方法
要使用 REST API 将模块添加到集群:
-
将模块包复制到集群中的节点。
-
将模块添加到集群中,并使用
POST
请求发送到/v2/modules
端点:POST https://[host][:port]/v2/modules "module=@/tmp/redisearch.Linux-ubuntu16.04-x86_64.2.2.6.zip"
Here, the module parameter specifies the full path of the module package and must be submitted as form-data. In addition, the package must be available and accessible to the server processing the request.
-
If the module installation succeeds, the
POST
request returns a JSON object that represents the new module. If it fails, it may return a JSON object with anerror_code
anddescription
with more details.
Cluster Manager UI method
To add a module to the cluster using the Cluster Manager UI:
-
Go to Cluster > Modules.
-
Select Upload module.
-
Use the file browser to add the packaged module.
Next steps
- Create a database and enable the new module.
- Upgrade a module to the new version.
On this page