- Google Cloud Platform Cookbook
- Legorie Rajan PS
- 245字
- 2021-08-27 19:13:26
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.
- 虛擬儀器設(shè)計測控應(yīng)用典型實例
- Word 2003、Excel 2003、PowerPoint 2003上機指導(dǎo)與練習(xí)
- 亮劍.NET:.NET深入體驗與實戰(zhàn)精要
- Dreamweaver 8中文版商業(yè)案例精粹
- Photoshop CS4經(jīng)典380例
- Java開發(fā)技術(shù)全程指南
- 電腦上網(wǎng)直通車
- Python Algorithmic Trading Cookbook
- RPA:流程自動化引領(lǐng)數(shù)字勞動力革命
- Photoshop CS3特效處理融會貫通
- 網(wǎng)絡(luò)組建與互聯(lián)
- 基于ARM 32位高速嵌入式微控制器
- 電氣控制與PLC技術(shù)應(yīng)用
- LAMP網(wǎng)站開發(fā)黃金組合Linux+Apache+MySQL+PHP
- Bayesian Analysis with Python