google-cloud-sql

JDBC connection pool compatible with App Engine

会有一股神秘感。 提交于 2019-12-14 03:41:27
问题 Note: I know about this thread but it is quite old and moreover, the solution did not work for me. I am using App Engine along with Cloud SQL and I would like to share a pool of open connections between all of the application's current users. I have tried several connection pool implementations and they all work perfectly with the local development server, however, when deployed to the cloud, they fail. I suppose that the reason is App Engine's restricted "sandbox" environment. Does anyone

Google Cloud SQL import unknown error

无人久伴 提交于 2019-12-13 14:16:29
问题 Instance: db-n1-standard-1 - 200gig - us-central - Second Generation I have a mysql database on an external production server I'm trying to get into Google Cloud SQL. It's approx 130 gigs (uncompressed). I dumped the file - moved to google storage - ran the import. I got a notification during the import with a "unknown error". I was watching the storage meter, and it kept increasing so it appeared as though it was still processing. It apparently picked itself back up and completed

Migration from Google cloud datastore to Google cloud sql

十年热恋 提交于 2019-12-13 12:35:32
问题 We are using Google Cloud Datastore for our Google App Engine (GAE) application. During our project revamp we want to migrate our DB into Google Cloud SQL from Datastore. We have around 1 TB data in Datastore excluding indexes. How to migrate from Datastore to Cloud SQL, is there any existing open source solutions available for this. I have checked the following one https://cloud.google.com/datastore/docs/export-import-entities , which is not helpful for migrating data between datastore and

Google Cloud SQL shutting down intermittently

半城伤御伤魂 提交于 2019-12-13 11:12:27
问题 I have observed multiple times the google cloud sql getting down and coming back after some time. Please find attached the screen shot below of the No. of read write operations from which I am identifying this issue. (Unable to attach image as it is asking 10 reputations, I don't know where to get it from, I can email if required) My typical write operations would be between 12 to 15 writes per second. I have marked in two instances where the db was down (zero write operations) and the system

Google Cloud Composer and Google Cloud SQL Proxy

江枫思渺然 提交于 2019-12-13 09:49:53
问题 I have a project with Cloud Composer and Cloud SQL. I am able to connect to Cloud SQL because i edited the yaml of airflow-sqlproxy-service and added my Cloud SQL instance on cloud proxy used for the airflow-db, mapping to port 3307. The workers can connect to airflow-sqlproxy-service on port 3307 but i think the webserver can't connect to this. Do i need to add some firewall rule to map the 3307 port so the webserver or the UI can connect to airflow-sqlproxy-service? https://i.stack.imgur

Terraform | Retrieve the (client-key) certificate from Cloud SQL

大城市里の小女人 提交于 2019-12-13 08:29:51
问题 I would like to retrieve the client-key SSL key of cloudsql via Terraform, I was able to retrieve the server-ca and the client-cert via terraform but have no idea how to get the client-key file. TO retrieve the client-cert I have used the below mentioned point: Please look. resource "google_sql_ssl_cert" "client_cert" { depends_on = ["google_sql_database_instance.new_instance_sql_master", "google_sql_user.users"] common_name = "terraform1" project = "${var.project_id}" instance ="${google_sql

Google cloud dataproc failing to create new cluster with initialization scripts

ε祈祈猫儿з 提交于 2019-12-13 07:37:30
问题 I am using the below command to create data proc cluster: gcloud dataproc clusters create informetis-dev --initialization-actions “gs://dataproc-initialization-actions/jupyter/jupyter.sh,gs://dataproc-initialization-actions/cloud-sql-proxy/cloud-sql-proxy.sh,gs://dataproc-initialization-actions/hue/hue.sh,gs://dataproc-initialization-actions/ipython-notebook/ipython.sh,gs://dataproc-initialization-actions/tez/tez.sh,gs://dataproc-initialization-actions/oozie/oozie.sh,gs://dataproc

Trying to get data from large dataset

岁酱吖の 提交于 2019-12-13 06:26:20
问题 I am developing an application for one of our clients using Java 1.7 + GAE, and using Google cloud sql as well as database. I am trying to get data from a huge resultset, but the only thing i get its the dreaded timeout. So far, the code i have is the following : public List <String> leerMasivo(String cadena, String [] valores) throws SQLException{ log.info("Entra en la función leer(String cadena, String [] valores)"); this.conectar(); long nRowsNumber = 1; long nId = 0; List <String>

CloudSql monitoring usage

不羁岁月 提交于 2019-12-13 04:47:56
问题 I have just made a cloudsql instance , along with an app engine website, and because it is in its initial stages, I would like to closely monitor the cloudsql usage and how much I am getting charged from it. Where in the developers section is this option available? I would like to have a detailed view of my cost,instance hours, etc. The graphs in the overview section just provide the connection details, but I would also like to know how to find out current costs. 回答1: I believe you can get

Error connecting to Google Cloud SQL from App Engine custom environment using TCP

一笑奈何 提交于 2019-12-13 04:06:19
问题 I'm trying to connect to google sql cloud instance from custom runtime environment in App Engine. When I follow the doc to connect using unix domain socket, it works. The problem is when I try to connect using a TCP connect. It shows: Warning: mysqli_connect(): (HY000/2002): Connection refused in /var/www/html/index.php on line 3 Connect error: Connection refused This is my app.yaml file: runtime: custom env: flex beta_settings: cloud_sql_instances: testing-mvalcam:europe-west1:testdb=tcp