Skip to content
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

Adding startupProbe to airflow services charts #33107

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

amoghrajesh
Copy link
Contributor

@amoghrajesh amoghrajesh commented Aug 4, 2023

We have an internal feature where we perform a copy of venv from airflow services to cloud storages which can sometimes take a few minutes. Copying of a venv is a metadata heavy load: https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/files-troubleshoot-performance?tabs=linux#cause-2-metadata-or-namespace-heavy-workload.

Introducing a startupProbe onto the airflow services would be useful for slow starting container and most of all it doesn't have side effects. startupProbe has been added for scheduler and the webserver following the same flow as their respective liveness and readiness probes. A gracious value of 10 mins has been set for startup. This is based on personal experiments where our deployments took 5 - 6 mins for startup roughly, 10 mins allows some head room. Although, these properties are configurable and would be beneficial for users to use them.

closes: #33099


^ 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.rst or {issue_number}.significant.rst, in newsfragments.

@amoghrajesh
Copy link
Contributor Author

@jedcunningham @hussein-awala can you take a look at this PR when you have some time?

@eladkal eladkal added this to the Airflow Helm Chart 1.11.0 milestone Aug 4, 2023
chart/values.yaml Outdated Show resolved Hide resolved
@potiuk
Copy link
Member

potiuk commented Aug 6, 2023

Yes - I think it'a good idea to add startup probe (but with lower default time) @jedcunningham @dstandish WDYT

@amoghrajesh amoghrajesh requested a review from potiuk August 7, 2023 07:37
@potiuk potiuk merged commit ca5acda into apache:main Aug 7, 2023
48 checks passed
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 27, 2023
jedcunningham added a commit to astronomer/airflow that referenced this pull request Sep 26, 2023
We don't need to create the pod template file if we aren't using KE.
This was accidentally broken in apache#33107.
jedcunningham added a commit that referenced this pull request Sep 27, 2023
We don't need to create the pod template file if we aren't using KE.
This was accidentally broken in #33107.
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 changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add startupProbe to airflow helm charts
4 participants