Please enable JavaScript.
Coggle requires JavaScript to display documents.
Google Cloud Platform Achitect - Coggle Diagram
Google Cloud Platform Achitect
Region and Zone
Challenges
Latency due to geo-distance
Low availability (no back up data center)
GCP and 20+ data centers
Region
Where to host the resources
Zones
Discrete clusters for each zone
Distinct physical infra for each zone
each zone connects together with low latency
Clound
Scalability
Peak load provisioning
Có thể thay đổi kích thước infrastructure tùy thời điểm
Elasticity
On demand provisioning
Renting when needed and releasing back when done
Maintaining data center cost
No capacity guessing needed
Go global easier
GCP = net-carbon run cloud
Renewable energy
GG Compute Engine (GCE)
Glossary
Virtual Servers
where to deploy application on cloud
GCE
Provision and manage virtual machine
Apache
Webserver
Nhiệm vụ của web server là đưa website lên internet
IP Address
Internal = locate trong mạng LAN
Vẫn còn khi stop VM
External: Locate in the internet
Lost when terminate VM
Phải khởi động lại Apache server để kích hoạt, code trong comment
Constant IP for VM
Static IP
VPC network trên GCP
Type "External IP" trên thanh search
1 more item...
Đặc điểm
2 more items...
Persistent disk
network storage devices that your instances can access
Snapshot = A copy of a pesistent disk
Image can be created
from Persistent disks, snapshots, another images, or cloud storage
Rest API
thay vì sử dụng một URL
REST gửi một yêu cầu HTTP như GET, POST, DELETE, vv đến một URL để xử lý dữ liệu
Features
Create and mangage lifecycle VM intances
load balancing and auto scaling
Attach storage
Running app on hard disk and connect to VM
network connect (e.g IP Config)
Concepts
Machine Family
E,N for general purposes
Ex; Web application
M, Memory high
C, compute heavy
Ex: Game
Machine type
Ex: e2-standard-2
e2: machine family
standard:Type of workload
2: number of CPUs
Choose hardware
Image types
Choose for software
What OS and software we want
Public image and custom image
Bootstrapping with startup script
Install OS patches or software when an VM instace is launched
Config Startup Script
Trong list Management => Automation lúc "Create"
Tạo một cái template
VM Instance Templates
Reduce Launch time with custom image
Create Image templates with pre-installed OS and softwares
Deprecated (a Mark to an out-dated image)
Hardening an image
Create a custom image
Not from a running instance
Phân biệt image với snapshot and disk
Groups and Load balancing
Instance Groups
Group them and manage as one unit
2 types
Managed IG
Identical VMs created using a template
Auto scaling-Auto healing-managed realeased
Maintain: If one instance crashes, IMG runs another Instance
Add load balancers
Release new version of application without downtime
Rolling update
Create MIG
Types
Statefull
Ex: database
Metadata preservation
Stateless
Most of situation: Application or rest API
Unmanaged Instance Group
Diversed config