安装 RedisGears
Redis 堆栈 |
---|
在使用 RedisGears 之前,您必须在 Redis Enterprise 集群上安装 RedisGears 模块。
最低要求
- Redis Enterprise 6.0.12 或更高版本
- 群集已设置,并且所有节点都已加入群集
安装 RedisGears
如果您的集群使用 Redis Enterprise v6.0.12 或更高版本,并且可以访问互联网,则只需下载 RedisGears 包即可。它在在线安装期间自动获取 Python 和 JVM 插件等依赖项。
离线安装需要您手动将依赖项上传到主节点。
安装 RedisGears 和依赖项
-
从 Redis Enterprise 下载中心下载 RedisGears 软件包。
注意:要离线安装 RedisGears v1.2 及更高版本,您还需要下载适用于 Python 和 Java 的 RedisGears 依赖项包。
对于 RedisGears v1.0,您只需要 Python 依赖项包。 -
将 RedisGears 包上传到集群中的节点。
-
仅对于脱机安装,请将依赖项复制到主节点。
注意:除非您的集群无法访问 Internet,否则请跳过此步骤。-
对于版本 7.2.4 及更高版本,请将依赖项复制到
$modulesdatadir/rg/<version-integer>/<OS_name>/<architecture>/deps/
:cp redisgears-jvm.<OS>.<version>.tgz $modulesdatadir/rg/<version-integer>/<OS_name>/<architecture>/deps/
-
For versions 6.4.2 and earlier, copy the dependencies to
$modulesdatadir/rg/<version-integer>/deps/
:cp redisgears-jvm.<OS>.<version>.tgz $modulesdatadir/rg/<version-integer>/deps/
Replace these fields with your own values:
-
<OS>
: the operating system running Redis Enterprise -
<version>
: the RedisGears version(x.y.z)
-
<version-integer>
: the RedisGears version as an integer, calculated as(x*10000 + y*100 + z)
For example, the
<version-integer>
for RedisGears version 1.2.5 is 10205. -
<OS_name>
: the operating system's name -
<architecture>
: the node's architecture
-
-
Add RedisGears to the cluster with a
POST
request to the primary node's/v2/modules
REST API endpoint:POST https://[host][:port]/v2/modules {"module=@/tmp/redisgears.<OS>.<version>.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.
After the install is complete, RedisGears will appear in the list of available modules on the settings and create database pages of the Redis Enterprise admin console.
Enable RedisGears for a database
After installation, create a new database and enable RedisGears:
Uninstall RedisGears
To uninstall RedisGears, make a DELETE
request to the /v2/modules
REST API endpoint.
On this page