google-cloud-platform

How to train keras model using Google Cloud TPU

孤街浪徒 提交于 2021-02-07 12:11:33
问题 Theoretically, we are able to train Tensorflow backed Keras model on any platform that supports Tensorflow. However, I can't seem to find any info on how to do it in Google's documentation https://cloud.google.com/tpu/docs/. 回答1: We have an example in the TPU repository here: https://github.com/tensorflow/tpu/blob/master/models/experimental/cifar_keras/cifar_keras.py 来源: https://stackoverflow.com/questions/48771723/how-to-train-keras-model-using-google-cloud-tpu

Determine what project id my App Engine code is running on

不羁岁月 提交于 2021-02-07 11:39:28
问题 From within an App Engine app, is there a way to determine the project ID a GAE (App Engine) instance is running on? I want to access a big query table in the same project that the App Engine instance is running in. I'd rather not hard code it in or include it in another config file if possible. Edit: forgot to mention that this is from Python 回答1: You can get a lot of info from environment variables: import os print os.getenv('APPLICATION_ID') print os.getenv('CURRENT_VERSION_ID') print os

HTTP Load Balancing with health checks requiring basic auth in Google Cloud Platform?

孤人 提交于 2021-02-07 10:24:53
问题 I've created an HTTP Load Balancer (in Google Cloud Platform) but the health check returns a status of unhealthy. My conclusion is that the health check points to a resource that is protected by basic auth and thus the service returns 401 instead of 200. So my questions are: Is it possible to somehow add basic auth credentials to the health check request? Is there a workaround? 回答1: Health checks in Google Cloud cannot be provided basic auth credentials to my knowledge. You are correct, in

How do I manually set the severity of a Google App Engine request log?

情到浓时终转凉″ 提交于 2021-02-07 10:19:54
问题 I have an app in the Google App Engine Python 3 Standard Environment. I have it set up to group log entries by their request, as described in Writing Application Logs (in the "Viewing related request log entries" section). That page notes: The highest severity from the "child" log entries does not automatically apply to the top-level entry. If that behavior is desired, manually set the highest severity in the top-level entry. The top-level entry in question is the request log that App Engine

How do I manually set the severity of a Google App Engine request log?

£可爱£侵袭症+ 提交于 2021-02-07 10:16:32
问题 I have an app in the Google App Engine Python 3 Standard Environment. I have it set up to group log entries by their request, as described in Writing Application Logs (in the "Viewing related request log entries" section). That page notes: The highest severity from the "child" log entries does not automatically apply to the top-level entry. If that behavior is desired, manually set the highest severity in the top-level entry. The top-level entry in question is the request log that App Engine

Jenkins Docker in Docker on GCP/Kubernetes

ε祈祈猫儿з 提交于 2021-02-07 09:58:29
问题 Is there a recommended way of initiating 'docker build' commands from a container loaded in to Kubernetes? IE. Spinning up a Jenkins container (from the community image) and then ensuring that docker is installed within that container so you can issue 'docker build' commands. I've read up on various methods such as DIND (Docker in Docker) containers and running links between the Jenkins container and the DIND container. Of course with Kubernetes this would be different. 回答1: There are two

How do you create a TLS connection to a Cloud SQL database using Go?

本秂侑毒 提交于 2021-02-07 07:51:22
问题 I'm trying to create a TLS connection to a Cloud SQL database but I'm getting the following error when trying to prepare a statement: x509: cannot validate certificate for <cloud sql instance ip> because it doesn't contain any IP SANs Here is my setup code: rootCertPool := x509.NewCertPool() pem, err := ioutil.ReadFile("/path/server-ca.pem") if err != nil { log.Fatal(err) } if ok := rootCertPool.AppendCertsFromPEM(pem); !ok { log.Fatal("Failed to append PEM.") } clientCert := make([]tls

How is console.developers.google.com different from appengine.google.com?

一个人想着一个人 提交于 2021-02-07 07:29:30
问题 Google Cloud has https://console.developers.google.com/ and App Engine has http://appengine.google.com. Are they interchangeable? Will http://appengine.google.com eventually become obsolete in favor of https://console.developers.google.com/? If I start using https://console.developers.google.com/ will I be unable to go back to http://appengine.google.com? 回答1: Jordan Fish from Google Cloud Platform Support gave me this answer: https://console.developers.google.com is the next generation

How is console.developers.google.com different from appengine.google.com?

眉间皱痕 提交于 2021-02-07 07:29:12
问题 Google Cloud has https://console.developers.google.com/ and App Engine has http://appengine.google.com. Are they interchangeable? Will http://appengine.google.com eventually become obsolete in favor of https://console.developers.google.com/? If I start using https://console.developers.google.com/ will I be unable to go back to http://appengine.google.com? 回答1: Jordan Fish from Google Cloud Platform Support gave me this answer: https://console.developers.google.com is the next generation

AWS Batch analog in GCP?

╄→尐↘猪︶ㄣ 提交于 2021-02-07 07:24:33
问题 I was using AWS and am new to GCP. One feature I used heavily was AWS Batch, which automatically creates a VM when the job is submitted and deletes the VM when the job is done. Is there a GCP counterpart? Based on my research, the closest is GCP Dataflow. The GCP Dataflow documentation led me to Apache Beam. But when I walk through the examples here (link), it feels totally different from AWS Batch. Any suggestions on submitting jobs for batch processing in GCP? My requirement is to simply