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

[release/8.0] Change how ANCM recycles app #55288

Merged
merged 13 commits into from May 2, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 22, 2024

Backport of #52807 to release/8.0

/cc @BrennanConroy

Change how ANCM recycles app

Description

IIS can recycle for various reasons, both manually triggered and automatically triggered. When a recycle occurs IIS will start a new process (by default) and send incoming requests to the new process while it shuts down the old process. However, ANCM's handling of shutdown wasn't taking advantage of this overlapped recycle and so incoming requests were still coming to the old process while we are shutting down. Which results in 503 responses during app shutdown. This behavior is very much undesirable and is now fixed with this (opt-in) change.

Fixes #41340

Customer Impact

Customers would see 503's for incoming requests while the app is recycling, which could be exacerbated by how slow the app shuts down.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

The change is 95% behind an opt-in flag so it shouldn't have any effect on current apps.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Apr 22, 2024
@dotnet-policy-service dotnet-policy-service bot added this to the 8.0.x milestone Apr 22, 2024
@BrennanConroy BrennanConroy added the Servicing-approved Shiproom has approved the issue label Apr 22, 2024
@RussKie
Copy link
Member

RussKie commented Apr 24, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@amcasey
Copy link
Member

amcasey commented Apr 29, 2024

Timeout in Microsoft.AspNetCore.Server.Kestrel.Sockets.FunctionalTests.ResponseTests.HttpsConnectionClosedWhenResponseDoesNotSatisfyMinimumDataRate. Unrelated.

@wtgodbe wtgodbe merged commit 0b8930b into release/8.0 May 2, 2024
23 of 25 checks passed
@wtgodbe wtgodbe deleted the backport/pr-52807-to-release/8.0 branch May 2, 2024 16:20
@dotnet-policy-service dotnet-policy-service bot modified the milestones: 8.0.x, 8.0.6 May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions Servicing-approved Shiproom has approved the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants