google-compute-engine

Setting up a cronjob on Google Compute Engine

牧云@^-^@ 提交于 2020-08-15 14:23:08
问题 I am new to setting up cronjobs and I'm trying to do it on a virtual machine in google compute engine. After a bit of research, I found this StackOverflow question: Running Python script at Regular intervals using Cron in Virtual Machine (Google Cloud Platform) As per the answer, I managed to enter the crontab -e edit mode and set up a test cronjob like 10 8 * * * /usr/bin/python /scripts/kite-data-pull/dataPull.py . I also checked the system time, which was in UTC, and entered the time

Permission denied (publickey) FreeBSD in Google Computer Engine

僤鯓⒐⒋嵵緔 提交于 2020-08-06 06:31:05
问题 I have problems accessing my instance via SSH through the google cloud and also when trying to connect remotely, when trying to connect using the gcloud command on my mac it tells me: Permission denied (publickey). ERROR: (gcloud.beta.compute.ssh) [/usr/bin/ssh] exited with return code [255]. The command I am using is the following: gcloud beta compute --project "my-instance" ssh --zone "server" "freebsd-11-1" What can it be ?, I import the SSH keys into the metadata of my instance. I don't

not have enough resources available to fulfil the request try a different zone

只愿长相守 提交于 2020-08-04 16:25:36
问题 not have enough resources available to fulfill the request try a different zone All of my machines in the different zone have the same issue and can not run. "Starting VM instance "home-1" failed. Error: The zone 'projects/extreme-pixel-208800/zones/us-west1-b' does not have enough resources available to fulfill the request. Try a different zone, or try again later." 回答1: I am having the same issue. I emailed google and figured out this has nothing to do with quota. However, you can try to

Cloud SQL or VM Instance to host MySQL Database

梦想的初衷 提交于 2020-07-20 07:48:50
问题 I have a website and i am confused where to host its database. Google Cloud SQL D1 tier has 0.5 GB RAM and its cost is $1.46 per day. GCE n1-standard-2 has 7.5 GB RAM and its cost is 1.68 per day. I am hosting my current database on Cloud SQL and the performance goes down when concurrent active connections goes up. It must because of low RAM of cloud sql. I can set up mysql server on VM Instance and can give remote access to external servers. Also, Cloud SQL has limitation on maximum