블루-그린 배포
블루와 동일한 그린 환경을 병행 운영하고 검증 후 트래픽을 전환하는 무중단 릴리스 전략
구조와 동작 원리
화살표를 단계별로 확인하세요.
두 환경을 준비한 후 트래픽을 전환한다. 데이터베이스 변경 호환성을 별도 검토한다.
기대 효과
신속한 라우팅 롤백, 환경 단위 비교, 컷오버 후 혼합 버전 방지
트레이드오프
중복 인프라 비용과 상태 동기화·아이덴티티 복잡성
삭제형 마이그레이션 등 비가역 변경은 블루-그린 롤백 보장을 깨므로 부적합·주의
운영 및 적용 가이드
종합 설명 · 원문 인용으로 검증된 항목과 구분됩니다. 실제 적용 전 확인이 필요합니다.
언제 사용하는가
무중단 릴리스와 빠른 롤백이 필요한 웹/API 서비스, 정기적 쿠버네티스 클러스터 업그레이드, 클라우드 마이그레이션 컷오버에 적합하다.
시나리오
국내 이커머스 기업이 수백만 사용자를 대상으로 주문 API를 월 2회 배포한다. 무중단과 5분 내 롤백, 결제 데이터 일관성이 요구된다. 블루 환경은 현재 트래픽을 처리하고 그린 환경에 새 버전을 배포해 스모크·성능·SLO 게이트를 통과한 뒤 라우팅을 전환한다. 전환 후 지표를 관찰하고 이상 시 즉시 블루로 되돌린다.
배치 원칙
- 블루와 그린은 동일한 애플리케이션·설정·의존성 구성으로 배치한다
- 트래픽은 로드밸런서·API 게이트웨이·서비스 메시 같은 라우팅 계층에서 전환한다
- 데이터베이스는 양 버전이 함께 읽고 쓸 수 있는 전후방 호환 스키마로 배치한다
- 세션·캐시·외부 연동은 환경별/공유 여부를 명시하고 상태 동기화 방식을 정한다
- IaC로 그린 환경을 필요 시 생성·폐기해 드리프트와 비용을 통제한다.
온프레미스
소스 환경을 일정 기간 유지해 롤백 경로를 확보하고, 로드밸런서/DNS 전환과 데이터 마이그레이션 호환성을 사전 검증하며, 두 환경의 구성 드리프트와 자원 비용을 운영 절차로 관리한다.
클라우드
관리형 로드밸런서·DNS·오토스케일링을 활용해 블루/그린을 코드로 프로비저닝하고, 검증 게이트와 트래픽 전환을 CI/CD에 자동화하며, 전환 후 비용·SLO·롤백을 모니터링한다.
Kubernetes
동일 워크로드를 별도 네임스페이스/클러스터에 배포하고 Service·Ingress·서비스 메시로 트래픽을 전환하며, readiness/스모크 테스트와 HPA·PDB를 확인한 뒤 컷오버하고 구 환경은 관찰 기간 후 정리한다.
장애 대응
대표 장애는 라우팅 오설정, 스키마 비호환, 새 버전 성능/오류, 데이터 동기화 불일치다. 탐지 시 즉시 이전 환경으로 라우팅을 되돌리고, 이전 환경의 헬스·데이터 무결성을 재검증한 뒤 원인을 분석하고 필요 시 복구·재배포한다.
14개 관점별 근거
조사 당시 근거 보유 여부입니다. 출처의 정확성과 최신성을 별도로 판단하세요.
정의·개요근거 있음
블루와 동일한 그린 환경을 병행 운영하고 검증 후 트래픽을 전환하는 무중단 릴리스 전략
runs two identical production environments simultaneously to achieve zero-downtime deployments and enable fast rollbacks해결하는 문제근거 있음
배포 다운타임과 실패 시 장시간 복구 위험을 줄이고 빠른 롤백을 가능하게 함
to achieve zero-downtime deployments and enable fast rollbacks.주요 구성 컴포넌트·리소스근거 있음
두 개의 동일한 프로덕션 환경과 환경 간 트래픽 라우팅·전환 메커니즘
Blue/green environments also have a mechanism to route traffic between them.데이터·에셋 배치 원칙근거 있음
DB 등 상태 자산은 양 환경 호환성을 고려해 단일 DB/스키마의 전후방 호환을 구성
configure a single database for backward and forward compatibility.대표 유스케이스근거 있음
새 버전을 유휴 환경에 배포·검증한 뒤 트래픽을 전환하는 무중단 릴리스
The current release is always deployed to the idle environment and traffic is switched to it after deployment completes, with no downtime.시나리오 예시근거 있음
소스/온프레미스에서 새 AKS 클러스터로 이전 시 문제 발생하면 원천으로 신속 롤백
I need rapid traffic rollback to the source if anything goes wrong after cutover.부적합 상황·주의근거 있음
삭제형 마이그레이션 등 비가역 변경은 블루-그린 롤백 보장을 깨므로 부적합·주의
Irreversible changes break the rollback promise outright.온프레미스 관점(개발·배포·운영)근거 있음
온프레미스/소스 클러스터·VM을 새 환경으로 컷오버할 때 원천을 유지해 롤백 경로 확보
migrating workloads from a source cluster, VM estate, or on-premises environment into a new AKS cluster클라우드 관점(개발·배포·운영)근거 있음
관리형 K8s/클라우드에서 신버전 검증 후 라우팅 변경으로 사용자 트래픽 전환
Once the new version is validated, a routing change switches user traffic to it.Kubernetes 관점(개발·배포·운영)근거 있음
EKS 등 K8s 클러스터 업그레이드 시 두 번째 클러스터를 만들어 앱 배포·검증 후 전환
we do a blue-green deployment, where we create a second cluster with the latest version of Amazon EKS and Istio.장애 대응 관점근거 있음
롤백/Undo 후 이전 환경의 상태와 데이터 무결성을 재검증
Re-validate old environment health and data integrity.장점근거 있음
신속한 라우팅 롤백, 환경 단위 비교, 컷오버 후 혼합 버전 방지
fast routing rollback; - clean environment-level comparison; - no mixed application versions after cutover단점·트레이드오프근거 있음
중복 인프라 비용과 상태 동기화·아이덴티티 복잡성
near-double serving infrastructure during overlap; - state synchronization and identity complexity대표 기술·도구근거 있음
Amazon EKS와 Istio 같은 클러스터·서비스 메시 기술
we create a second cluster with the latest version of Amazon EKS and Istio.추가 참고 문헌 (23)
- Untitled result ↗
- Selecting a deployment strategy - Engineering Guidance and Standards - Home Office ↗
- What Is Blue-Green Deployment? | IBM ↗
- Blue-green deployment of AKS clusters - Azure Architecture Center | Microsoft Learn ↗
- Using blue-green deployment to reduce downtime | Cloud Foundry Docs ↗
- Blue-green deployments: Zero-downtime deployments for software and database updates ↗
- Blue-Green Deployment in Azure Container Apps | Microsoft Learn ↗
- Deploy blue/green infrastructure for zero-downtime | Well-Architected Framework | HashiCorp Developer ↗
- Kubernetes cluster upgrade: the blue-green deployment strategy | Containers ↗
- Blue/Green Kubernetes upgrades for Amazon EKS Anywhere using Flux | Containers ↗
- Azure Kubernetes Service (AKS) production upgrade strategies - Azure Kubernetes Service | Microsoft Learn ↗
- Zero-Downtime Migration to Azure Kubernetes Service (AKS) - Azure Kubernetes Service | Microsoft Learn ↗
- Reference Architecture: GKE Enterprise hybrid environment - part 2 - Dec '24 - Google Docs ↗
- Deploy an app on Kubernetes ↗
- aws-samples/sample-eks-bg-upgrades ↗
- Recommendations for designing a deployment failure mitigation strategy - Power Platform | Microsoft Learn ↗
- OPS06-BP03 Employ safe deployment strategies ↗
- What Is Blue-Green Deployment? The Complete Guide ↗
- Progressive Delivery and Deployment Strategies | System Design Patterns ↗
- Blue-Green Deployment Strategy: Safe Releases, Fast Rollback, and Hidden Tradeoffs ↗
- Blue-Green Deployments: A Definition and Introductory Guide ↗
- Implement zero-downtime deployments with blue/green, canary, and rolling strategies | Well-Architected Framework | HashiCorp Developer ↗
- Architecture strategies for safe deployment practices - Microsoft Azure Well-Architected Framework | Microsoft Learn ↗