무중단 배포 중 한가지 전략으로써, 두 개의 운영 환경(Blue와 Green)을 유지합니다. 현재 운영 중인 환경을 Blue 라고 하고, 새 버전이 배포될 환경을 Green 이라고 합니다. 배포 시 한번에 새로운 환경으로 교체됩니다.
[장점]
[단점]
%% EC2 배포
graph LR
%% __START
Client --> LB
LB -.-> |X| Blue
LB --> Green
subgraph "Blue"[Blue - Current Version]
Instance1
Instance2
Instance3
end
subgraph "Green"[Green - New Version]
NewInstance1
NewInstance2
NewInstance3
end
style Green fill:green
style Blue fill:blue
%% __END
%% EC2 롤백
graph LR
%% __START
Client --> LB
LB --> Blue
LB -.-> |X| Green
subgraph "Blue"[Blue - Old Version]
Instance1
Instance2
Instance3
end
subgraph "Green"[Green - Current Version]
NewInstance1
NewInstance2
NewInstance3
end
style Green fill:green
style Blue fill:blue
%% __END