google-compute-engine

How to connect to the local google cloud Datastore db?

♀尐吖头ヾ 提交于 2019-12-20 03:54:13
问题 I've GAE application which creates some data in the Google Cloud Datastore and stores some binary files into the Google Cloud Storage - let's call the application WebApp . Now I have a different application running on the Google compute engine. Let's call the application ComputeApp . The ComputeApp is a backend process which is processing data created by the WebApp . I asked here in this question previously which API can I use to communicate with Datastore from the ComputeApp . As suggested

Connecting Google Cloud SQL with Wordpress on Google Compute Engine

别等时光非礼了梦想. 提交于 2019-12-20 02:56:07
问题 I've been running a successful Wordpress install on Google Compute Engine with Nginx, Php-fpm and Mysql. I noticed you can also run Wordpress on App Engine with a Cloud SQL connection as mentioned here https://developers.google.com/appengine/articles/wordpress?hl=en I want to use Wordpress on Compute Engine with the db running on Cloud SQL. On AppEngine, you need to put the following lines in the wp-config.php file if(isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'],

Google load balancer force https

一世执手 提交于 2019-12-20 02:55:09
问题 I not sure if this is possible (it wasn't last year according to the internet), but i'm hoping its available now. Is there any way of using google load balancer to force https connection only, ie. get the load balancer to redirect http requests? I can do it at the backend server, but i would rather have this handled by the load balancer. Thanks in advance, Max 回答1: I think not. As far as I know, forcing HTTPS is not a managed feature of Google Cloud Load Balancer. It will not redirect HTTP to

How do I enable http traffic for GCE instance templates?

╄→尐↘猪︶ㄣ 提交于 2019-12-19 17:27:28
问题 When creating an instance template in Google Compute Engine, how do I enable http traffic for instances created from the template? I was thinking that providing an http tag would work, but it doesn't seem to do so. 回答1: The default network in the project comes with default firewall rules "default-allow-http" and "default-allow-https" to allow traffic on port 80 and 443. These rules have a target tag setup as "http-server". When setting up the instance template you can check the box "Allow

How can you run iOS Apps on the Google Cloud even though it lacks support for IPv6

喜你入骨 提交于 2019-12-19 09:01:53
问题 A new app store policy by Apple has taken effect on June 1 so that all apps submitted to the App Store must support IPv6-only networking (https://developer.apple.com/news/?id=05042016a). How is it possible to host an app on Google Cloud Platform that only supports IPv4 (https://cloud.google.com/compute/docs/networking) and still passes Apple's review process? 回答1: The server side of the app doesn't need to be reachable over IPv6 yet. Most IPv6-only networks have a DNS64/NAT64 service to reach

service mongod start on debian doesnt work

南楼画角 提交于 2019-12-19 08:59:37
问题 I created a instance of linux debian on Google Compute Engine. I Install git, node.js, python and some other things without problems But when I install mongodb, when finish the installation and the installation try to run mongod, said: [FAIL] Starting database: mongod failed! I try with: sudo service mongod start and was the same. I try many thing like: rm mongodb.lock Change path of data to / data / db Change permisions to mongodb.log But nothing work. When I run /etc/init.d/mongod start The

Curl to Google Compute load balancer gets error 502

江枫思渺然 提交于 2019-12-19 05:34:39
问题 If I curl a POST request with file upload to my google compute load balancer (LB) I get a 502 error. If I do the same curl to the worker node behind the LB, it works . If I use a library like PHP Guzzle, it works either way. If I do a basic GET request on the LB, I get the correct response but the worker log does not acknowledge receiving the request as if the LB cached it. What is going on? FYI, google LB newb. Thanks Edit: I'm using GCE HTTP LB. The Curl command looks like this: curl http:/

gcloud compute list networks error: “Some requests did not succeed: - Insufficient Permission”

会有一股神秘感。 提交于 2019-12-19 03:31:31
问题 I have created a project and setup a Windows 2012 VM. I am trying to list the networks in the project. Here are the steps I performed: Initially, I logged into the VM as per the credentials created when creating the VM. From there, opened the Google Cloud SDK Shell (As Administrator) Next, I set the project name as follows: C:\windows\system32> gcloud config set project <proj-name> Then, I tried to list the networks (should only be one - default). Here is the error relating to permission. C:

Is 1 vCPU on Google Compute Engine basically half of 1 physical CPU core?

时间秒杀一切 提交于 2019-12-18 21:48:14
问题 Google's Machine types page states that: For the n1 series of machine types, a virtual CPU is implemented as a single hardware hyper-thread on a 2.6 GHz Intel Xeon E5 (Sandy Bridge), 2.5 GHz Intel Xeon E5 v2 (Ivy Bridge)...etc Assuming that a single physical CPU core with hyper-threading appears as two logical CPUs to an operating system, then if the n1-standard-2 machine that is described as 2 virtual CPUs and 7.5 GB of memory, then this essentially means 1 CPU core, right? So if I'm trying

Google Compute Engine: how to set hostname permanently?

天涯浪子 提交于 2019-12-18 11:50:03
问题 How do I set the hostname of an instance in GCE permanently? I can set it via hostname,but after reboot it is gone again. I tried to feed in metadata (hostname:f.q.d.n), but that did not do the job. But it should work via metadata (https://github.com/GoogleCloudPlatform/compute-image-packages/tree/master/google-startup-scripts). Anybody an idea? 回答1: The most simple way to achieve it is creating a simple script and that's what I have done. I have stored the hostname in the instance metadata