This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git
The following commit(s) were added to refs/heads/master by this push:
new 247583be0b Reduce noisy log levels in health checker and batch queue
(#13735)
247583be0b is described below
commit 247583be0bf1730941c65af5dc7e330a46ad4656
Author: 吴晟 Wu Sheng <[email protected]>
AuthorDate: Mon Mar 9 11:28:13 2026 +0800
Reduce noisy log levels in health checker and batch queue (#13735)
- Health check: log at debug when healthy, warn when unhealthy
(was info on every request regardless of status)
- BatchQueue rebalance: downgrade to debug (routine operation)
---
.../oap/server/health/checker/provider/HealthCheckerHttpService.java | 3 ++-
.../apache/skywalking/oap/server/library/batchqueue/BatchQueue.java | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git
a/oap-server/server-health-checker/src/main/java/org/apache/skywalking/oap/server/health/checker/provider/HealthCheckerHttpService.java
b/oap-server/server-health-checker/src/main/java/org/apache/skywalking/oap/server/health/checker/provider/HealthCheckerHttpService.java
index 356d76a79e..83d8785d6e 100644
---
a/oap-server/server-health-checker/src/main/java/org/apache/skywalking/oap/server/health/checker/provider/HealthCheckerHttpService.java
+++
b/oap-server/server-health-checker/src/main/java/org/apache/skywalking/oap/server/health/checker/provider/HealthCheckerHttpService.java
@@ -35,11 +35,12 @@ public class HealthCheckerHttpService {
@Get("/healthcheck")
public HttpResponse healthcheck(ServiceRequestContext ctx, HttpRequest
req) throws Exception {
final var status = healthQueryService.checkHealth();
- log.info("Health status: {}", status);
if (status.getScore() == 0) {
+ log.debug("Health status: {}", status);
return HttpResponse.of(HttpStatus.OK);
}
+ log.warn("Health status: {}", status);
return HttpResponse.of(HttpStatus.SERVICE_UNAVAILABLE);
}
}
diff --git
a/oap-server/server-library/library-batch-queue/src/main/java/org/apache/skywalking/oap/server/library/batchqueue/BatchQueue.java
b/oap-server/server-library/library-batch-queue/src/main/java/org/apache/skywalking/oap/server/library/batchqueue/BatchQueue.java
index b1d16e6ad8..372d9fc2ed 100644
---
a/oap-server/server-library/library-batch-queue/src/main/java/org/apache/skywalking/oap/server/library/batchqueue/BatchQueue.java
+++
b/oap-server/server-library/library-batch-queue/src/main/java/org/apache/skywalking/oap/server/library/batchqueue/BatchQueue.java
@@ -807,7 +807,7 @@ public class BatchQueue<T> {
// Rebuild assignedPartitions from ownership array
this.assignedPartitions = buildAssignmentsFromOwner(owner,
taskCount, partitionCount);
- log.info("BatchQueue[{}]: rebalanced {} partitions", name,
moves.size());
+ log.debug("BatchQueue[{}]: rebalanced {} partitions", name,
moves.size());
} catch (final Throwable t) {
log.error("BatchQueue[{}]: rebalance error", name, t);
}