GCP์ ๋ํ ๋์์
https://www.youtube.com/watch?v=JtUIQz_EkUw&t=783s
์์๋(flowchart)๋?
์ผ์ ์ฒ๋ฆฌํ๋ ๊ณผ์ ์ ์์๋๋ก ๊ฐ๋จํ ๊ธฐํธ์ ๋ํ์ผ๋ก ๋์ํํ ๊ฒ์ ์๋ฏธ
Google Cloud Platform(GCP)์ ์ปดํฌ๋ํธ๋ฅผ ์ฌ์ฉํ ๋, ์ด๋ค ๊ธฐ์ค์ผ๋ก ์ ํํ๋ฉด ๋๋์ง์ ๋ํด ํ๋ฆ๋๋ก ์ ๋ฆฌ๋์ด์๋ค.
https://medium.com/google-cloud/a-gcp-flowchart-a-day-2d57cc109401 ๋ธ๋ก๊ทธ ์ฐธ๊ณ
Compute
์ผ์ชฝ์ผ๋ก ๊ฐ์๋ก ์ปค์คํฐ๋ง์ด์ง์ ์์ ๋๊ฐ ๋์์ง๊ณ , ์ค๋ฅธ์ชฝ์ผ๋ก ๊ฐ์๋ก ์ฌ์ฉ์๊ฐ ์ง์ ๊ด๋ฆฌํด์ผ ํ ๊ฒ๋ค์ด ๋ง์์ง๋ค.
๋ฐ๋ผ์, ์ค๋ฅธ์ชฝ์ผ๋ก ๊ฐ์๋ก ๊ตฌ๊ธ ํด๋ผ์ฐ๋๊ฐ ๊ด๋ฆฌํด์ค๋ค.
GCE๋ GKE๋ผ๊ณ ๋ ํ๋ค๊ณ ํ๋ค.
https://cloud.google.com/hosting-options?hl=ko
COMPUTE ENGINE — ํ์ฅ ๊ฐ๋ฅํ ๊ณ ์ฑ๋ฅ ๊ฐ์ ๋จธ์
KUBERNETES ENGINE — Kubernetes๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํ๋ ์ปจํ ์ด๋์ ์ ํ๋ฆฌ์ผ์ด์ ์ ๋ฐฐํฌ, ๊ด๋ฆฌ, ํ์ฅ
GOOGLE APP ENGINE — Google ์ธํ๋ผ์์ ์ธ์ด์ ์๊ด์์ด ํ์ฅ ๊ฐ๋ฅํ ์น ๋ฐ ๋ชจ๋ฐ์ผ ๋ฐฑ์๋ ๊ตฌ์ถ
CLOUD FUNCTIONS — ํด๋ผ์ฐ๋ ์๋น์ค๋ฅผ ๊ตฌ์ถํ๊ณ ์ฐ๊ฒฐํ๊ธฐ ์ํ ์๋ฒ๋ฆฌ์ค ํ๊ฒฝ
Decision Tree
1. ๋ชจ๋ฐ์ผ์ด๋ HTML5๋ก ๊ฐ๋ฐํ๋๊ฐ?
2. ์ด๋ฒคํธ ๊ธฐ๋ฐ์ ์ฑ์ ๊ฐ๋ฐํ๋๊ฐ?
3. ํน์ OS๋ ์ปค๋์ ์ฌ์ฉํ๋๊ฐ? GPU๋ฅผ ์ฌ์ฉํ๋๊ฐ?
4. HTTP/S ์๋น์ค๋ฅผ ์ฌ์ฉํ๋๊ฐ? ์ด๋ฏธ ์กด์ฌํ๋ ์ฑ์ธ๊ฐ? ์ฌ๋ฌ ํ๊ฒฝ์ ๋ฐฐํฌ๋๋๊ฐ?
5. ์ปจํ ์ด๋๋ฅผ ์ฌ์ฉํ๋๊ฐ?
6. ์ฟ ๋ฒ๋คํฐ์ค๋ฅผ ์ฌ์ฉํ๋๊ฐ?
์๋ ๋์์์ ๋ณด๋ฉด ์ต์ ์ ๋ํด์ ์ด๋ ๊ฒฝ์ฐ์ ์ฌ์ฉํ๋๊ฒ์ด ์ ํฉํ์ง ์ ์ ์๋ค.
https://www.youtube.com/watch?v=2tLXKCgqwLY
๋์์ ์์ฝ)
- Firebase
- Mobile Developer
- storage
- notification
- synching
- Google Cloud Function
- event-driven
- a glue connecting APIs together
- Google App Engine
- Too intertwined? Running legacy code?
- Fast Auto scaling => For spikey load
- Google Container Engine
- Cloud Run
- brings server-less principles and containers
- flexibility
- running containers
- Google Compute Engine
- High flexibility
- gives VM
- without virtually any changes
- CPU, memory, disk -> bill
- Google Kubernetes Engine
- spin up new container automatically -> Grow/Shrink
์คํ ๋ฆฌ์ง ํ์ ์ ํ
๊ตฌ๊ธ ํด๋ผ์ฐ๋ ์คํ ๋ฆฌ์ง ์ ํ ์ค๋ช ๐๐ป https://cloud.google.com/products/storage
๋์คํฌ, ์คํ ๋ฆฌ์ง์ ๊ฐ์ ์ํ๋ฟ๋ง ์๋๋ผ, ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ ๊ฐ์ด ๋ค๋ฃฌ๋ค.
๐๐ป GCP์์ ์คํ ๋ฆฌ์ง์ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ ํํ๊ธฐ (๋์์)
https://www.youtube.com/watch?v=mmjuMyRBPO4
- Cloud Storage
- standard
- best latency
- highest availability
- Durable Reduced Availability
- reduced availability expectation
- lower price
- Nearline
- archival scenarios
- less than once a month
- standard
- Persistent Disk
- Cloud Filestore
- Cloud Firestore for Firebase
- Data Transfer Service
Network Tier
document :
https://medium.com/google-cloud/gcps-standard-tier-networking-performance-c66350cf4763
youtube :
https://www.youtube.com/watch?v=wsdgWGE-mwE
lower throughput
higher latency
lower cost
Premium tier packets spend more time on Google’s network, and thus perform better (but cost more).
ํ๋ฆฌ๋ฏธ์์ ๊ฐ๊ฒฉ์ ๋น์ธ์ง๋ง, ์ํ๋ฅ๋ ฅ์ด ๋ ์ข๋ค.
Standard tier packets spend less time on Google’s network, and thus, perform worse (but cost less!)
์คํ ๋ค๋๋ ๊ฐ๊ฒฉ์ ์ ๋ ดํ์ง๋ง, ํ๋ฆฌ๋ฏธ์๋ณด๋ค ์ํ๋ฅ๋ ฅ์ด ๋จ์ด์ง๋ค.
How much performance am I losing?
How much money am I saving?
์ด ๋๊ฐ์ง ์ง๋ฌธ์ ํตํด ํ๋ฆฌ๋ฏธ์๊ณผ ์คํ ๋ค๋ ์ฌ์ด์์ ์ ํํ๋ฉด ๋๋ค.
Cloud IAM
https://www.youtube.com/watch?v=96HlT4f2AUU
Identity - WHO
- Google Account
๊ฐ๋ฐ์, ๊ด๋ฆฌ์, Google Cloud์ ์ํธ์์ฉํ๋ ๋ค๋ฅธ ๋ชจ๋ ์ฌ๋์ ๋ํ๋ธ๋ค. - Service Account
์ ํ๋ฆฌ์ผ์ด์ ์ ๊ณ์ ์ด๋ค. ์ ํ๋ฆฌ์ผ์ด์ ์ ํ์ํ ๋งํผ ์๋น์ค ๊ณ์ ์ ์์ฑํ ์ ์๋ค. - Google Group
๊ตฌ๊ธ ๊ณ์ ๊ณผ ์๋น์ค๊ณ์ ์ ํฉ์น ๊ฒ์ผ๋ก, ์ฌ๋ฌ ์ฌ์ฉ์์ ๋ชจ์์ ์ก์ธ์ค ์ ์ฑ ์ ํธ๋ฆฌํ๊ฒ ์ ์ฉํ ์ ์๋ค. - Google Apps Domain
๊ทธ๋ฃน๊ณผ ๊ฐ์ด ํน์ ์กฐ์ง์ ๋ชจ๋ ์ฌ์ฉ์๋ค์๊ฒ ๊ถํ์ ๋ถ์ฌํ ์ ์๋ค.
Resource
- Google Cloud Project
- Cloud Storage
- Cloud Pub/Sub
Permissions
- Service
- Resource
- Verb
https://cloud.google.com/iam/docs/permissions-reference
IAM permissions reference | Cloud IAM ๋ฌธ์ | Google Cloud
cloud.google.com
PUB/SUB๋ง๋ค๊ธฐ => pubsub. topics. list
ํด๋ผ์ฐ๋ ์คํ ๋ฆฌ์ง์ ํ์ผ ์์ฑ => stroage. bucket. create
Roles
- Owner
ํธ์ง์ ๊ถํ + ๊ตฌ์ฑ์ ๊ด๋ฆฌ ๊ถํ - Editor
๋ทฐ์ด ๊ถํ + ์์์ ์์ฑ, ์ญ์ , ๋ณ๊ฒฝํ ์ ์๋ ๊ถํ - Viewer
๊ตฌ๊ธ ํด๋ผ์ฐ๋ ์์์ ๋ณด๊ธฐ๋ง ๊ฐ๋ฅ
'GCP' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
GCP Operation / Stackdriver (์ด์) (0) | 2020.06.01 |
---|---|
Qwiklab : Cloud Engineering (0) | 2020.05.16 |
GCP ๊ตฌ๊ธ ํด๋ผ์ฐ๋ ์ฉ์ด ์ ๋ฆฌ (0) | 2020.04.11 |
์ฟ ๋ฒ๋คํฐ์ค (0) | 2020.04.04 |
Docker - ๋์ปค ์ฌ์ฉ๋ฒ (0) | 2020.03.30 |