Skip to content

Commit

Permalink
Merge pull request #908 from etungsten/many-waves
Browse files Browse the repository at this point in the history
waves: fix example wave files 'wave'
  • Loading branch information
etungsten authored Apr 16, 2020
2 parents f18913f + 73a8e4b commit 06c469e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion sources/updater/waves/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ All waves include the seeds of the prior wave, so if a node misses its wave for

## Writing wave files

Wave files must be [valid TOML](https://github.com/toml-lang/toml) containing a list of `[[wave]]` entries.
Wave files must be [valid TOML](https://github.com/toml-lang/toml) containing a list of `[[waves]]` entries.
Waves defined in these files must contain two keys, `start_after` and `fleet_percentage`.

`start_after` must be:
Expand Down
8 changes: 4 additions & 4 deletions sources/updater/waves/accelerated-waves.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# The following represents an "accelerated" set of update waves for a much
# quicker deployment. The deployment lasts for 1 day, and quickly increases the
# nodes updated at once.
[[wave]]
[[waves]]
start_after = '1 hour'
fleet_percentage = 3

[[wave]]
[[waves]]
start_after = '4 hours'
fleet_percentage = 12

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

[[wave]]
[[waves]]
start_after = '1 day'
fleet_percentage = 100
10 changes: 5 additions & 5 deletions sources/updater/waves/default-waves.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# The following represents a "normal" set of update waves for a typical
# deployment. The deployment lasts for 6 days, and gradually increases the
# nodes updated at once.
[[wave]]
[[waves]]
start_after = '1 hour'
fleet_percentage = 1

[[wave]]
[[waves]]
start_after = '4 hours'
fleet_percentage = 5

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

[[wave]]
[[waves]]
start_after = '3 days'
fleet_percentage = 25

[[wave]]
[[waves]]
start_after = '6 days'
fleet_percentage = 100
6 changes: 3 additions & 3 deletions sources/updater/waves/ohno.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 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.
[[wave]]
[[waves]]
start_after = '1 hour'
fleet_percentage = 5

[[wave]]
[[waves]]
start_after = '2 hours'
fleet_percentage = 25

[[wave]]
[[waves]]
start_after = '3 hours'
fleet_percentage = 100

0 comments on commit 06c469e

Please sign in to comment.