Issue: My AI Django app uses tesseract, Spacy NER model, Langchain, Langgraph and Networkx. These libraries results in local python venv of size 590 MB.
I am using APP Engine Standard Environment to deploy this project. When, I deploy this project to APP Engine - the size of version shown is 621 MB. Although there are no errors shown, I dont see page getting loaded.
I understand instance_class: F1 has lower memory so I changed it F4 without any luck.
When I use instance_class : F1
Exceeded hard memory limit of 384 MiB with 410 MiB after servicing 0 requests total. Consider setting a larger instance class in app.yaml.
Question / Support required:
What is alternate approach to deploy this project on GCP that is reasonable in cost?
Is there a way, I can reduce the memory → One suggestion that I implemented and did not work was moving en_core_web_sm model to bucket.
You are correct, the F1 instance class only supports up to 384 MB of memory. If your app exceeds this limit, it may self terminate and fail to deploy. To resolve this, consider using an instance class with higher memory instead. For more information, see Quotas and Limits. To isolate the issue, you can try running your app locally to see if it runs successfully before deploying it on App Engine.
Question / Support required:> > 1. What is alternate approach to deploy this project on GCP that is reasonable in cost?
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.