为 Redis Enterprise Software 配置 AWS EC2 实例

在 Amazon Elastic Cloud Compute (EC2) 实例上安装和运行 Redis Enterprise Software 的注意事项。

Redis 企业软件

安装时有一些特殊的注意事项 以及在 Amazon Elastic Cloud Compute (EC2) 实例上运行 Redis Enterprise Software。

这些包括:

存储注意事项

AWS EC2 实例是短暂的,但您的持久性数据库存储应该 非。如果您需要数据库的持久存储位置, 存储必须位于实例外部。当您 设置实例,确保它具有大小合适的 EBS 支持的卷 连接。在实例上设置 Redis Enterprise Software 时,请确保 Persistence Storage 配置为使用此卷。

注意:

在实例上安装 Redis Enterprise 软件包后 在运行设置过程之前, 您必须给组redislabs对 EBS 卷的权限 从 OS 命令行界面 (CLI) 运行以下命令:

chown redislabs:redislabs /< ebs folder name>

Another feature that may be of importance to you is the use of Provisioned IOPS for EBS-backed volumes. Provisioned IOPS guarantee a certain level of disk performance. There are two features in Redis Enterprise Software where this feature could be critical to use:

  1. When using Auto Tiering
  2. When using AOF on every write and there is a high write load. In this case, the provisioned IOPS should be on the nodes used as replicas in the cluster.

Instance types

Choose an instance type that has (at minimum) enough free memory and disk space to meet the Redis Enterprise Software hardware requirements.

In addition, some instance types are optimized for EBS-backed volumes and some are not. If you are using persistent storage, you should use an instance type that is, especially if disk drain rate matters to your database implementation.

Security group configuration

When configuring the security group:

  • Define a custom TCP rule for port 8443 to allow web browser access to the Redis Enterprise Software Cluster Manager UI from the IP address range you use to access the Cluster Manager UI.
  • If you are using the DNS resolving option with Redis Enterprise Software, define a DNS UDP rule for port 53 to allow access to the databases' endpoints by using the DNS resolving mechanism.
  • To create a cluster that has multiple nodes all running as instances on AWS, you need to define a security group that has an All TCP rule for all ports, 0 - 65535, and add it to all instances that are part of the cluster. This ensures that all nodes are able to communicate with each other. To limit the number of open ports, you can open only the ports used by Redis Enterprise Software.

After successfully launching the instances:

  1. Install Redis Enterprise Software from the Linux package or AWS AMI.
  2. Set up the cluster.
RATE THIS PAGE
Back to top ↑