Skip to content

Commit

Permalink
feat(mongodb): mongos自愈,mongo实例下架 TencentBlueKing#7010
Browse files Browse the repository at this point in the history
  • Loading branch information
yyhenryyy committed Oct 17, 2024
1 parent 3ff55ea commit 98895ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dbm-ui/backend/db_services/redis/autofix/bill.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ def generate_autofix_ticket(fault_clusters: QuerySet):
cluster.immute_domain, redis_proxies, redis_slaves
)
)
if mongos_list or mongod_list:
mongo_create_ticket(cluster, cluster_ids, mongos_list, mongod_list)
return
create_ticket(cluster, cluster_ids, redis_proxies, redis_slaves)
mongo_create_ticket(cluster, cluster_ids, mongos_list, mongod_list)


def create_ticket(cluster: RedisAutofixCore, cluster_ids: list, redis_proxies: list, redis_slaves: list):
Expand Down

0 comments on commit 98895ed

Please sign in to comment.