feat(worker): expose task completion rate in worker heartbeat#16865
Merged
Conversation
Add a per-Worker RateMeter that derives the task completion rate (tasks/sec) from the existing worker.ended.count counter — EWMA-smoothed (ALPHA=0.3), sampled on each heartbeat and emitted as the worker.tasks.rate metric in the heartbeat set. No new Micrometer meter is registered; the rate is an operational figure for the Worker Group UI only.
Contributor
📄 OpenAPI Spec ChangesSpec generated with EE branch 24572a24573,24575
> endedRate:
> type: number
> format: double
24621a24625,24627
> totalEndedRate:
> type: number
> format: double🐋 Docker imagedocker run --pull=always --rm -it -p 8080:8080 --user=root -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp ghcr.io/kestra-io/kestra-pr:16865 server local🧪 Java Unit Tests
|
|||||||||||||||||||||
Contributor
Tests report quick summary:failed ❌ > tests: 6945, success: 6924, skipped: 20, failed: 1 (🔄 6945 executed, 📦 0 from cache)
Failed tests:worker > io.kestra.worker.senders.GrpcWorkerIOSenderTest > shouldRequeueAndRedeliverWhenSendFailsWithRetryableError() failed ❌ in 6.192Develocity build scan: https://develocity.kestra.io/s/pwwepivrfmvde Flaky tests report quick summary:success ✅ > tests: 13, success: 13, skipped: 0, failed: 0 unfold for details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a per-Worker RateMeter that derives the task completion rate (tasks/sec) from the existing worker.ended.count counter — EWMA-smoothed (ALPHA=0.3), sampled on each heartbeat and emitted as the worker.tasks.rate metric in the heartbeat set. No new Micrometer meter is registered; the rate is an operational figure for the Worker Group UI only.