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

Intelligent scaling documentation #326

Merged
merged 2 commits into from
Jul 21, 2022
Merged

Intelligent scaling documentation #326

merged 2 commits into from
Jul 21, 2022

Conversation

dgkanatsios
Copy link
Collaborator

Adding docs about intelligent scaling, plus re-ordering the "How To's".

@dgkanatsios dgkanatsios added the documentation Improvements or additions to documentation label Jul 21, 2022
@dgkanatsios dgkanatsios force-pushed the intelligentscaling branch 3 times, most recently from ff35c32 to 9318e26 Compare July 21, 2022 04:56
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: forecast, not forecase


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.
Copy link
Contributor

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. |
Copy link
Contributor

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

@dgkanatsios dgkanatsios merged commit 2e3ea43 into main Jul 21, 2022
@dgkanatsios dgkanatsios deleted the intelligentscaling branch July 21, 2022 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants