扩缩副本数量
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页介绍了如何扩缩实例使用的副本数量。
更新现有实例的副本数量
更新实例的副本数可让您启用副本、停用副本和更改副本数。
控制台
- 前往 Google Cloud 控制台中的 Memorystore for Redis Cluster 页面。
Memorystore for Redis Cluster
点击您的集群 ID。
在配置部分中,点击副本数旁边的铅笔图标。
从副本下拉菜单中选择所需的副本数。
点击更新集群按钮。
gcloud
如需更新副本数量,请运行 update
命令:
gcloud redis clusters update INSTANCE_ID \
--region=REGION_ID \
--replica-count=COUNT
替换以下内容:
- INSTANCE_ID 是 Memorystore for Redis Cluster 实例的 ID。
- REGION_ID 是实例所在的区域。
- COUNT 是实例的副本数(每个分片)。
可接受的值包括 0
、1
和 2
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-09-10。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-10。"],[],[],null,[]]