使用现有的VM Instace(bitnami)进行自动调整实例组 [英] Use existent VM Instace (bitnami) for Autoscale Group of Instances

查看:171
本文介绍了使用现有的VM Instace(bitnami)进行自动调整实例组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Google Cloud使用Bitnami Wordpress。现在,我需要设置一个实例模板 - >实例组 - >负载平衡器,并用此,我的系统将自动调节:)

但是,我有VM使用Bitnami的启动镜像创建的实例,我需要放入一组实例。



你能帮我解决这个问题吗? $ b

解决方案

在GCP上创建高度可伸缩的Web应用程序的答案很长,可以作为博客文章发布。由于在这里写出整个答案将会很长并且很难阅读,因此我已将答案分为三部分。 正如您所提到的,创建Highly GCP上的可扩展Web应用程序可以分为以下几类:


  1. 实例模板

  2. 托管实例组和自动调节

  3. 网络/ HTTP负载均衡器

实例模板:这是创建此高级Web应用程序的第一步。我列出了创建实例模板 此处的步骤。您必须在模板中进行一项更改,即将CentOS 6映像更改为bitnami映像。



最佳做法:从我的角度来看,最好使用安装的所有软件创建自定义映像,而不是使用启动脚本。因为在组中启动新实例所需的时间应尽可能少。这将增加您扩展您的网络应用程序的速度。

2。管理实例组和自动调节:我已经撰写了关于创建管理实例组和自动调节的步骤。这里。由于自动缩放和负载平衡是独立的,因此它们中的任何一个都可以先设置。



最佳实践:自动缩放和加载平衡器为实例提供健康检查。从我的角度来看,为这两项服务设置健康检查是多余的,我认为负载平衡器的健康检查本身就会很好。

3。负载均衡器: GCP提供两种类型的负载均衡器,即网络和HTTP负载均衡器。我已经写了 Network Vs HTTP(s) 此处的差异。因为我认为你将用bitnami映像构建一个web堆栈,所以我写了关于设置 HTTP负载平衡器 这里



通过遵循这些三个步骤,我希望您能够构建<强大的>高度可扩展的网络应用程序。这个答案是基于我的观点。如果有任何不正确的或如果我遗漏了某些东西,请随时发表评论,我会将其添加到表格中。


I am using a Bitnami Wordpress for Google Cloud. Now, I need to setup a Instance Template -> Group of instances -> Load balancer and with this, my system will be autoscaling :)

But, I have the VM instance created using an boot image by Bitnami, and I need to put in a group of instance.

Can you help me with this, please?

解决方案

The answer for creating a Highly scalable web application on GCP is very long and could be made as a blog post. Since writing the whole answer here will be very long and difficult to read, I have split the answer into 3 parts.

As you have mentioned, the steps for creating a Highly scalable web application on GCP can be divided as:

  1. Instance template
  2. Managed Instance Group and autoscaling
  3. Network / HTTP(s) load balancer

1. Instance Template: This is first step in creating this high scale web app. I have listed out the steps for creating an Instance Template here. One change, that you have to make in the template, is to change from CentOS 6 image to bitnami image.

Best practices: From my perspective, it is better to create a custom image with all your software installed than to use a startup script. As the time taken to launch new instances in the group should be as minimum as possible. This will increase the speed at which you scale your web app.

2. Managed Instance group and Autoscaling: I have written about the steps for creating Managed Instance group and Autoscaling here. As autoscaling and load balancing are independent, either of them can be set up first.

Best practices: Both autoscaling and load balancers offer health check to the instances. From my perspective, setting up the health check for both the services are redundant and I think health check for load balancer alone would do good.

3. Load balancer: GCP offers two types of load balancers namely, Network and HTTP(s) load balancer. I have written about the differences Network Vs HTTP(s) here. Since I assumed that you will be building a web stack out of bitnami image, I have written about the steps for setting up the HTTP load balancer here.

By following these three steps, I hope you would be able to build an highly scalable web app. This answer is based on my perspective. If anything is incorrect or If I had missed something, please feel free to comment and I will add it to the table.

这篇关于使用现有的VM Instace(bitnami)进行自动调整实例组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆