Serverless Deployment (GCP Cloud Run) #139
arminzaugg
started this conversation in
General
Replies: 1 comment 1 reply
-
Your understanding of how to build custom docker image from papermerge-core is correct and your custom run.bash script looks good. In my opinion you do everything correct in respect to papermerge project/code. The fact that workers are being killed by external signal (SIGINT/SIGTERM) and not by internal application error means that the problem you have is cloud provider specific i.e. Kubernetes and/or GCP. The SIGINT/SIGTERM signals received by uWSGI are originating from kubernetes trying to kill the pod for some reason. You need to turn to cloud provider to figure out why that pod is being killed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear @ciur and community
On my journey to better understand containers I am trying to deploy the papermerge-core image on a serverless service, namly Cloud Run on GCP. Also this would be the most cost efficient solution for me personally.
My understanding is that it is technically possible to run papermerge on Cloud Run when using their second generation execution envirionment. I am able to run the papermerge-core image on Cloud Run without issues.
However, to make this work for good we need persistent storage and a database. I am now stuck at the storage part when trying to integrate gcsfuse. I did the following.
The mount of the storage seems to work fine, but when building this image and deploying it, I am not able to access the app. When comparing the logs I always receive a SIGTERM event before the uWSGI worker comes up on port 7000 as in the working logs using the standard image.
Snipped from working example using the ready made image.
Snipped from the log output when using my image with gcsfuse. Please find a log export here
I would highly appreciate any feedback which points me in the right direction so that I can resolve this.
Beta Was this translation helpful? Give feedback.
All reactions