Coursera for GCP ACE Week5

Yujin Shin·2021년 3월 5일
0

Section3.1

Compute Engine : create and run VM on Google Infrastructure

Computer Engine offers Managed VM

  • no upfront investment (선불)
  • fast and consistent performance
  • create VMs with GCP Console or gcloud
  • Run images of Linux or Windows Server - customized 가능 / physical server에 import 가능
  • Pick memory and CPU 등등,, 종류 매우 다양함. predefined type도 있고 custom VM 가능
  • Pick GPU - many GCP zone 있다.
  • disk - standard or SSD
  • Pick local SSD for scratch space(임시공간) - 사용하는 App이 임시공간이 필요하면 사용가능 but 서버가 죽으면 사라짐

Managed/Unmanaged instance groups

  • UnManaged instance groups : 동일하지 않고 common template를 공유하지 않는 instances들.
    You can use unmanaged instance groups to accommodate your pre-existing configurations for load balancing task.
  • Managed instance groups(MIG) : multiple identical VMs, 만들면 automatically scale instances(자동확장)를 할 수 있음.
    instance templates를 만들 수 있음, group으로 묶음. 자동 업데이트 프로그램을 사용하면, 자동 업데이트가 가능하다. template가 out of dates or chages to the configureation하려면 새로운 instence template를 만들면 됨.
  • MIG 적합한 사례 :
  • 웹사이트 프론트엔드와 같은 "Stateless serving" workloads ; client, server의 동작, 상태정보 저장하지 않는 상태
  • "Stateless batch", high-performance, or high-throughput compute workloads, such as image processing from a queue
  • 데이터베이스 같은 "Stateful applications", legacy applications, and long-running batch computations with checkpointing (beta)

3.2

Q: Kubernetes nodes always represent a compute instance. In GCP, that compute instance is a VM in Compute Engine.

3.3

  • Google App Engine : GCP에서 구동되는 Web Framework, Fully managed by Google 하기 때문에 Infra 신경 쓰지 않고 코드에만 집중 가능 (Paas)
    웹 어플리케이션 같은 워크로드가 가변적이거나 예측할 수 없는 어플리케이션에 적합.
  • Requirements(Standard 버전)
    1) Specifit version of Java, Python, PHP, GO => App Engine을 support 해주는 library 필요
    2) Standard환경은 Sandbox에서 코드를 실행하게 한다; Sandbox : 실행되는 서버의 물리적인 위치 하드웨어, 운영 체제와는 독립적인 소프트웨어 구조.제한을 가한다
    a) No writing to local files
    b) All requests time out at 60s
    c) Limits on third-party software (제3 sw 설치못하게)
  • Cloud Functions : GCP의 이벤트 기반 서버리스 컴퓨팅 플랫폼 / cloud function을 통해 코드로 클라우드 서비스를 연결할 수 있다.
    1) 개발자 환경 간소화 및 개발자 속도 증가
    2) 사용한 만큼만 지불
    3) 개방형 기술로 종속 방지

3.4



1. Cloud Datastore
Structured Objects, transactions by SQL
2. Cloud BigTable
store 큰 structured Objects, SQL X, multi transactions X

  • 낮은 지연시간으로, 높은 읽기, 쓰기 처리량 등등 (ex. Log, 구매내역, 보고서 등등)
  • 좋은 확장성, 간단한 관리, 클러스터 크기 조절 가능
  1. Cloud Storage
    BLOB,
  2. Cloud SQL (MySQL, PostgreSQL 지원)
    GCP에서 유지하고 관리해주는 fully managed DB Service
  3. Cloud Spanner
    Horizontal Scalability(수평적 확장 - 서버를 추가) 할 때 사용.
  • Use case : 소매산업에서 financial app or Inventory app
  • SQL 지원, 강한 Consistency, 수평적 확장, 자동 복제 등 지원
  1. BigQuery

표 암기하자

3.5

💥 VPC(Virtual Private Cloud) : firewall 설정 가능,

  • subnet : IP범위를 정하고 거기서 서브넷을 통해 더 세부적으로 나누는 것.
    💥 Load Balancing : 한번에 많은 요청으로 트래픽이 급증했을 때 여러대의 VM에 트래픽을 분산 시키는 것.
    💥 Auto Scaling : 리소스 사용량에 따라 VM을 자동 증가, 감소 시켜주는 기능 / managed Instance Group에서 사용 가능

  • If no instances are actively using that IP range it can be replaced

3.7

Deploy manager : Google Cloud 리소스의 생성 및 관리를 자동화 하는 인프라 배포 서비스

채점 대상 외부 도구Qwiklabs - Deployment Manager: Full Production
시작됨
만료 년 4월 12일 오후 3:59 KST
계속하기

profile
아무것도 몰라여 @_@

0개의 댓글