Queue-based scaling is killing container instances before completion (Azure Container Apps)

Todorov, Rosen 11 Reputation points
2022-08-08T13:23:04.71+00:00

In Azure Container Apps, we make use of automatic scaling rule (KEDA, event based), where we are pulling messages from a queue or event source and want to have it run to completion without scaling down. The rule is set to scale down to 0 (serverless), but we have no control over the killing of container instances, as we want it to run until completion, before killing it. Is there a possible way to do so, or a feasible work-around.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,511 Reputation points
    2022-08-11T06:50:05.07+00:00

    @Todorov, Rosen ,

    Thanks for reaching out to Q&A.

    Please set the properties.configuration.activeRevisionsMode property of the container app to single in the configuration Json file. If this doesnt work, please provide the configuration json file so that I can check if the app is properly configured. If this issue is urgent and needs immediate mitigation, you can set the minReplicas property to 1 and run the app.

    Feel free to reach out to me if you have any queries or concerns.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.