扩缩实例
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面介绍了如何扩缩 Memorystore for Redis 集群实例。实例容量由实例中的分片数量决定。因此,如需扩缩实例,您必须更改实例的分片数量。如需详细了解实例在伸缩期间的行为,请参阅关于实例伸缩。
扩缩分片数量
控制台
转到 Google Cloud 控制台中的 Memorystore for Redis 集群页面。
Memorystore for Redis 集群
点击您的集群 ID。
在配置部分中,点击分片旁边的铅笔图标。
在分片下输入所需的分片数。
点击更新集群按钮。
gcloud
如需增加或减小实例的大小,请运行 update
命令:
gcloud alpha redis clusters update INSTANCE_ID \
--region=REGION_ID \
--shard-count=SHARD_COUNT
请替换以下内容:
例如:
gcloud alpha redis clusters update my-instance \
--region=us-central1 \
--shard-count=8
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-06-15。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]