Skip to content

Conversation

@FloChehab
Copy link
Contributor

Hello,

This PR adds a small feature to the chart:

  • Rely on the config.celery.worker_concurrency value
    to determine the number of task a keda worker can take
    (vs the previous 16 that was hardcoded in the query).
  • Updated documentation accordingly

The only impact is that with this PR the default concurrency of KEDA goes down from 16 to 8 (I thought that would be better than to set the concurrency by default from 8 to 16 for all CeleryExecutor deployments).


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label Jan 8, 2021
@FloChehab FloChehab force-pushed the support-paretrized-nb-tasks-per-worker-with-keda branch from 087b3d3 to ba49005 Compare January 9, 2021 15:09
@FloChehab
Copy link
Contributor Author

FloChehab commented Jan 9, 2021

(I've rebased / push -f to fix conflict in the chart Readme)

@FloChehab FloChehab force-pushed the support-paretrized-nb-tasks-per-worker-with-keda branch from ba49005 to 434d576 Compare January 11, 2021 12:31
@github-actions
Copy link

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest master or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Jan 11, 2021
Copy link
Contributor

@dstandish dstandish Feb 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wonder if a better solution would be to allow user to specify the entire query, instead of worker_concurrency. for one, this would resolve the problem highlighted in my other comment. additionally though it would open the door to support for mysql. mysql has a different query syntax but otherwise there is a keda trigger for it and we could add support for it by enabling custom query. custom query is also more flexible in general.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently the chart does not support MySQL anyway. Agree in principle though

Copy link
Contributor

@dstandish dstandish Feb 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the chart does not support mysql when you run the metastore on k8s along with airflow. however, wouldn't it work with mysql if you had an external metastore e.g. rds (which is what is recommended anyway)?

i know postgres is the better choice for airflow and much more widely embraced but some folks might use other dbs and off top of my head i think it would probably work since you just need to specify conn uri and disable postgres and pgbouncer...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yes -- you are right

Copy link
Member

@kaxil kaxil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rebase your PR on latest Master please and tag me again so we can merge it

@FloChehab FloChehab force-pushed the support-paretrized-nb-tasks-per-worker-with-keda branch from 434d576 to d2e348a Compare February 7, 2021 19:38
* Rely on the config.celery.worker_concurrency value
to determine the number of task a keda worker can take
(vs the previous 16 that was hardcoded in the query).
* Updated documentation accordingly
@FloChehab FloChehab force-pushed the support-paretrized-nb-tasks-per-worker-with-keda branch from d2e348a to dcf8ebe Compare February 8, 2021 10:49
@FloChehab
Copy link
Contributor Author

Can you rebase your PR on latest Master please and tag me again so we can merge it

Hello @kaxil, we should be good to merge for this PR.

@kaxil kaxil merged commit 0286121 into apache:master Feb 8, 2021
@kaxil
Copy link
Member

kaxil commented Feb 8, 2021

Awesome, thank you @FloChehab and @dstandish

@FloChehab FloChehab deleted the support-paretrized-nb-tasks-per-worker-with-keda branch February 8, 2021 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:helm-chart Airflow Helm Chart okay to merge It's ok to merge this PR as it does not require more tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants