Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waves: fix example wave files 'wave' #908

Merged
merged 1 commit into from
Apr 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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