在AWS Elasticache Redis中增加数据库数量是否可能?

huangapple go评论52阅读模式
英文:

Is it possible to increase the number of databases in AWS Elasticache Redis?

问题

默认情况下,它配置为具有16个数据库,但我需要增加这个数量,我不知道如何做。

如果有人知道如何做到这一点,我将非常感激,因为我在文档中没有找到相关信息。

更新

在参数组设置中,我找到了值的修改位置,但它说“数据库”不可修改,此外,在评论中Guy Royse(感谢回复)提到他怀疑它是否可以被修改。

参数组设置:

在AWS Elasticache Redis中增加数据库数量是否可能?

英文:

By default it is configured to have 16 databases, but I need to increase that number and I don't know how to do it.

If anyone has an idea how to do this I would greatly appreciate it since I have not found information in the documentation.

UPDATE:

In the parameter group settings I found where the values are modified, but it says that "databases" is not modifiable, also, in the comments Guy Royse (thanks for reply) mentions that he doubts that it can be modified

Parameter Group Settings:

在AWS Elasticache Redis中增加数据库数量是否可能?

答案1

得分: 1

不与任何缓存集群关联的情况下,您可以修改参数组中的 databases 数量。请参阅文档中的Redis特定参数页面

请注意,这只在创建新缓存集群时有效。您不能将现有缓存集群的参数组修改为具有不同 databases 值的新参数组。

要创建具有增加的Redis数据库数量的缓存集群:

  1. 创建一个新的参数组。例如,使用aws cli:
REGION=eu-west-1
NUM_OF_DBS=32
PARAM_GROUP_NAME=modify-databases
CACHE_PARAM_GRP_FAMILY=redis7

aws elasticache create-cache-parameter-group \
  --cache-parameter-group-name $PARAM_GROUP_NAME \
  --cache-parameter-group-family $CACHE_PARAM_GRP_FAMILY \
  --description "" \
  --region $REGION
  1. 修改 databases 参数的值
aws elasticache modify-cache-parameter-group \
  --cache-parameter-group-name $PARAM_GROUP_NAME \
  --parameter-name-values "ParameterName=databases,  ParameterValue=$NUM_OF_DBS" \
  --region $REGION
  1. 创建一个新的Redis集群并将其与新的缓存参数组关联。
英文:

You can modify the number of databases in the parameter group if the parameter group is not associated with any cache clusters. See the Redis-specific parameters page in the documentation.

Note this will only work when you create a new cache cluster. You cannot modify the parameter group of an existing cache cluster to a new parameter group with a different databases value.

To create a cache cluster with an increased number of Redis databases:

  1. Create a new parameter group. For example, using the aws cli:
REGION=eu-west-1
NUM_OF_DBS=32
PARAM_GROUP_NAME=modify-databases
CACHE_PARAM_GRP_FAMILY=redis7

aws elasticache create-cache-parameter-group \
  --cache-parameter-group-name $PARAM_GROUP_NAME \
  --cache-parameter-group-family $CACHE_PARAM_GRP_FAMILY \
  --description "" \
  --region $REGION
  1. Modify the value of the databases parameter
aws elasticache modify-cache-parameter-group \
  --cache-parameter-group-name $PARAM_GROUP_NAME \
  --parameter-name-values "ParameterName=databases,  ParameterValue=$NUM_OF_DBS" \
  --region $REGION
  1. Create a new Redis cluster and associate it with the new cache parameter group

huangapple
  • 本文由 发表于 2023年2月23日 23:14:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/75546738.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定