From 3265225a761f791f973e360eeebd5add46cfddfb Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Sat, 22 Jul 2017 19:19:23 -0400 Subject: [PATCH] Add better images for rolling deploys, bg, and machine failure --- .../assets/images/feature-blue-green.svg | 37 ++++++++++++++++++ .../assets/images/feature-machine-failure.svg | 17 +++++++++ .../assets/images/feature-rolling-deploys.svg | 33 ++++++++++++++++ website/source/assets/stylesheets/_home.scss | 9 ++++- website/source/index.html.erb | 38 ++++++++++++++++--- 5 files changed, 128 insertions(+), 6 deletions(-) create mode 100644 website/source/assets/images/feature-blue-green.svg create mode 100644 website/source/assets/images/feature-machine-failure.svg create mode 100644 website/source/assets/images/feature-rolling-deploys.svg diff --git a/website/source/assets/images/feature-blue-green.svg b/website/source/assets/images/feature-blue-green.svg new file mode 100644 index 000000000..279e8dce4 --- /dev/null +++ b/website/source/assets/images/feature-blue-green.svg @@ -0,0 +1,37 @@ + + + + + + + web-app:1.0 + + + group.blue + + + + + + + + web-app:1.1 + + + group.green + + + + + + + 8/10 + + + + + 2/10 + + + + diff --git a/website/source/assets/images/feature-machine-failure.svg b/website/source/assets/images/feature-machine-failure.svg new file mode 100644 index 000000000..1585aa9bc --- /dev/null +++ b/website/source/assets/images/feature-machine-failure.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/website/source/assets/images/feature-rolling-deploys.svg b/website/source/assets/images/feature-rolling-deploys.svg new file mode 100644 index 000000000..643d0ce6e --- /dev/null +++ b/website/source/assets/images/feature-rolling-deploys.svg @@ -0,0 +1,33 @@ + + + + + + + rolling... + + + 9/12 + + + + + + + + + done! + + + 12/12 + + + + + + + + + + + diff --git a/website/source/assets/stylesheets/_home.scss b/website/source/assets/stylesheets/_home.scss index 07eba8823..0856807ad 100755 --- a/website/source/assets/stylesheets/_home.scss +++ b/website/source/assets/stylesheets/_home.scss @@ -210,9 +210,16 @@ &#simplify { svg { display: block; - margin: 60px 30px 0 0; + max-height: 150px; + margin: 0 auto; padding: 0; } + + @media(max-width: $screen-sm) { + svg { + margin: 60px auto; + } + } } &#binpacking { diff --git a/website/source/index.html.erb b/website/source/index.html.erb index 6764cf6ef..1d68863a5 100644 --- a/website/source/index.html.erb +++ b/website/source/index.html.erb @@ -136,11 +136,15 @@ description: |-
-
- <%= inline_svg "feature-simplify.svg" %> +
+

Rolling Deploys

-
-

Rolling Upgrades

+
+
+
+ <%= inline_svg "feature-rolling-deploys.svg" %> +
+

In order to update an application while reducing downtime, Nomad provides a built-in mechanism for rolling upgrades. Operators specify @@ -149,16 +153,40 @@ description: |- parallelization and stagger, rolling upgrades make application deployments simple and safe.

+
+
+
+

Blue/Green Deployments

+
+
+
+

Nomad supports blue/green and canary deployments through the declarative job file syntax. By specifying multiple task groups, Nomad allows for easily changing the quantity and parameters of - each group to perform automatic or manual rolling deploys. + each group to perform automatic or manual rolling deploys. Place the + job behind a shared load balancer to send a percentage of traffic to + the canary build to test changes on a portion of traffic.

+
+
+ <%= inline_svg "feature-blue-green.svg" %> +
+
+
+

Automatic Machine Failures

+
+
+
+
+ <%= inline_svg "feature-machine-failure.svg" %> +
+

Because it knows the state of all nodes and applications, if a node becomes unhealthy, Nomad will automatically reschedule the