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

allow autoneg controller to manage CapacityScaler with K8s service #109

Merged
merged 1 commit into from
Dec 27, 2023
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
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ use across multiple clusters.

By default, `autoneg` will initialize the `capacityScaler` to 1, which means that the new backend will receive a proportional volume
of traffic according to the maximum rate or connections per endpoint configuration. You can customize this default by supplying
the `initial_capacity` variable, which may be useful to steer traffic in blue/green deployment scenarios. On any changes, `autoneg`
will leave whatever is set in that value. The `capacityScaler` mechanism can be used orthogonally by interactive tooling to manage
traffic shifting in such uses cases as deployment or failover.
the `initial_capacity` variable, which may be useful to steer traffic in blue/green deployment scenarios. The `capacityScaler` mechanism can be used to manage traffic shifting in such uses cases as deployment or failover.

## Autoneg Configuration

Expand Down
1 change: 1 addition & 0 deletions controllers/autoneg.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ func (b *ProdBackendController) ReconcileBackends(actual, intended AutonegStatus
// TODO: copy fields explicitly
be.MaxRatePerEndpoint = u.MaxRatePerEndpoint
be.MaxConnectionsPerEndpoint = u.MaxConnectionsPerEndpoint
be.CapacityScaler = u.CapacityScaler
copy = false
break
}
Expand Down