Skip to content

Commit 1821e96

Browse files
authored
Modify wlm logging message (#18712)
Signed-off-by: Ruirui Zhang <[email protected]>
1 parent b609a50 commit 1821e96

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1818
- Add last index request timestamp columns to the `_cat/indices` API. ([10766](https://github.com/opensearch-project/OpenSearch/issues/10766))
1919
- Introduce a new pull-based ingestion plugin for file-based indexing (for local testing) ([#18591](https://github.com/opensearch-project/OpenSearch/pull/18591))
2020
- Add support for search pipeline in search and msearch template ([#18564](https://github.com/opensearch-project/OpenSearch/pull/18564))
21+
- [Workload Management] Modify logging message in WorkloadGroupService ([#18712](https://github.com/opensearch-project/OpenSearch/pull/18712))
2122
- Add BooleanQuery rewrite moving constant-scoring must clauses to filter clauses ([#18510](https://github.com/opensearch-project/OpenSearch/issues/18510))
2223
- Add functionality for plugins to inject QueryCollectorContext during QueryPhase ([#18637](https://github.com/opensearch-project/OpenSearch/pull/18637))
2324
- Add support for non-timing info in profiler ([#18460](https://github.com/opensearch-project/OpenSearch/issues/18460))

server/src/main/java/org/opensearch/wlm/WorkloadGroupService.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,15 @@ public void rejectIfNeeded(String workloadGroupId) {
288288
if (threshold < lastRecordedUsage) {
289289
reject = true;
290290
reason.append(resourceType)
291-
.append(" limit is breaching for ENFORCED type WorkloadGroup: (")
291+
.append(" limit is breaching for workload group ")
292+
.append(workloadGroup.get_id())
293+
.append(", ")
292294
.append(threshold)
293295
.append(" < ")
294296
.append(lastRecordedUsage)
295-
.append("). ");
297+
.append(", wlm mode is ")
298+
.append(workloadGroup.getResiliencyMode())
299+
.append(". ");
296300
workloadGroupState.getResourceState().get(resourceType).rejections.inc();
297301
// should not double count even if both the resource limits are breaching
298302
break;

0 commit comments

Comments
 (0)