Repository navigation
Conversation
o-nikolas
requested review from
XD-DENG,
ashb,
hussein-awala,
kaxil and
pierrejeambrun
as code owners
June 3, 2024 04:27
o-nikolas
commented
Jun 3, 2024
Member
|
Do we still need |
Contributor
Author
Nope! We still use this field in places, even after these changes. So no need to deprecate :) |
ferruzzi
reviewed
Jun 5, 2024
ferruzzi
approved these changes
Jun 5, 2024
syedahsn
reviewed
Jun 5, 2024
Contributor
Author
|
@potiuk @uranusjr any time to have a/another look? @dstandish maybe? |
dstandish
reviewed
Jun 18, 2024
dstandish
reviewed
Jun 18, 2024
dstandish
reviewed
Jun 18, 2024
uranusjr
approved these changes
Jun 20, 2024
potiuk
reviewed
Jun 20, 2024
potiuk
approved these changes
Jun 21, 2024
dstandish
reviewed
Jun 21, 2024
dstandish
reviewed
Jun 21, 2024
dstandish
approved these changes
Jun 21, 2024
dstandish
reviewed
Jun 21, 2024
dstandish
reviewed
Jun 21, 2024
dstandish
reviewed
Jun 21, 2024
potiuk
approved these changes
Jun 22, 2024
syedahsn
approved these changes
Jun 24, 2024
dstandish
reviewed
Jun 24, 2024
dstandish
reviewed
Jun 24, 2024
dstandish
reviewed
Jun 24, 2024
dstandish
reviewed
Jun 24, 2024
dstandish
reviewed
Jun 24, 2024
o-nikolas
force-pushed
the
onikolas/aip-61/main_scheduler_loop_not_per_exec
branch
from
June 28, 2024 19:24
4d81258 to
8ac8b2d
Compare
Contributor
|
ship it @o-nikolas |
o-nikolas
force-pushed
the
onikolas/aip-61/main_scheduler_loop_not_per_exec
branch
from
July 2, 2024 17:55
75e7e3a to
d5031a4
Compare
potiuk
approved these changes
Jul 2, 2024
potiuk
left a comment
Member
There was a problem hiding this comment.
nice discussions and conclusions. Ship it indeed!
Member
|
@o-nikolas Can you merge this one? -- looks like we are good to go |
Contributor
Author
@kaxil Yupp, I plan to merge both PRs tomorrow morning! |
This change delivers the main portion of hybrid executors to the Airflow scheduler. Each loop the query for TIs from the DB may contain TIs tagged with a particular executor. We now filter those after the query by which executors have space to take on more TIs and then sort them into buckets per executor and send them to each executor to be executed. We now also heartbeat all executors and process their events each scheduler loop.
o-nikolas
force-pushed
the
onikolas/aip-61/main_scheduler_loop_not_per_exec
branch
from
July 10, 2024 17:23
794802f to
f60ee23
Compare
romsharon98
pushed a commit
to romsharon98/airflow
that referenced
this pull request
Jul 26, 2024
…ache#40017) This change delivers the main portion of hybrid executors to the Airflow scheduler. Each loop the query for TIs from the DB may contain TIs tagged with a particular executor. We now filter those after the query by which executors have space to take on more TIs and then sort them into buckets per executor and send them to the appropriate executor to be executed. We now also heartbeat all executors and process their events each scheduler loop.
1 of 2 tasks
2 tasks done
RyuSA
added a commit
to RyuSA/khi
that referenced
this pull request
Apr 10, 2025
RyuSA
added a commit
to GoogleCloudPlatform/khi
that referenced
this pull request
Apr 10, 2025
* Suppress verbose error output This reduces unnecessary standard output. * fix scheduler log parser missing "TaskInstance Finished ... executor=FOO, ..." apache/airflow#40017
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.
This change delivers the main portion of hybrid executors to the Airflow scheduler. Each loop the query for TIs from the DB may contain TIs tagged with any executor (or no specific executor, which means run on the default executor). We now sort those TIs by executor after the query and queue tasks for the executors which have space to take on more TIs.
We now also heartbeat all executors and process their events each scheduler loop.
This is a second version of these changes which are fairly concise in source code diff. Most of the PR is testing changes/additions.
Benchmarking
Here is some benchmarking to show performance of the scheduler with the changes.
Please refer to the orange (90th quantile) and yellow/green (50th quantile) plots, blue is the 99th quantile which leads to very spikey data.
Important plots include the bottom two (which are the critical sections of the main loop), as well as the loop duration as a whole.
Baseline from main
Hybrid Scheduler
Method:
This data was collected while running the below DAG. Leveraging the standard Airflow metrics along with some metric math (for example the scheduler loop time minus the executor heartbeat time, middle-left plot), using statsd and grafana within the same breeze environment for all data collection.
More samples were taken than just the runs included above, but a representative selection was chosen.
DAG code:
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.