Auto Tiering 快速入门
快速开始使用 Auto Tiering,使用闪存创建集群和数据库。
Redis 企业软件 |
---|
本页将指导您快速设置具有单个节点的 Auto Tiering,以便进行测试和演示。
对于生产环境,您可以在 安装和设置 部分找到更详细的安装说明。
使用 Auto Tiering 设置 Redis Enterprise Software 集群的步骤 具有单个节点的是:
- 安装 Redis 企业软件或在 Docker 中运行它 容器。
- 使用 Auto Tiering 设置 Redis Enterprise Software 集群。
- 在启用 Auto Tiering 的情况下创建新数据库。
- 连接到您的新数据库。
安装 Redis Enterprise Software
裸机、VM、云实例
要在裸机、虚拟机或实例上安装:
-
从 Redis Enterprise 下载中心下载二进制文件。
-
将二进制文件上传到基于 Linux 的作系统。
-
提取图像:
tar -vxf <downloaded tar file name>
-
After the
tar
command completes, you can find a newinstall.sh
script in the current directory:sudo ./install.sh -y
Docker-based installation
For testing purposes, you can run a Redis Enterprise Software
Docker container on Windows, MacOS, and Linux.
docker run -d --cap-add sys_resource --name rp -p 8443:8443 -p 12000:12000 redislabs/redis:latest
Prepare and format flash memory
After you install Redis Enterprise Software, use the prepare_flash
script to prepare and format flash memory:
sudo /opt/redislabs/sbin/prepare_flash.sh
This script finds unformatted disks and mounts them as RAID partitions in /var/opt/redislabs/flash
.
To verify the disk configuration, run:
sudo lsblk
Set up a cluster and enable Auto Tiering
-
Direct your browser to https://localhost:8443
on the host machine to
see the Redis Enterprise Software Cluster Manager UI.
Note:
Depending on your browser, you may see a certificate error.
Choose "continue to the website" to go to the setup screen.
-
Select Create new cluster.
-
Set up account credentials for a cluster administrator, then select Next to proceed to cluster setup.
-
Enter your cluster license key if you have one. Otherwise, the cluster uses the trial version.
-
Provide a cluster FQDN such as mycluster.local
, then select Next.
-
In the Storage configuration section, turn on the Enable flash storage toggle.
-
Select Create cluster.
-
Select OK to confirm that you are aware of the replacement of the HTTPS TLS
certificate on the node, and proceed through the browser warning.
Create a database
On the Databases screen:
-
Select Quick database.
-
Verify Flash is selected for Runs on.
-
Enter 12000
for the endpoint Port number.
-
(Optional) Select Full options to see available alerts.
-
Select Create.
You now have a database with Auto Tiering enabled!
Connect to your database
After you create the database, you can connect to it and store data. See Test client connection for connection options and examples.
Next steps
To see the true performance and scale of Auto Tiering, you must tune your I/O path and set the flash path to the mounted path of SSD or NVMe flash memory as that is what it is designed to run on. For more information, see Auto Tiering.
On this page