官术网_书友最值得收藏!

Hosting a highly scalable application on Google Compute Engine

There are a number of ways to host a highly scalable application on GCP using Compute Engine, App Engine, and Container Engine. We'll look at a simple PHP and MySQL application hosted on GCE with Cloud SQL and see how the GCP ecosystem helps us in building it in a scalable manner.

First, we'll create a Cloud SQL instance, which will be used by the application servers. The application servers should be designed to be replicated at will depending on any events, such as CPU usage, high utilization, and so on.

So, we'll create an instance template which is a definition of how GCP should create a new application server when it is needed. We feed in the start up script that prepares the instance to our requirements.

Then, we create an instance group which is a group of identical instances defined by the instance template. The instance group also monitors the health of the instances to make sure they maintain the defined number of servers. It automatically identifies unhealthy instances and recreates them as defined by the template.

Later, we create an HTTP(S) load balancer to serve traffic to the instance group we have created. With the load balancer in place, we now have two instances serving traffic to the users under a single endpoint provided by the load balancer. Finally, to handle any unexpected load, we'll use the autoscaling feature of the instance group.

主站蜘蛛池模板: 三门峡市| 武清区| 闽侯县| 封开县| 闸北区| 尼玛县| 阿拉善左旗| 大城县| 威信县| 连城县| 千阳县| 章丘市| 无为县| 辰溪县| 墨竹工卡县| 新乡市| 金门县| 建始县| 镇安县| 罗城| 客服| 宝清县| 宁津县| 沙田区| 定西市| 隆林| 南华县| 八宿县| 新泰市| 利川市| 乌拉特中旗| 三穗县| 正镶白旗| 岢岚县| 万荣县| 八宿县| 南康市| 鹰潭市| 石嘴山市| 彭州市| 集贤县|