본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)48k · #4697

gcp-cloud-run

하는 일

이 도구는 서버를 직접 관리할 필요 없이 Google Cloud(GCP)에서 실행되는 앱을 만드는 데 도움을 줍니다. 명령을 받는 앱(서비스)과 이벤트에 반응하는 앱을 모두 다루며, 응답 시간과 리소스 사용을 최적화합니다.

사용하는 경우

  • ✓클라우드에서 실행되는 웹 서비스를 만들 때.
  • ✓알림에 반응하는 프로그램을 만들 때.
  • ✓클라우드 앱의 속도를 최적화할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/gcp-cloud-run/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/gcp-cloud-run/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 전자상거래 웹사이트를 위한 클라우드 서비스를 만들어 주세요. 자동으로 규모가 조절되어야 합니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

앱을 패키지(컨테이너 이미지)로 설명하면, Google Cloud Run이 실행과 인프라 관리를 맡습니다. 이벤트에 반응하도록 설정할 수도 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

GCP Cloud Run

Specialized skill for building production-ready serverless applications on GCP. Covers Cloud Run services (containerized), Cloud Run Functions (event-driven), cold start optimization, and event-driven architecture with Pub/Sub.

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

Calculate memory including /tmp usage

# cloudbuild.yaml
steps:
  - name: 'gcr.io/cloud-builders/gcloud'
    args:
      - 'run'
      - 'deploy'
      - 'my-service'
      - '--memory=1Gi'  # Include /tmp overhead
      - '--image=gcr.io/$PROJECT_ID/my-service'

Monitor memory usage

import psutil
import logging

def log_memory():
    memory = psutil.virtual_memory()
    logging.info(f"Memory: {memory.percent}% used, "
                f"{memory.available / 1024 / 1024:.0f}MB available")

Concurrency=1 Causes Scaling Bottlenecks

Severity: HIGH

Situation: Setting concurrency to 1 for request isolation

Symptoms: Auto-scaling creates many container instances. High latency during traffic spikes. Increased cold starts. Higher costs from more instances.

Why this breaks: Setting concurrency to 1 means each container handles only one request at a time. During traffic spikes:

  • 100 concurrent requests = 100 container instances
  • Each instance has cold start overhead
  • More instances = higher costs
  • Scaling takes time, requests queue up

This should only be used when:

  • Processing is truly single-threaded
  • Memory-heavy per-request processing
  • Using thread-unsafe libraries

Recommended fix:

When to Use

Use this skill when the request clearly matches the capabilities and patterns described above.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문

「콜드 스타트」란 무엇인가요?

앱이 사용되지 않던 상태에서 새 요청을 받을 때 시작되는 데 걸리는 시간입니다.

「concurrency=1」이란 무엇인가요?

앱의 각 인스턴스가 한 번에 하나의 요청만 처리할 수 있다는 뜻입니다. 많은 요청이 동시에 들어오면 느려질 수 있습니다.

Pub/Sub란 무엇인가요?

앱의 서로 다른 부분 사이에서 메시지를 주고받게 해 주는 Google Cloud 서비스입니다. 통신과 이벤트 반응을 쉽게 해 줍니다.

상세 정보

작성자의 원본 설명

Specialized skill for building production-ready serverless applications on GCP. Covers Cloud Run services (containerized), Cloud Run Functions (event-driven), cold start optimization, and event-driven architecture with Pub/Sub.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4697
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬