This is the meta issue for tracking performance optimization of the UI and API to improve airflow operating at high scale.
Done
I - API
II - UI
Targeted for 3.2+
Attached is a zip file with some dummy dags that will generate a high number of tasks and runs in your local development setup. This is useful to 'simulate' a high scale installation with millions of TIs and thousands of dag runs, to help you work on the linked issues or identify other bottlenecks.
serdagexpensive.zip
This is the meta issue for tracking performance optimization of the UI and API to improve airflow operating at high scale.
Done
I - API
Add gunicorn support for API server with rolling worker restarts #60940 (memory optimization and worker rotation)
API - Improve historical_metrics_data endpoint #62021
API - Improve public get_dag_runs endpoint #62025 perf: use load_only() in get_dag_runs eager loading to reduce data fetched per task instance #62482
Optimize /ui/dags endpoint serialization #61483
Mention http2 in the API/UI performance documentation #62032
Add log buffering to increase performance when streaming big logs #63180 (Add log endpoint buffering for streaming)
II - UI
Targeted for 3.2+
API - Improve public get_task_instances endpoint #62027
Cache requires_access_dag checks and other auth manager redundant checks #61485 Cache dag access and teams check to be reused in grid ti_summary API calls #61623
Add log buffering to increase performance when streaming big logs #63180
improve grid/ti_summaries and grid/runs improve grid/ti_summaries and grid/runs #64034
Improve Graph View Performance Improve Graph View Performance #65031
List task instances Add cursor based pagination for get_task_instances endpoint #64845
Cursor based pagination for dag runs Add cursor based pagination for get_dag_runs endpoint #65604
Attached is a zip file with some dummy dags that will generate a high number of tasks and runs in your local development setup. This is useful to 'simulate' a high scale installation with millions of TIs and thousands of dag runs, to help you work on the linked issues or identify other bottlenecks.
serdagexpensive.zip