Deployment strategies defined

Содержание
  1. Почему
  2. Как
    1. Reckless Deployment
    2. Rolling Upgrade
    3. Blue/Green Deployment
    4. Canary Deployment
    5. Versioned Deployment
  3. Ссылки

Почему

Потому

Как

Так

Reckless Deployment

+------------+      +-------------+
|   before   |      |    after    |
+------------+      +-------------+
 |     |     |        |    |     |
+--+  +--+  +--+    +--+  +--+  +--+
|v1|  |v1|  |v1|    |v2|  |v2|  |v2|
+--+  +--+  +--+    +--+  +--+  +--+

Rolling Upgrade

+------------+      +-------------+     +-------------+
|   before   |      |    during   |     |    after    |
+------------+      +-------------+     +-------------+
 |     |     |       |      |     |       |     |     |
+--+  +--+  +--+    +--+   +-+  +--+    +--+  +--+  +--+
|v1|  |v1|  |v1|    |v1|   |X|  |v2|    |v2|  |v2|  |v2|
+--+  +--+  +--+    +--+   +-+  +--+    +--+  +--+  +--+

Blue/Green Deployment

 +------------+           +------------+                  +-------------+
 |   before   |           |   during   |                  |    after    |
 +------------+           +------------+                  +-------------+
        |                 |                                             |
   +---------+       +---------+  +---------+         +---------+  +---------+
   |    |    |       |    |    |  |    |    |         |    |    |  |    |    |
+--+ +--+ +--+    +--+ +--+ +--+  +--+ +--+ +--+   +--+ +--+ +--+  +--+ +--+ +--+
|v1| |v1| |v1|    |v1| |v1| |v1|  |v2| |v2| |v2|   |v1| |v1| |v1|  |v2| |v2| |v2|
+--+ +--+ +--+    +--+ +--+ +--+  +--+ +--+ +--+   +--+ +--+ +--+  +--+ +--+ +--+

Canary Deployment

 +------------+           +------------+                  +-------------+
 |   before   |           |   during   |                  |    after    |
 +------------+           +------------+                  +-------------+
        |                 |            |                                |
   +---------+       +---------+  +---------+         +---------+  +---------+
   |    |    |       |    |    |  |    |    |         |    |    |  |    |    |
+--+ +--+ +--+    +--+ +--+ +--+  +--+ +--+ +--+   +--+ +--+ +--+  +--+ +--+ +--+
|v1| |v1| |v1|    |v1| |v1| |v1|  |v2| |v2| |v2|   |v1| |v1| |v1|  |v2| |v2| |v2|
+--+ +--+ +--+    +--+ +--+ +--+  +--+ +--+ +--+   +--+ +--+ +--+  +--+ +--+ +--+

Versioned Deployment

 +------------+           +------------+
 |   before   |           |    after   |
 +------------+           +------------+

        V1                V1           V2
   +---------+       +---------+  +---------+
   |    |    |       |    |    |  |    |    |
+--+ +--+ +--+    +--+ +--+ +--+  +--+ +--+ +--+
|v1| |v1| |v1|    |v1| |v1| |v1|  |v2| |v2| |v2|
+--+ +--+ +--+    +--+ +--+ +--+  +--+ +--+ +--+

Ссылки

Поделиться
Отправить