Skip to main content
QUICK REVIEW

[논문 리뷰] Mitigating Cold Starts in Serverless Platforms: A Pool-Based Approach

Ping-Min Lin, Alex Glikson|arXiv (Cornell University)|2019. 03. 28.
Cloud Computing and Resource ManagementComputer Science참고 문헌 3인용 수 50
한 줄 요약

해당 논문은 Knative Serving에서 워밍 함수 인스턴스 풀을 구현하여 차가운 시작 지연을 줄이고 단일 포드 풀에서 P99를 최대 85%까지 감소시킵니다.

ABSTRACT

Rapid adoption of the serverless (or Function-as-a-Service, FaaS) paradigm, pioneered by Amazon with AWS Lambda and followed by numerous commercial offerings and open source projects, introduces new challenges in designing the cloud infrastructure, balancing between performance and cost. While instant per-request elasticity that FaaS platforms typically offer application developers makes it possible to achieve high performance of bursty workloads without over-provisioning, such elasticity often involves extra latency associated with on-demand provisioning of individual runtime containers that serve the functions. This phenomenon is often called cold starts, as opposed to the situation when a function is served by a pre-provisioned "warm" container, ready to serve requests with close to zero overhead. Providers are constantly working on techniques aimed at reducing cold starts. A common approach to reduce cold starts is to maintain a pool of warm containers, in anticipation of future requests. In this report, we address the cold start problem in serverless architectures, specifically under the Knative Serving FaaS platform. We describe our implementation leveraging a pool of function instances, and evaluate the latency compared to the original implementation, resulting in a 85% reduction of P99 response time for a single instance pool.

연구 동기 및 목표

  • 서버리스(FaaS) 플랫폼에서 차가운 시작 지연을 줄이는 것을 동기 부여합니다.
  • Knative Serving 내에서 풀 기반의 워밍 포드 전략을 제안하여 차가운 시작을 완화합니다.
  • 풀을 Knative 리소스로 구현하고 포드 마이그레이션을 자동 스케일링과 통합합니다.
  • 간단한 초기화와 무거운 초기화에서 베이스라인 Knative 없이 풀과의 비교로 대기 시간 개선을 평가합니다.

제안 방법

  • 워밍 포드를 관리하기 위해 리비전 구조를 모방한 Knative Custom Resource Definition(CRD)으로 풀을 구현합니다.
  • 새 포드를 생성하기 전에 풀에서 대상 리비전에 포드를 마이그레이션하도록 Knative 자동 스케일링을 수정합니다.
  • 메트릭 수집을 활성화하고 레이블을 재지정하여 대상 ReplicaSet으로 포드를 마이그레이드한 뒤, 부족한 경우에만 새 포드를 생성합니다.
  • GCP에서 두 앱(Go HTTP 서버 및 TensorFlow 이미지 분류기)을 사용하여 차가운 시작과 워밍 시작을 비교하며 성능을 측정합니다.
  • Pareto 간격 추적을 사용한 대규모 시뮬레이션을 수행하여 다양한 풀 크기에서 백분위 지연 개선을 평가합니다.

실험 결과

연구 질문

  • RQ1풀의 워밍 포드 풀이 서버리스 함수의 차가운 시작 지연(P95, P99, P99.5)을 얼마나 줄입니까?
  • RQ2하나의 포드 풀에 대한 다양한 어플리케이션 초기화 오버헤드가 있는 워크로드에 어떤 영향을 줍니까?
  • RQ3풀 보조 자동 스케일링이 Knative Serving의 지연과 마이그레이션 시간에 미치는 영향은 무엇입니까?
  • RQ4풀 추가에 따른 리소스 및 구현 오버헤드(LOC, 마이그레이션 시간)는 어느 정도입니까?

주요 결과

  • 하나의 포드 풀이 HTTP 서버의 차가운 시작 시간을 12.123초에서 5.076초로 감소시킵니다(σ 1.638, 1.055).
  • 하나의 포드 풀이 이미지 분류기의 차가운 시작을 39.25초에서 7.458초로 감소시킵니다(σ 1.475, 0.641).
  • 풀은 단일 인스턴스 풀에 대해 P99 차가운 시작 지연을 약 85%까지 감소시키는 것을 가능하게 합니다(결론에 명시된 바와 같이).
  • 시뮬레이션은 풀에 하나의 포드가 있을 때 짧은 앱과 긴 앱 모두에 대해 P95가 완전히 제거되는 것을 보여줍니다; P99은 최소 50% 감소합니다.
  • 대상 리비전에 풀링된 포드를 마이그레이션하는 데 약 2초가 걸립니다; 풀 리소스 정의 ~200 LOC; 마이그레이션 코드 ~350 LOC.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.