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

update sizing calc #3951

Merged
merged 2 commits into from
Jul 6, 2021
Merged
Changes from 1 commit
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
Next Next commit
min 2 index gw
  • Loading branch information
owen-d committed Jul 1, 2021
commit 0bc5a6b3592a2039184aed7024c2c14f0b97c3c1
7 changes: 4 additions & 3 deletions pkg/sizing/sizing.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ func queryFrontendSizing(ingestionRateMB float64) *ComponentDescription {
component := &ComponentDescription{}
// run two for HA
n := 2

component.Name = QueryFrontend
component.Replicas = n
_ = component.Resources.MemoryRequests.Set("5GB")
Expand Down Expand Up @@ -196,8 +195,10 @@ func indexGatewaySizing(ingestionRateMB float64) *ComponentDescription {
component := &ComponentDescription{}
MBSecondPerInstance := 60.
n := replicas(MBSecondPerInstance, ingestionRateMB)
if n < 1 {
n = 1

// min 2 for HA
if n < 2 {
n = 2
}

component.Name = IndexGateway
Expand Down