Deploying the waypoint server to Cloud Run

In the tutorial https://learn.hashicorp.com/tutorials/waypoint/google-cloud-run the waypoint server runs locally. Is it possible to also run it as cloud run service?

We don’t recommend running the server on CloudRun because of the way it manages background threads. CloudRun suspends the process between serving requests, which can really confuse the server. It might be possible for it to work a bit, but it’s not going to provide a smooth experience.

Here are the details about how CloudRun runs a service: https://cloud.google.com/run/docs/tips/general

I see, It actually makes sense. The better solution would probably be to run in ut on a small VM in my Google Cloud if all my other service where to be on Cloud Run.

Yup, that’s exactly the direction we see people going. The server doesn’t use many resources ta all, but it does need to run continuously.

1 Like