kermitt2 / grobid

A machine learning software for extracting information from scholarly documents
https://grobid.readthedocs.io
Apache License 2.0
3.6k stars 461 forks source link

Grobid container crashing using Azure Container Apps #1109

Closed fbisceglia02 closed 6 months ago

fbisceglia02 commented 6 months ago

I'm trying to deploy a grobid:0.7.3 custom image on Azure Container Apps, but keep having in return "Failed:grobidContainerCreation" failed. Container goes in that status, and then in Degraded. Azure Container Apps workload profile size is consumption 4 cpus and 8 Gb memory.

The custom image just copies a .pem certificate. but that's not the problem image

I tried to deploy the same image on a 4cpu x 8memory x 30gb storage vm and it works with no problems. Tryed to deploy the same azure container app in a development environment and still not working.

fbisceglia02 commented 6 months ago

The crash of the application was likely due to the insufficient memory allocation within the Azure Container Apps environment. he full Grobid image requires 30GB of space, but the consumption model for Azure Container Apps provides a maximum of 8GB per replica. https://learn.microsoft.com/en-us/azure/container-apps/hardware#:~:text=Consumption,8* To address this issue, consider requesting a quota increase or optimizing the application to fit within the available memory limits.