fix(scheduler): 修复闲时压缩crm重点表调度到A4集群
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user