Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metric taskSlot/idle/count doesn't exclude disabled workers #16771

Open
jakubmatyszewski opened this issue Jul 22, 2024 · 1 comment
Open

Metric taskSlot/idle/count doesn't exclude disabled workers #16771

jakubmatyszewski opened this issue Jul 22, 2024 · 1 comment

Comments

@jakubmatyszewski
Copy link
Contributor

Affected Version

29.0.1

Description

I've noticed that metric taskSlot/idle/count that is part of TaskSlotCountStatsMonitor is not excluding slots from disabled workers.
I'm running overlord in httpRemote mode and it seems like this metric should account for it - it calls for getWorkersEligibleToRunTasks() which checks if the worker isEnabled(), but then when I connect to the middlemanager instance I get:

$ curl -X POST localhost:8091/druid/worker/v1/disable
{"druid-middlemanager-default-0.druid-middlemanager.druid-test.svc.cluster.local:8091":"disabled"}

$ curl -s localhost:8000/metrics | grep slot | grep .0
druid_middlemanager_worker_taskslot_total_count{category="__default_worker_category_",druid_service="druid/middleManager",} 3.0
druid_middlemanager_worker_taskslot_used_count{category="__default_worker_category_",druid_service="druid/middleManager",} 0.0
druid_middlemanager_worker_taskslot_idle_count{category="__default_worker_category_",druid_service="druid/middleManager",} 3.0

image

So in the end I'm kinda confused why the metric doesn't show proper value - I guess I'm missing something while reading the code..?

@FrankChen021
Copy link
Member

I think the disabled worker should be excluded from the idle metrics. Maybe we need a more metric such as taskslot_disabled_count

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants