fix(scheduler): 修复闲时压缩crm重点表调度到A4集群

This commit is contained in:
v-zhangjc9
2024-10-14 14:21:53 +08:00
parent 8c6e0aa353
commit 3f8652395c
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ public class DistributeScheduleJob extends BaseScheduleJob {
if (cluster.isPresent() && cluster.get().available(metadata)) {
return cluster.get().queue();
} else {
logger.warn(StrUtil.format("{} cluster not found or busy"));
logger.warn(StrUtil.format("{} cluster not found or busy", recommendCluster));
}
}
for (Cluster cluster : clusters) {

View File

@@ -117,7 +117,7 @@ public class ScheduleHelper {
// 统一在这里覆盖特定请求
// CRM重点表独占A4集群
if (TagsHelper.existsTag(meta.getTags(), Constants.TAGS_CRM_FOCUS)) {
finalMetadata.put(Constants.SCHEDULE_FORCE, Constants.CLUSTER_A4);
finalMetadata.put(Constants.SCHEDULE_RECOMMEND, Constants.CLUSTER_A4);
} else {
finalMetadata.put(Constants.SCHEDULE_ESCAPE, Constants.CLUSTER_A4);
}