简体   繁体   English

Google云端平台:将VPC与托管实例组配合使用

[英]Google Cloud Platform: Using VPC with managed instance groups

In the last two weeks I had huge problems with Google Cloud Platform. 在过去的两周中,我在使用Google Cloud Platform时遇到了很多问题。 Restarting the server resulted very very often in: 重新启动服务器的结果非常常见:

"Starting VM instance "foobar-controller" failed. Error: The zone 'projects/demoday-zollhof/zones/europe-west3-b' does not have enough resources available to fulfill the request. Try a different zone, or try again later." “启动VM实例“ foobar-controller”失败。错误:区域'projects / demoday-zollhof / zones / europe-west3-b'没有足够的资源来满足请求。请尝试其他区域,或稍后再试“。

One solution I stumbled upon were managed instance groups. 我偶然发现的一种解决方案是托管实例组。 I successfully deployed my service in 3 zones in a managed instance group, however the name changed to "foobar-controller-group-9990". 我已在托管实例组的3个区域中成功部署了我的服务,但是名称更改为“ foobar-controller-group-9990”。 I would like to stick to the name "foobar-controller", because other services rely on this name (and the 9990 indicates to me, that it could change...). 我想坚持使用“ foobar-controller”这个名字,因为其他服务都依赖这个名字(9990告诉我,它可能会改变...)。

how can I map or fix a name for the instance group so I can still use the following requests internally: http://foobar-controller/dostuff?q=12345 如何映射或修复实例组的名称,以便仍然可以在内部使用以下请求: http:// foobar-controller / dostuff?q = 12345

Thank you! 谢谢!

As you are using a Managed instance group all computes are created and managed (as the name imply) by the instance group. 使用托管实例组时,所有计算都由实例组创建和管理(顾名思义)。 You should also have more than one compute deployed with the same image. 您还应该使用同一映像部署多个计算。

One solution for this would be to deploy a LB in front of your managed instance group, this way you will be able to declare the domain name and associate it to the new LB and be able to access all the compute engines inside the IG with the same name. 一种解决方案是将LB部署在托管实例组的前面,这样您就可以声明域名并将其关联到新的LB,并能够通过IG访问IG内部的所有计算引擎。一样的名字。

This should also give you some hints on how to do it: https://cloud.google.com/load-balancing/docs/internal/#load_balancing_ip_address 这也应该为您提供一些提示,说明如何进行: https : //cloud.google.com/load-balancing/docs/internal/#load_balancing_ip_address

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google Cloud Platform将实例添加到托管实例组 - Google Cloud Platform Add Instance To Managed Instance Group 使用 Java 暂停 Google Cloud Platform 实例 - Suspend Google Cloud Platform instance using Java MongoDB 到 Google Cloud Platform VPC 不工作 - MongoDB to Google Cloud Platform VPC not working 如何在Google Cloud Platform中配置托管实例组和自动扩展 - How do I configure managed instance group and autoscaling in Google Cloud Platform 通过 VPC/VPN 的 Google 托管服务(BigQuery、云存储等) - Google Managed Services (BigQuery,Cloud Storage etc) via a VPC/VPN Google Container群集VS托管实例组 - Google Container clusters VS Managed Instance groups Google Cloud Platform - AI Platform 实例问题 - Google Cloud Platform - AI Platform Instance Issue 有什么方法可以安全地升级 Google Cloud Platform VPC? - Is there any way to safely upgrade a Google Cloud Platform VPC? Google Cloud Platform 在 VPC 网络路由中保留的地址空间 - Google Cloud Platform Reserved Address Space in VPC Network Route 谷歌云平台如何限制用户使用单个VPC? - How to restrict users to single VPC in Google cloud platform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM