From 3d912041fe60c391b91b3c2a76fd87e30516a9f0 Mon Sep 17 00:00:00 2001 From: WytheLi Date: Wed, 13 Nov 2024 15:32:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(redis):=20redis=E5=8D=95=E6=8D=AE=E8=81=94?= =?UTF-8?q?=E8=B0=83=20#7872=20#=20Reviewed,=20transaction=20id:=2023745?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/ticket/builders/redis/redis_cluster_ins_migrate.py | 2 +- .../backend/ticket/builders/redis/redis_single_ins_migrate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbm-ui/backend/ticket/builders/redis/redis_cluster_ins_migrate.py b/dbm-ui/backend/ticket/builders/redis/redis_cluster_ins_migrate.py index 6daace9b58..1ed0227402 100644 --- a/dbm-ui/backend/ticket/builders/redis/redis_cluster_ins_migrate.py +++ b/dbm-ui/backend/ticket/builders/redis/redis_cluster_ins_migrate.py @@ -46,7 +46,7 @@ def format_ticket_data(self): class RedisClusterInstanceApplyResourceParamBuilder(RedisUpdateApplyResourceParamBuilder): def format(self): # 在跨机房亲和性要求下,接入层proxy的亲和性要求至少分布在2个机房 - self.patch_info_affinity_location(roles=["spider_ip_list"]) + self.patch_info_affinity_location(roles=["backend_group"]) @builders.BuilderFactory.register(TicketType.REDIS_CLUSTER_INS_MIGRATE) diff --git a/dbm-ui/backend/ticket/builders/redis/redis_single_ins_migrate.py b/dbm-ui/backend/ticket/builders/redis/redis_single_ins_migrate.py index 0d22398a12..c0f52558e6 100644 --- a/dbm-ui/backend/ticket/builders/redis/redis_single_ins_migrate.py +++ b/dbm-ui/backend/ticket/builders/redis/redis_single_ins_migrate.py @@ -46,7 +46,7 @@ def format_ticket_data(self): class RedisSingleInstanceApplyResourceParamBuilder(RedisUpdateApplyResourceParamBuilder): def format(self): # 在跨机房亲和性要求下,接入层proxy的亲和性要求至少分布在2个机房 - self.patch_info_affinity_location(roles=["spider_ip_list"]) + self.patch_info_affinity_location(roles=["backend_group"]) @builders.BuilderFactory.register(TicketType.REDIS_SINGLE_INS_MIGRATE)