Articles of 谷歌 计算引擎

有我可以加载我的networking服务器上的软件知道我的stream量有多less去中国?

我在Google Cloud上有15台虚拟机,并且想知道哪一台虚拟机将数据导出到中国。 我怎么知道哪一个在做所有的stream量? 它可能已被黑客攻击,并希望解决它。

Google Compute Engine在启动时不会调整磁盘的大小

根据谷歌的文件 : 如果您创build或调整根永久磁盘的大小或从映像或快照创build磁盘,则虚拟机实例可以在重新启动实例后自动调整分区的大小以识别额外的空间。 只要其支持的操作系统之一 CentOS 6 & CentOS 7 v20160418 or newer Yes. These images will automatically resize root partitions up to 2 TB. Even if the disk is larger than 2 TB, the operating system only recognizes up to 2 TB. 来源图片: centos-7-v20170523 但是,/ dev / sda1似乎没有被重新分区来占用额外的空间。 [redacted@redacted ~]$ sudo lsblk NAME MAJ:MIN RM […]

远程服务器被阻止

我有几个我的谷歌计算引擎实例从林德build立服务器。 我没有改变任何configuration,但截至今天,我不再能够连接到我的计算实例从该服务器。 两者之间的所有端口上的所有stream量似乎都被阻塞了。 任何想法如何诊断和解决这个问题? 任何机会谷歌只是阻止我的外部服务器的IP? 我能够从其他相同的configurationlinode服务器连接就好了。 我试着按照这里的说明: https : //cloud.google.com/compute/docs/troubleshooting#ssherrors 。 防火墙规则是好的,允许ssh以及networkingstream量。 nc [my ip] 22命令刚刚超时,并创build一个新的实例,并执行gcloud compute ssh temp-machine也超时。 我不知道发生了什么。 一切正常,没有任何改变,只要我们的configuration,但突然间两个服务器之间的所有stream量似乎被阻止。 任何帮助将不胜感激! 更新 我的Google防火墙规则非常开放,如下所示: 名称networkingSRC_RANGES规则SRC_TAGS TARGET_TAGS allow-ftp default 0.0.0.0/0 tcp:21,tcp:60000-60100 默认允许-http默认0.0.0.0/0 tcp:80 http-server default-allow-https默认0.0.0.0/0 tcp:443 https-server default-allow-icmp default 0.0.0.0/0 icmp default-allow-internal default 10.240.0.0/16 tcp:0-65535,udp:0-65535,icmp default-allow-ssh default 0.0.0.0/0 tcp:22 更新2 Google似乎列入了由Linode分配的大量IP地址,阻止我们客户的网站与计算引擎上的软件之间的stream量。 在我的一个linode上,我不停地申请一个新的IP地址,最后得到一个工作正常,这对我来说,这是没有什么在我的设置,而是在谷歌的一端。 今年刚刚参加GCP,这非常值得关注,尤其是除非我们另外支付$ 150 /月的费用,否则无法与他们联系。 联系Linode,看他们是否有什么可以做的。

使用Google云端本地SSD的慢速Fsync(Postgresql)

使用简单的“pgbench”testing,我发现GCE的“本地SSD”选项(SSD固态硬盘比较)的每秒事务处理速度非常低: # With Local SSD # /dev/mapper/vg0-data on /data type xfs (rw,noexec,noatime,attr2,inode64,noquota) pg-dev-002:~$ pgbench -c 8 -j 2 -T 60 -U postgres starting vacuum…end. transaction type: TPC-B (sort of) scaling factor: 1 query mode: simple number of clients: 8 number of threads: 2 duration: 60 s number of transactions actually processed: 10765 tps = 179.287875 […]

新的CentOS 7安装(Google Compute),不能将VirtualHost条目添加到/etc/httpd/conf.d/

我只是做了一个基础安装和Apache 2.4启动就好了。 我正在从运行Apache 2.2的旧服务器迁移。 当我把一个文件放到/etc/httpd/conf.d ,并且包含一个VirtualHost定义并重启服务器,它就会在启动时崩溃。 这个VirtualHost定义是我以前的服务器使用的。 # systemctl restart httpd.service Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. # systemctl -l status httpd.service ● httpd.service – The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) […]

在Google Compute Engine中重新启动后无法连接

由于过度使用,我不得不升级我的机器,导致重新启动。 之后,我无法通过PuTTY连接,只能使用Google控制台。 此外,我的SVN存储库在那里,我也无法连接到它。 我查看了“VPC Network”中的防火墙规则,在重启前它们是一样的: iptables -L的输出: [newuser@google-server ~]$ sudo iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all — anywhere anywhere ctstate RELATED,ESTABLISHED ACCEPT all — anywhere anywhere INPUT_direct all — anywhere anywhere INPUT_ZONES_SOURCE all — anywhere anywhere INPUT_ZONES all — anywhere anywhere DROP all — anywhere anywhere ctstate INVALID […]

在Google Compute Engine上运行Google App Engine

我正在尝试为应用程序引擎开发设置一个服务器。 我无法想象如何从外部访问生成的Web服务器。 我正在运行Debian镜像,Python GAE。 我有以下的防火墙规则,应该让所有的HTTPstream量通过。 我已经重新启动服务器,因为它被设置,但我不知道这是必要的。 Source Ranges: 0.0.0.0/0 Allowed Protocols or Ports: tcp:1-65535 当我启动应用程序引擎时,我没有得到任何错误: admin@dev:~$ sudo google_appengine/dev_appserver.py –port 80 appfiles WARNING 2014-08-21 18:19:18,080 api_server.py:383] Could not initialize images API; you are likely missing the Python "PIL" module. INFO 2014-08-21 18:19:18,083 api_server.py:171] Starting API server at: http://localhost:45536 INFO 2014-08-21 18:19:18,086 dispatcher.py:183] Starting module "default" running […]

我可以在Google Compute Engine实例中使用SQL Server吗?

Google计算引擎是否提供SQL Server 2012许可? networking版更具体。 我在这里没有find关于这个问题的任何文档: https : //cloud.google.com/compute/docs/infrastructure-software?hl=es

在GCE中使用StackDriver监控MongoDB 3

有没有人成功地设法监视在GCE的StackDriver的MongoDB 3群集(或独立的数据库)? 我已经在GCE中设置了一个MongoDB 3.0.6集群(具有2个副本和1个仲裁器的副本集) 我试图通过Google提供的StackDriver来监视它。 我已按照所有说明安装了监视代理程序和mongodb插件,可在此处find: https : //cloud.google.com/monitoring/agent/plugins/mongodb 当我在configuration的副本上启动代理时: sudo /etc/init.d/stackdriver-agent restart 我在/ var / log / syslog中得到以下错误: collectd[6013]: tcpconns plugin: Reading from netlink succeeded. Will use the netlink method from now on. collectd[6013]: mongo plugin: Authenticating to localhost:27017 failed: collectd[6013]: mongo plugin: Connecting to localhost:27017 failed: collectd[6013]: read-function of plugin `mongodb' failed. Will […]

如何在Google Cloud(Google Compute Engine)上安装驱动器?

我在Google Compute Engine中运行了120Gb启动驱动器的实例。 但我无法使用它。 1. sudo df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 9.9G 1.1G 8.3G 12% / tmpfs 3.6G 0 3.6G 0% /dev/shm 2. sudo ls -l /dev/disk/by-id/* lrwxrwxrwx. 1 root root 9 Nov 3 09:00 /dev/disk/by-id/google-instance-3 -> ../../sda lrwxrwxrwx. 1 root root 10 Nov 3 09:00 /dev/disk/by-id/google-instance-3-part1 -> ../../sda1 lrwxrwxrwx. […]