在集群上安装模块

Redis 堆栈

Redis Enterprise Software 附带多个模块。从版本 7.8.2 开始,Redis Enterprise Software 包括三个功能集,与不同的 Redis 数据库版本兼容。您可以从集群管理器 UI 中的集群模块> 中查看已安装的模块、其版本及其最低兼容的 Redis 数据库版本。

要使用其他模块或将现有模块升级到最新版本,您需要在集群上安装新的模块包。

警告:
  • 某些模块版本不支持也不推荐与 Redis Enterprise 一起使用。

  • 我们建议您在升级集群上的模块之前咨询 Redis 支持,尤其是在集群用于生产时。

获取打包的模块

要在 Redis Enterprise Software 集群上安装或升级模块,您需要一个模块包。

将模块添加到集群

使用以下方法之一将模块添加到 Redis Enterprise 集群中:

REST API 方法

要使用 REST API 将模块添加到集群:

  1. 将模块包复制到集群中的节点。

  2. 将模块添加到集群中,并使用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.

  3. 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 an error_code and description with more details.

Cluster Manager UI method

To add a module to the cluster using the Cluster Manager UI:

  1. Go to Cluster > Modules.

  2. Select Upload module.

  3. Use the file browser to add the packaged module.

Next steps

RATE THIS PAGE
Back to top ↑