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

Drain mode is not initiated when terminating a Functionapp in Kubernetes #8879

Open
yukscck opened this issue Nov 1, 2022 · 4 comments
Open

Comments

@yukscck
Copy link

yukscck commented Nov 1, 2022

Investigative information

When I ran my Functionapp in a Kubernetes cluster, I observed that the Functionapp initiates drain mode and unregisters all the listeners from my application when I delete a Kubernetes pod or scale in my Kubernetes deployment.

image

However, when I upgraded my Functionapp to use the Azure Functions V4 runtime, I noticed the Functionapp no longer initiates drain mode as before - subsequent messages put into the queues continued to trigger the functions.

image

Expected behavior

  • Functionapp initiates drain mode and unregisters all the listeners from the application when a Kubernetes pod termination occurs.

Actual behavior

  • Functionapp continues to execute to handle incoming triggers.

Related information

The above can be reproduced in a personal sample project I have created here:

@ghost ghost assigned jviau Nov 1, 2022
@kshyju
Copy link
Member

kshyju commented Nov 1, 2022

@liliankasem FYI

@jviau jviau removed their assignment Jul 26, 2023
@jviau
Copy link
Contributor

jviau commented Jul 26, 2023

Need to verify if this still happens.

@yukscck
Copy link
Author

yukscck commented Jul 27, 2023

@jviau Thanks for looking into this.

I tried building the container image again today, fresh, and yes, I could still reproduce this issue.

@jviau
Copy link
Contributor

jviau commented Jul 27, 2023

@yukscck thank you for the update. This is on our backlog and we will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants