Skip to content

Support rollingUpdate config of webserver#13906

Closed
junnplus wants to merge 1 commit intoapache:masterfrom
junnplus:roll-patch
Closed

Support rollingUpdate config of webserver#13906
junnplus wants to merge 1 commit intoapache:masterfrom
junnplus:roll-patch

Conversation

@junnplus
Copy link
Contributor

webserver pod waiting long time for init container complete, using one replica will make the webserver unavailable.


^ 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 26, 2021
@junnplus junnplus requested a review from XD-DENG January 28, 2021 04:09
@junnplus junnplus force-pushed the roll-patch branch 2 times, most recently from 2e2f345 to 85ff2d3 Compare February 3, 2021 05:42
@junnplus junnplus requested a review from mik-laj February 3, 2021 10:00
@junnplus
Copy link
Contributor Author

junnplus commented Feb 7, 2021

ping @XD-DENG @mik-laj

Copy link
Member

@XD-DENG XD-DENG left a comment

Choose a reason for hiding this comment

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

Thanks for the changes.

Other than the in-line comment below, the PR title and description should be updated accordingly, after your latest change. The scope now is more like "allow configuring rollingUpdate.maxUnavailable" instead of "make webserver rolling update" (This is also why I didn't realise there is new change to review in this PR).

Copy link
Member

Choose a reason for hiding this comment

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

maybe more straight forward to have maxUnavailable: {{ .Values.webserver.rollingUpdate.maxUnavailable }} here. Let me know if you have different opinion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Like you said, maxUnavailable maybe more straight forward, but the PR title is "make webserver rolling update", not just maxUnavailable.

Copy link
Member

Choose a reason for hiding this comment

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

As I mentioned above, the change you intend to make here is no longer "make webserver rolling update", instead, it's allowing more configuraitons.

As already suggested, please update the PR title and description; or create a new PR accordingly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@XD-DENG Well.. I modified the title.

Copy link
Member

Choose a reason for hiding this comment

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

Do you mind addressing the comment above? I don't see it necessary to use toYaml here.

maybe more straight forward to have maxUnavailable: {{ .Values.webserver.rollingUpdate.maxUnavailable }} here. Let me know if you have different opinion.

In addition, please also update the commit subject and add description properly (that's what appear eventually in the commit history)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rolling Update of kubernetes not just maxUnavailable

I think, It may be better to support both maxSurge and maxUnavailable.
https://github.com/apache/airflow/pull/13906/files#diff-a9d07052701ab3b718c82ac0fe74b965a8260b06bb5906362081718b0ee593b4R419

Copy link
Member

Choose a reason for hiding this comment

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

Then where is your maxSurge in values.yaml? :-)
As well as the necessary update in chart/README.md?

Please make all necessary changes and rebase.

Copy link
Contributor Author

@junnplus junnplus Feb 8, 2021

Choose a reason for hiding this comment

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

rollingUpdate.maxSurge is an optional field, default value is 25%, I added the annotation of maxsurge.

@dimberman
Copy link
Contributor

I'm ok to merge this once @XD-DENG 's comments are addressed

@junnplus junnplus changed the title Make webserver rolling update Support rollingUpdate config of webserver Feb 8, 2021
@junnplus junnplus force-pushed the roll-patch branch 3 times, most recently from 20fa7e4 to 02a9f75 Compare February 8, 2021 08:21
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants