Skip to content

Commit

Permalink
waves: define a wave duration for the "last" wave
Browse files Browse the repository at this point in the history
To avoid having all the hosts in the last wave all updating at once when
the last wave starts, we define an intermediary wave before the actual
last wave to define its wave duration so updog can evenly spread the
hosts throughout the "last" wave.
  • Loading branch information
etungsten committed Jul 20, 2020
1 parent 6b95348 commit a9ee7a9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 9 deletions.
8 changes: 7 additions & 1 deletion sources/updater/waves/accelerated-waves.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ fleet_percentage = 12

[[waves]]
start_after = '8 hours'
fleet_percentage = 50
fleet_percentage = 40

[[waves]]
start_after = '16 hours'
fleet_percentage = 80

# Last 20 percent of the hosts will update immediately after 24 hours since the start of
# deployment. Unlike the other waves, there will be no velocity control.
[[waves]]
start_after = '1 day'
fleet_percentage = 100
16 changes: 13 additions & 3 deletions sources/updater/waves/default-waves.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@ fleet_percentage = 5

[[waves]]
start_after = '1 day'
fleet_percentage = 10
fleet_percentage = 15

[[waves]]
start_after = '3 days'
fleet_percentage = 25
start_after = '2 days'
fleet_percentage = 40

[[waves]]
start_after = '4 days'
fleet_percentage = 60

[[waves]]
start_after = '5 days'
fleet_percentage = 90

# Last 10 percent of the hosts will update immediately after 6 days since the start of
# deployment. Unlike the other waves, there will be no velocity control.
[[waves]]
start_after = '6 days'
fleet_percentage = 100
19 changes: 14 additions & 5 deletions sources/updater/waves/ohno.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
# The following represents an "emergency" set of update waves for a rapid
# deployment. The deployment lasts for 3 hours, with a small initial wave,
# and then all nodes will be updated after the first hour.
# deployment. The deployment lasts for 3 hours, with a small initial wave.
[[waves]]
start_after = '1 hour'
start_after = '30 minutes'
fleet_percentage = 5

[[waves]]
start_after = '2 hours'
start_after = '60 minutes'
fleet_percentage = 25

[[waves]]
start_after = '3 hours'
start_after = '120 minutes'
fleet_percentage = 50

[[waves]]
start_after = '150 minutes'
fleet_percentage = 90

# Last 10 percent of the hosts will update immediately after 3 hours since the start of
# deployment. Unlike the other waves, there will be no velocity control.
[[waves]]
start_after = '180 minutes'
fleet_percentage = 100

0 comments on commit a9ee7a9

Please sign in to comment.