-
Notifications
You must be signed in to change notification settings - Fork 45
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
Intelligent scaling documentation #326
Conversation
ff35c32
to
9318e26
Compare
9318e26
to
21808c4
Compare
cmd/standby-forecaster/main.go
Outdated
@@ -167,7 +167,7 @@ func scaleGameServerBuild(ctx context.Context, totalServersNeeded int, config Co | |||
if err != nil { | |||
return time.Time{}, err | |||
} | |||
// To determin how many standby servers are needed by the forecase, we need to subtract the active servers | |||
// To determine how many standby servers are needed by the forecase, we need to subtract the active servers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: forecast, not forecase
docs/howtos/intelligentscaling.md
Outdated
|
||
Prediction is implemented using [linear regression](https://en.wikipedia.org/wiki/Linear_regression) and [Holt-Winters](https://en.wikipedia.org/wiki/Exponential_smoothing#Triple_exponential_smoothing_(Holt_Winters)) methods. The algorithm takes the top value and sets the `standingBy` accordingly. It is the user's responsibility to set the `max` in a proper value. | ||
|
||
You can use the forecaster immediately with Thundernetes. Until it has 2 "seasons" worth of data, the holt-winters calculation will not work effectively, but the linear regression forecasters will work just fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Holt-Winters
|---------------|---------------|-------------| | ||
| `maxValue` | `100` | Maximum value of the load. | | ||
| `frequency` | `time.Hour` | ForecastFrequency of the load. | | ||
| `jitter` | `0.15` | Jitter of the load. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might be clear to the general audience, in which case disregard, but we may want to specify under what circumstances jitter should be used for simulation values
Adding docs about intelligent scaling, plus re-ordering the "How To's".