google-compute-engine

Docker Ignores limits.conf (trying to solve “too many open files” error)

孤人 提交于 2020-03-17 04:50:26
问题 I'm running a web server that is handling many thousands of concurrent web socket connections. For this to be possible, on Debian linux (my base image is google/debian:wheezy, running on GCE), where the default number of open files is set to 1000, I usually just set the ulimit to the desired number (64,000). This works out great, except that when I dockerized my application and deployed it - I found out that docker kind of ignores the limit definitions. I have tried the following (all on the

Selenium webdriver exception - Chrome failed to start: exited abnormally on centos 7 on google compute engine [duplicate]

别说谁变了你拦得住时间么 提交于 2020-03-05 04:33:08
问题 This question already has answers here : Selenium fails to start Chromedriver in CentOS (1 answer) Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed (10 answers) Closed 15 days ago . I am trying to run a selenium headless test on google compute engine with centos 7. I have installed chrome browser 71 using rpm file and the location is /usr/bin/google-chrome. Tried running test with

Where can I find the source code for the Google Cloud Platform Deep Learning VM images and Deep Learning Containers?

 ̄綄美尐妖づ 提交于 2020-03-04 18:43:26
问题 GCP gives a general overview of what's installed in Deep Learning VMs, but seeing the actual shell scripts would make it easier to determine the exact differences between VM images, debug any deployment issues, and create derivative images. Someone already asked about the Dockerfiles for Deep Learning Containers, but I figured I'd repeat the question to increase the odds of it getting answered. 回答1: You can create and set up a local deep learning container. Have a look at the official

connect Google App Engine and Google Compute Engine

喜夏-厌秋 提交于 2020-02-27 09:49:29
问题 I created a VM instance in Googl Compute Engine and app in Google App Engine standard environment. I was planning to have my app in App Engine and my database server in Compute Engine. But, I can't connect between the both by internal IP. Is this possible? the app and db are in the same zone ( us-east1 ) but the connection by IP don't work, only work with external IP. Apparently, the rules of firewall are correct. 回答1: For connecting through a private IP you need that the app and DB will be

How can I change a VM/Instance label with GCP Cloud Function using node.js?

点点圈 提交于 2020-02-06 07:40:46
问题 I am testing a Cloud Function in GCP and I want to modify labels of my compute instance with Cloud Function i.e. change label "status=active" to "status=tobedeleted". Is there a way to do it with Cloud Function and node.js ? Looks as if the method compute.instances.setLabels requires additional libraries ? I already created Cloud Function to stop/start instances. Here is the error : resource: {…} severity: "ERROR" textPayload: "{ Error: Login Required at Gaxios.request (/srv/node_modules

NodeJs Google Compute Engine Invalid ELF Header when using 'gcloud' module

青春壹個敷衍的年華 提交于 2020-02-05 07:53:05
问题 I am working on a project that requires me to use the gcloud nodejs module. I am testing this project locally using node app and locally on gcloud using gcloud preview app run app.yaml . When I have the following code in my file the project runs with node app but doesn't run with gcloud using gcloud preview app run app.yaml - I get the an invalid ELF Header error . var gcloud = require('gcloud'); I believe the project doesn't run with the gcloud command because it has something to do with me

Google Compute Engine How to bind new external IP address to the instance

╄→尐↘猪︶ㄣ 提交于 2020-02-05 05:21:47
问题 I need to get new external IP address every time when I recreate my instance. Current implementation may use previous ips. How can I achieve the goal with static or ephemeral ips? Or how can I get GCE ips pool? 回答1: I am adding bellow information with Kolban. For the external IP Google cloud has two categories: Static external IP addresses Ephemeral external IP addresses The basic difference between these two are Static one is long term assignment until hey are explicitly released from that

Why does this happen: Quota 'N2_CPUS' exceeded. Limit: 24.0 in region us-central1

只愿长相守 提交于 2020-02-04 23:00:43
问题 I got the error when trying to create a 64 CPU compute engine. However, looking at the Quota (IAM & Admin), I see the quota at 72. Does anyone know why this is happening and what I can do about it? Thank you very much! 回答1: As this request is quite high and needs capacity planning with our sales team, same with your request for N2_CPUS. We recommend for you to contact sales team [1] for capacity planning, and we will be happy to have someone contact you. [1] https://cloud.google.com/contact/

Why does this happen: Quota 'N2_CPUS' exceeded. Limit: 24.0 in region us-central1

∥☆過路亽.° 提交于 2020-02-04 22:59:10
问题 I got the error when trying to create a 64 CPU compute engine. However, looking at the Quota (IAM & Admin), I see the quota at 72. Does anyone know why this is happening and what I can do about it? Thank you very much! 回答1: As this request is quite high and needs capacity planning with our sales team, same with your request for N2_CPUS. We recommend for you to contact sales team [1] for capacity planning, and we will be happy to have someone contact you. [1] https://cloud.google.com/contact/

Got an error “ZONE_RESOURCE_POOL_EXHAUSTED” when creating a new instance on Google Cloud

孤者浪人 提交于 2020-02-03 23:39:08
问题 Recently I created a number of GPU instances on Google Cloud across 5 regions. However when I tried to create more than a number of instances in one region, I got an error ZONE_RESOURCE_POOL_EXHAUSTED . I googled about the error, and found here mentioned about it's a resource limit on the corresponding region. I wonder if it's actually a quota limit per user account or project, or the only way is to wait for other users to release their resources ? 回答1: If you see 'ZONE_RESOURCE_POOL