Articles of 谷歌云平台

Google计算引擎:浮动IP?

我有两个服务器与短暂的外部ips。 ServerA ServerB 和我有一个静态外部IP地址(ABCD),它是目前连接到ServerA。 ServerA是我的主要负载均衡器,ServerB是我的第二个负载均衡器。 我如何在Google Cloud上使用浮动IP? 我需要使用gcloud吗? 这是一个很好的解决scheme? 示例故障转移命令: gcloud config set project project-name gcloud compute instances delete-access-config ServerA –access-config-name 'External NAT gcloud compute instances delete-access-config ServerB –access-config-name 'External NAT' gcloud compute instances add-access-config ServerB –address ABCD

Stackdriver Trace和Cloud PubSub有哪些正确的Google Compute Engine范围?

我正在尝试设置包含trace和pubsub作用域的节点池/集群,但文档似乎将两个作用域都排除在列表之外。 https://cloud.google.com/sdk/gcloud/reference/compute/instances/create

GCE澳大利亚地区VPC自动子网分配

我正尝试在GCE中使用澳大利亚地区(任何区域)创build一个新的服务器实例,但自动VPCnetworking似乎没有列出澳大利亚地区? 这意味着没有一个子networking可用于任何新的澳大利亚地区。 当我尝试使用“遗留”types的另一个项目时,它会自动从我的全局子networking分配一个内部IP。 有没有办法手动添加子网到自动types,还是我需要切换到自定义的VPC,然后添加子网? 我不想切换到自定义,如果它不允许我这样做,我可以看到,你不能回去!

如何解决dpkgerror handling包google-cloud-sdk

我为我的Google Cloud Platform实例select了Debian 9,并且正在运行sudo apt update和sudo apt upgrade ,直到昨天,我安装了apache(没有别的),并且没有做任何其他的系统修改。 我通常通过SSL连接到虚拟机,并保持窗口打开几个小时,但昨天,试图安装libopencv-dev通过运行sudo apt update , sudo apt upgrade和sudo apt install libopencv-dev ,我得到以下错误: myusername@instance-1:~$ sudo apt update Ign:1 http://deb.debian.org/debian stretch InRelease Get:2 http://deb.debian.org/debian stretch-updates InRelease [88.5 kB] Get:3 http://deb.debian.org/debian stretch-backports InRelease [82.9 kB] Hit:4 http://deb.debian.org/debian stretch Release Hit:5 http://security.debian.org stretch/updates InRelease Hit:7 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease Hit:8 http://packages.cloud.google.com/apt google-cloud-compute-stretch […]

/ usr / bin / google_accounts_daemon对于GCE虚拟机的function有多重要?

htopbuild议google_accounts_daemon占用我虚拟机内存的3%。 USER VIRT RES SHR CPU% MEM% Command root 67480 16816 3292 0.0 2.8 /usr/bin/python3 /usr/bin/google_accounts_daemon 我遇到了OOM条件 – 通常在configurationpipe理运行时 – 我很好奇,如果我可以禁用此服务没有严重的后果。

如何loggingGCP实例的stream量活动?

我不断收到来自GCP的警告,说明我的GCP实例有可疑活动,他们是对的。 在我的账单中,我一直看到大量的stream量到达中国。 Compute Engine Network Internet Egress from APAC to China 我真的很担心这个 我怎样才能logging这些stream量,并有什么办法阻止这种情况发生。 我需要让所有的IP都允许这个实例。 我可以阻止对中国的交通吗?

在Google Compute Engine实例上执行“sudo reboot”是否安全?

我已经使用Google Compute Engine 2个月了,我已经安装了一些东西。 刚刚安装了一个新的内核,所以需要重新启动。 我想知道如果sudo reboot是安全的。 意味着重新启动不会消除实例上安装的所有内容?

使用Deployment Manager创buildcompute.v1.instanceTemplate时出现一个神秘的缺失字段错误

我正在尝试使用Deployment Manager(v2)创build一个compute.v1.instanceTemplate ,但出现以下错误: Unexpected response from resource of type compute.v1.instanceTemplate: 400 {statusMessage=Bad Request, errors=[{message=Invalid value for field 'resource.properties': ''. Instance Templates must provide instance properties., domain=global, reason=invalid}]} 我想这是抱怨失踪的财产,但我不能为了我的生活找出哪一个可能是。 我已经看了InstanceTemplates资源和高级部署 示例 ,我似乎没有错过任何东西。 虽然我会很高兴被certificate是错误的。 以下是使用gcloud deployment-manager deployments describe –log-http name的完整资源gcloud deployment-manager deployments describe –log-http name : { "id": "redacted", "insertTime": "2015-10-03T05:13:33.325-07:00", "updateTime": "2015-10-03T05:42:50.152-07:00", "name": "tpl-redacted", "type": "compute.v1.instanceTemplate", […]

排查Google App Engine 500内部服务器错误

有什么办法来正确排除GAE 500服务器错误的故障? 我知道我可以从console.developers.google.com – >监视 – >日志中查看,但是他们没有多大意义。 只有同样的事情,我可以从浏览器networking响应500内部服务器错误。 我正在寻找的是类似的日志apache.log或php.log实际上会打印一个错误stacktrace或发生在应用程序的exception。

使用Terraform创buildGCE实例,附加辅助磁盘时发生错误?

我的terraform文件看起来像这样。 resource "google_compute_disk" "sqlserversecondary" { name = "sql-server-secondary" type = "pd-ssd" zone = "us-central1-a" size = "512" } resource "google_compute_instance" "sqlserver2016rc2" { name = "sqlserver2016rc2" machine_type = "n1-highmem-8" tags = ["database", "sqlserver2016rc2"] zone = "us-central1-a" disk { image = "sqlserver2016" size = "120" } disk { image = "sql-server-secondary" } network_interface { network = "default" […]