-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
[AIRFLOW-3516] Support to create k8 worker pods in batches #4434
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4434 +/- ##
==========================================
+ Coverage 74.76% 78.58% +3.82%
==========================================
Files 429 204 -225
Lines 29649 16482 -13167
==========================================
- Hits 22167 12953 -9214
+ Misses 7482 3529 -3953
Continue to review full report at Codecov.
|
README.md
Outdated
@@ -109,6 +109,7 @@ Currently **officially** using Airflow: | |||
1. [90 Seconds](https://90seconds.tv/) [[@aaronmak](https://github.com/aaronmak)] | |||
1. [99](https://99taxis.com) [[@fbenevides](https://github.com/fbenevides), [@gustavoamigo](https://github.com/gustavoamigo) & [@mmmaia](https://github.com/mmmaia)] | |||
1. [AdBOOST](https://www.adboost.sk) [[AdBOOST](https://github.com/AdBOOST)] | |||
1. [Adobe](https://www.adobe.com/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't related to this PR.
Please open a new PR for this.
Also, once removing it please squash your commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @OmerJog. Updated the PR
PTAL @dimberman |
@feng-tao apologies for the delay, getting over a cold. Will check out now. |
@ramandumcs What is the use-case where a user would want to launch in batches rather than greedily launch tasks as they're received? |
Thanks @dimberman for looking in to this PR. As per current implementation K8 Executor submits/creates one k8 worker pod per scheduler loop. Each scheduling loop takes a minimum of 1 second so scheduling latency of last task in the task queue with 1000 tasks will be atleast 1000 seconds. We have a use case to run 1000s of concurrent tasks and we started using Airflow with K8 executor where we observed and investigated this behaviour. |
@ramandumcs ohh ok that makes total sense. This LGTM. @kaxil is it too late to put this in 1.10.2? |
@feng-tao good to go on my end! |
thanks @dimberman , @ramandumcs , couples of qqs for my understanding:
|
Yup, Now we are launching multiple pods per heartbeat call. I will see if we can add test cases for this particular behavior |
Make sure you have checked all steps below.
Jira
Description
Tests
Commits
Documentation
Code Quality
flake8