扩缩 Redis 实例
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页介绍如何扩缩 Memorystore for Redis 实例。如需详细了解实例在扩缩期间的行为,请参阅实例扩缩行为。
扩缩实例的最佳做法
建议您先exporting实例数据,然后再扩缩您的操作。
对于标准层级实例,为提高扩缩操作的速度和可靠性,请在低实例流量期间扩缩实例。如需了解如何监控实例流量,请参阅监控 Redis 实例。
在缩减标准层级实例的容量时,选择的大小必须大于存储的数据量,否则扩缩将失败。
- 例如,如果您有一个存储了 5.5 GB 数据的 10 GB 实例,则可以将该实例的大小调整为至少 6 GB。您可以在 Google Cloud 控制台中实例的详情页面上查看实例使用的存储空间容量。
实例扩缩说明
控制台
- 转到 Google Cloud 控制台中的 Memorystore for Redis 页面。
Memorystore for Redis
- 点击要调整大小的实例的实例 ID。
- 点击修改。
- 在容量下,在字段中输入新大小以更新实例的容量。
- 点击保存。
gcloud
输入以下命令,将 variables 替换为适当的值:
gcloud redis instances update instance-id --region=region-id --size=size
其中:
- instance-id 是实例 ID。
- region-id 是地区 ID。
- size 是所需的实例大小(以吉比字节 (GiB) 为单位)。
例如:
gcloud redis instances update myinstance --region=us-central1 --size=100
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-11。
[{
"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":"其他"
}]