google-cloud-run

How to use Stackdriver logging on Cloud Run

混江龙づ霸主 提交于 2019-12-10 19:25:08
问题 I'm trying to get stackdriver logging working for a simple Go app running in Google Cloud Run (fully managed). I've created simplest possible demo app based on "official" stackdriver golang example Cloud Run docs states that no additional actions should be performed to write stackdriver logs My service uses default service account I'm using Go 1.13 to compile code (Dockerfile is copied from Cloud Run example "as-is") I've tried to deploy it to different regions, with no success When running

Google Cloud Run / Does domain mapping supports ALIAS records?

和自甴很熟 提交于 2019-12-08 08:39:21
问题 As it can be available on heroku (wildcard CNAME's), can google cloud run be configured with a single ALIAS type record ? @ 300 IN ALIAS ghs.googlehosted.com. 回答1: Google Cloud Run requires a CNAME Resource Record to verify the custom domain. Cloud Run Custom Domains do not support domain wildcards. You specify a domain name, Google verifies the domain name. There are no configuration settings to support wildcards. The actual DNS resource records are A, AAAA, and CNAME. However, Cloud Run

Should I run mysql on google cloud run? (or any database)

北慕城南 提交于 2019-12-07 18:39:28
I've been researching the new options to run Docker containers in Google Cloud Run, however, there seems to be no advice on whether or not one should run MySQL on Cloud run, apparently, I know it isn't a web service, and I understand in the Official Google Documentation for GCP, Google would probably just tell people to kindly use Cloud SQL (their SQL Offering), I haven't found any advice online about "running mysql on cloud run", so I thought I'd ask here. Will startup times from cold starts decrease performance of the solution? (assuming one uses a Bucket for storing the stuff) Running a SQL

What is the difference between Google App Engine and Google Cloud Run?

家住魔仙堡 提交于 2019-12-07 02:50:36
问题 Does anyone know, difference between Google App Engine Flex and Google Cloud Run? Thanks 回答1: The Cloud Run documentation is not yet very informative but the new video Where Should I Run My Code? Choosing From 5+ Compute Options (Cloud Next '19) compares Cloud Run with App Engine and also Cloud Functions, Google Kubernetes Engine, and Google Compute Engine. You can choose to deploy your Cloud Run app on fully managed infrastructure ("serverless", pay per use, auto-scaling) or on a Google

Google Cloud Functions with socket.io

爱⌒轻易说出口 提交于 2019-12-07 01:46:27
My understanding is that to establish a persistent socket connection using socket.io the Node.js server should be always running. With Google Cloud Functions there isn't an always running Node.js server, so keeping a socket connection alive is not possible. Is Cloud Run with a running Node.js server the best option to handle multiple socket connections using socket.io ? Neither Cloud Functions nor Cloud Run are able to support persistent socket connections for the same reasons. Each request has a timeout that can't be infinite. If you want to use socket.io effectively, you will need a

How to set a minimum scale for Cloud Run on GKE services?

房东的猫 提交于 2019-12-06 11:42:16
问题 I'm using Cloud Run on Google Kubernetes Engine and I'm able to deploy and access services without a problem. But since I'm running on GKE and paying for the cluster 24/7 it makes no sense to scale a deployment to zero and always have a cold start for the first request. I've found that's it's possible to set minScale for the Knative autoscaler to disable scale to zero here, here and here, but I have no idea where to put it. There are a lot of configurations, services and workloads inside GKE

How to fix CloudRun error 'The request was aborted because there was no available instance'

孤者浪人 提交于 2019-12-06 08:42:47
问题 I'm using managed CloudRun to deploy a container with concurrency=1 . Once deployed, I'm firing four long-running requests in parallel. Most of the time, all works fine -- But occasionally, I'm facing 500's from one of the nodes within a few seconds; logs only provide the error message provided in the subject. Using retry with exponential back-off did not improve the situation; the retries also end up with 500s. StackDriver logs also do not provide further information. Potentially relevant

What's the value proposition of running Cloud Run versus a normal service in GKE?

让人想犯罪 __ 提交于 2019-12-05 22:37:18
Is there any advantage if I use Cloud Run instead of deploying a normal service/container in GKE? I will try to add my perspective. This answer does not cover running containers in Google Cloud Run Kubernetes. The reason is that we wanted an almost zero cost solution for a legacy PHP website. Cloud Run fit perfectly and we had an easy time both porting the code and learning Cloud Run. We needed to do something with a legacy PHP website. This website was running on Windows Server 2012, IIS and PHP 7.0x. The cost was over $100.00 per month - mostly for Windows licensing fees for a VM in the

How to set a minimum scale for Cloud Run on GKE services?

落爺英雄遲暮 提交于 2019-12-04 17:32:17
I'm using Cloud Run on Google Kubernetes Engine and I'm able to deploy and access services without a problem. But since I'm running on GKE and paying for the cluster 24/7 it makes no sense to scale a deployment to zero and always have a cold start for the first request. I've found that's it's possible to set minScale for the Knative autoscaler to disable scale to zero here , here and here , but I have no idea where to put it. There are a lot of configurations, services and workloads inside GKE for Isito and Knative-Serving, but I couldn't find anything matching. Which file or configuration do

How to fix CloudRun error 'The request was aborted because there was no available instance'

随声附和 提交于 2019-12-04 14:36:44
I'm using managed CloudRun to deploy a container with concurrency=1 . Once deployed, I'm firing four long-running requests in parallel. Most of the time, all works fine -- But occasionally, I'm facing 500's from one of the nodes within a few seconds; logs only provide the error message provided in the subject. Using retry with exponential back-off did not improve the situation; the retries also end up with 500s. StackDriver logs also do not provide further information. Potentially relevant gcloud beta run deploy arguments: --memory 2Gi --concurrency 1 --timeout 8m --platform managed What does