Hello @Giel Oomen
To troubleshoot this issue that you stated above, you can try the following steps:
- Enable container logging: You can enable container logging by setting the
WEBSITE_CONTAINER_LOGGING_ENABLED
app setting totrue
. This will enable logging for your containers and may provide more information about why they are failing to start. - Check the health of your function app: You mentioned that you have set up a health check endpoint. Make sure that this endpoint is returning a healthy status and that it is being called regularly. You can also try increasing the frequency of the health checks to see if this helps.
- Check the resource utilization of your function app: Make sure that your function app is not running out of resources, such as CPU or memory. You can use the Azure portal or Azure Monitor to monitor the resource utilization of your function app.
- Check for any code issues: Make sure that your code is not causing the failures. Check for any errors or exceptions in your code that may be causing the containers to fail.
- Increase the number of instances: As you mentioned, having multiple instances running can help mitigate the risk of a single point of failure. You can try increasing the number of instances to see if this helps.
This should get you started. I hope this helps.