Skip to content

Commit

Permalink
feat(redis): Cache增加32G方案 #3634
Browse files Browse the repository at this point in the history
  • Loading branch information
xiepaup authored and iSecloud committed Mar 21, 2024
1 parent 835c5de commit 71a7016
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbm-ui/backend/db_services/dbresource/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ def calc_cluster_shard_num(self):
avaiable_specs.append(self.specs[spec_cnt - 1])
if spec_cnt > 2:
avaiable_specs.append(self.specs[spec_cnt - 2])
if spec_cnt > 3:
avaiable_specs.append(self.specs[spec_cnt - 3])

for spec_new in avaiable_specs:
# 一定要保证集群总分片数是机器组数的整数倍,并且单机分片数需要取整,取偶
Expand Down

0 comments on commit 71a7016

Please sign in to comment.