timchap / terraform-google-managed-dagster

Terraform module for a Dagster deployment using Google Cloud managed services
MIT License
5 stars 0 forks source link

Dagster daemon on GCR #1

Open shane-breeze opened 6 days ago

shane-breeze commented 6 days ago

Thanks for putting together this terraform module to showcase deploying dagster on cloud run. I'm trying to adopt this to my use case and would prefer not to use cloud engine for the dagster daemon. Do you know if there's an easy way to package the dagster daemon into cloud run?

I've already tried this, but since the dagster daemon is not a HTTP/TCP/GRPC service GCR fails on the startup probe.

timchap commented 6 days ago

IMO this kind of daemon-style service is kind of explicitly outside the scope of Cloud Run. Cloud Run is built primarily for:

Daemons don't really fit into these two cases, which is why there isn't an easy solution. If you really wanted to, there are two solutions that might work:

For me, neither of these are particularly satisfying, so unless you really really want to avoid Compute Engine then my recommendation would be to provision the smallest possible instance.