'Azure container instances gets killed without obvious reason
We run container instance group daily (triggered by logic apps). The container basically connect to queue, process it and ends. Sometime, according the events log, the container gets killed, there is nothing in logs, except the last thing our app did (and it was not at the end of processing). I checked the resources, we are way below the limits. Also, this does not happen every time (the container is the same, we did not push new version for some time) so its really baffling me.
Any ideas where I could look for reasons? Thank you very much
Solution 1:[1]
Maybe it is not killed if it logs only the last thing, maybe if the queue is empty there is nothing to execute? If the same container behaves differently from time to time then maybe some external condition changes from time to time..microsoft docs - Retrieve container logs and events in Azure Container Instances
Solution 2:[2]
One issue could be the restart policy - perhaps try different restart policy options and have a look at the the Microsoft's ACI troubleshooting page. It could be that the container instance is killed at some point after the task is completed.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Igor |
Solution 2 | Christopher Dunderdale |