google cloud next 2017 seoul extended 1st session

Post on 05-Apr-2017

396 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Serverless & Free Tier Overview

㈜CTO | Harrison

Jung

Serverless

Serverless != No Server• Serverless 는

(물리적 ) 서버가없는아키텍쳐가아닌

(논리적 ) 서버가없는아키텍쳐

• Micro Server Architecture => Functional System

• Cloud 에서제공해주는기능들을최대한활용

• 모든하드웨어관리 , OS 관리 , 시스템관리는 Cloud 에맡김

• FaaS ( Functions as a Service )

Serverless 의 장점• Auto-Scaling : 그냥존재자체가 Auto-Scaling

• 함수단위로움직이기에우리가서버를애초에컨트롤불가능

• 몇대의서버에서해당함수가동작할지우리는모른다 .

• 비용 : 정확히쓴만큼낸다 .• 1 달에 10 번도호출되지않는서버비용을과연지출해야하는걸까 ?

• 어떨땐 1 분동안 1 만명이들어오기도한다 . 하지만하루중나머지 1439분은 ? – 서버로구성한다면몇대의서버가필요할까 ?

구성은 어떻게 ?•연산

•저장공간

• Simple Messaging

• Monitoring, Logging

=> Google Cloud Functions

=> Google Cloud Storage

=> Google Cloud Pub/Sub

=> Google Stackdriver

Cloud Functions

Cloud Pub/Sub

Cloud Storage

사용자 Image 업로드

Image 파일복사

이벤트 Noti

이벤트트리거

Image 파일보관

SampleImage 리사이징Image 리사이징

이벤트의 흐름Cloud Logging

Cloud APIs

Cloud Dataflow

Cloud Storage

Compute Engine

Cloud Function

App Engine

Cloud Network

Etc…

Cloud Pub/Sub

Cloud Functions• Serverless 의 핵심• Auto-Scale : 요청수 만큼 자동 배포• Node.js v 6.9.1• Cloud Pub/Sub , HTTP Trigger , Cloud Storage Bucket• 과금 방식• 호출 횟수 : 100 만건당 $0.4• 메모리 (GB) * 사용시간 ( s ) : 40 만 GB-seconds 당 $1• CPU 성능 ( GHz ) * 사용시간 ( s ) : 10 만 GHz-seconds 당 $1• ( 아주 러프하게는 간단히 100 만건당 $1 로 계산하면 얼추 맞음 )

Free Tier

Free Tier•12 Months

• $ 300

•Always Free• Google Compute Engine

• Google Cloud Storage

• Google Cloud Pub/Sub

• Google App Engine

• Google Cloud Functions

• Google Cloud Source Repo.

• Etc..

Free Tier 제한Compute Engine

• f1-micro : 공유 v1CPU / 0.64GB RAM ( US Only )

• 30 GB HDD

• 1GB Network Egress

Cloud Storage

• 5GB Storage ( US Only )

• 1GB Network Egress

Free Tier 제한Cloud Functions

• 2M Invocations Per Month

• 400,000 GB-Seconds ( RAM )

• 200,000 GHz-Seconds ( CPU )

• 5GB Network Egress

Cloud Pub/Sub

• 10GB Message per Month

Free Tier 제한App Engine

• 28 Instance hours per day

• 5GB Storage

• 100 E-mail per day

Cloud Datastore

• 1GB Storage

• 50,000 Read

• 20,000 Write

• 20,000 Delete per day

Free Tier 제한Google Stackdriver

• 5GB Logs with 7 day reten-

tion

Cloud Source Repositories• 1 GB Private Hosting

top related