You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a scheduler house keeping work (adopt_or_reset_orphaned_tasks, check_trigger_timeouts, _emit_pool_metrics, _find_zombies, clear_not_launched_queued_tasks and _check_worker_pods_pending_timeout) runs on certain frequency. Right now, we don't have any latency metrics on these house keeping work. These will impact the scheduler heartbeat. Its good idea to capture these latency metrics to identify and tune the airflow configuration
Use case/motivation
As we run the airflow at a large scale, we have found that the adopt_or_reset_orphaned_tasks and clear_not_launched_queued_tasks functions might take time in a few minutes (> 5 minutes). These will delay the heartbeat of the scheduler and leads to the scheduler instance restarting/killed. In order to detect these latency issues, we need better metrics to capture these latencies.
Feel free to add those metrics. Assigned you. Note that we already have "open-telemetry" added in Airlfow main and it's being worked on and improved, so you might want to cc: @ferruzzi when you create new metrics to discuss the PR of yours.
Activity
potiuk commentedon Jun 16, 2023
Feel free to add those metrics. Assigned you. Note that we already have "open-telemetry" added in Airlfow
mainand it's being worked on and improved, so you might want to cc: @ferruzzi when you create new metrics to discuss the PR of yours.