升级实例的 Redis 版本
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面介绍如何升级 Memorystore for Redis 实例的 Redis 版本。如需查看可用版本的列表,请参阅支持的版本。如需详细了解升级操作期间的实例行为,请参阅版本升级行为。
升级实例的 Redis 版本的最佳做法
建议您在运行版本升级操作之前exporting实例数据。
请注意,升级实例是不可逆转的。您无法降级 Memorystore for Redis 实例的 Redis 版本。
对于标准层级实例,要提高版本升级操作的速度和可靠性,请在低实例流量期间升级实例。如需了解如何监控实例流量,请参阅监控 Redis 实例。
升级实例版本
控制台
- 转到 Google Cloud 控制台中的 Memorystore for Redis 页面
Memorystore for Redis
- 点击要升级的实例的 ID。
- 在配置部分中,点击 Redis 版本旁边的升级
- 点击对话框中的升级按钮以升级实例
gcloud
要升级实例的 Redis 版本,请输入以下命令,并将 variables 替换为适当的值:
gcloud redis instances upgrade instance-id --redis-version=version --region=region
其中:
- instance-id 是实例 ID
- version 是您要升级到的版本:
- 可接受的值包括:
redis_4_0
、redis_5_0
、redis_6_x
、redis_7_0
和 redis_7_2
- region 是预配实例的区域。
例如:
gcloud redis instances upgrade myinstance --redis-version=redis_7_0 --region=us-central1
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-04-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":"其他"
}]