You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "tokoko (via GitHub)" <gi...@apache.org> on 2023/09/20 01:47:23 UTC
[GitHub] [airflow] tokoko opened a new issue, #34495: Allow disabling core components in helm chart
tokoko opened a new issue, #34495:
URL: https://github.com/apache/airflow/issues/34495
### Description
Right now only optional components (triggerer, dag-processor) can be disabled from values.yaml in helm chart. I'd like to have the same functionality for core components as well (webserver, scheduler and workers even if Celery is configured).
### Use case/motivation
I am trying to setup Airflow deployment for multiple teams. The way I hope to achieve it is too have multiple helm releases for the overall environment instead of just one.
- the core helm release will contain only the core components that are shared - webserver, scheduler, triggerrer.
- Additional per-team helm releases will reuse some of the configuration (database connections, etc) but only deploy team-specific components (dag-processor and workers that will be configured to consume dags only from this team's dag-processor).
This way teams will have flexibility to configure their Python environments freely and also have an isolated release cycle. The primary blocker for achieving this setup with official helm chart is the fact that most of the components can't be easily disabled from values.yaml
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] tokoko commented on issue #34495: Allow disabling core components in helm chart
Posted by "tokoko (via GitHub)" <gi...@apache.org>.
tokoko commented on issue #34495:
URL: https://github.com/apache/airflow/issues/34495#issuecomment-1728452347
@hussein-awala thanks for the reply.
The setup that I was thinking of consists of various team-specific dockerfiles (for workers and dag-processors) that might be scattered across multiple git repos. I understand that managing multiple releases is less than ideal, but my thought process was that in case of a single release, cd process for a single repository after building it's own docker image will have to somehow reach out to some central helm deployer pipeline that is aware of other teams' deployments as well. Additionally, these deployments will have to be somehow queued so as not to coincide with one another. I suppose that's also doable, but seemed more awkward to me rather than an alternative where each repository's pipeline has a clear ownership of it's own deployments and might not be aware of other's existence at all.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] hussein-awala commented on issue #34495: Allow disabling core components in helm chart
Posted by "hussein-awala (via GitHub)" <gi...@apache.org>.
hussein-awala commented on issue #34495:
URL: https://github.com/apache/airflow/issues/34495#issuecomment-1728474297
> various team-specific dockerfiles (for workers and dag-processors)
For workers, the issue I mentioned should allow that
> that might be scattered across multiple git repos
Currently the recommended way is creating a single repo with multiple git submodules, but yeah it's debatable.
Officially Airflow is single tenant, so I wonder if we should wait for [AIP-54](https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-54+Multi+tenancy+-+View+Level+Access+Control) before implementing the features you suggest. This AIP focuses on access management, but it will make Airflow a multi-tenant platform.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow disabling core components in helm chart [airflow]
Posted by "tokoko (via GitHub)" <gi...@apache.org>.
tokoko commented on issue #34495:
URL: https://github.com/apache/airflow/issues/34495#issuecomment-2302796303
Looks like the option to disable webserver/scheduler has already been added to the chart at some point. Closing this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow disabling core components in helm chart [airflow]
Posted by "MagicFrogSJTU (via GitHub)" <gi...@apache.org>.
MagicFrogSJTU commented on issue #34495:
URL: https://github.com/apache/airflow/issues/34495#issuecomment-3082894093
@tokoko You idea is very bright!
I try to follow it, but simply disabling the webserver/scheduler didn't work.
Would you share more details about your deployment?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow disabling core components in helm chart [airflow]
Posted by "tokoko (via GitHub)" <gi...@apache.org>.
tokoko closed issue #34495: Allow disabling core components in helm chart
URL: https://github.com/apache/airflow/issues/34495
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] hussein-awala commented on issue #34495: Allow disabling core components in helm chart
Posted by "hussein-awala (via GitHub)" <gi...@apache.org>.
hussein-awala commented on issue #34495:
URL: https://github.com/apache/airflow/issues/34495#issuecomment-1728267589
For the dag processor, we already discussed this multiple time in the past, and it looks like there is a preference for a single dag processor (with a single GitSync if you use it), but maybe we can re-discuss it if needed.
For the multiple Celery workers group, you can check #34219, it's WIP. IMHO it will be much better than creating and managing multiple releases.
IMHO some users may need deactivating the webserver if they want to manage Airflow completely with the CLI, and add an option to deactivate the scheduler/workers should not be a problem.
@jedcunningham WDYT?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org