Skip to content

Commit

Permalink
ROX-16883: Increase resource limits to avoid throttling (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorgorman authored May 4, 2023
1 parent beaf7c9 commit 61b65b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/dinosaur/pkg/defaults/default_central_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
type CentralDefaults struct {
MemoryRequest resource.Quantity `env:"MEMORY_REQUEST" envDefault:"250Mi"`
CPURequest resource.Quantity `env:"CPU_REQUEST" envDefault:"50m"`
MemoryLimit resource.Quantity `env:"MEMORY_LIMIT" envDefault:"4G"`
CPULimit resource.Quantity `env:"CPU_LIMIT" envDefault:"250m"`
MemoryLimit resource.Quantity `env:"MEMORY_LIMIT" envDefault:"8G"`
CPULimit resource.Quantity `env:"CPU_LIMIT" envDefault:"4"`
}

var (
Expand Down
4 changes: 2 additions & 2 deletions internal/dinosaur/pkg/defaults/default_scanner_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type AnalyzerDefaults struct {
MemoryRequest resource.Quantity `env:"MEMORY_REQUEST" envDefault:"100M"`
CPURequest resource.Quantity `env:"CPU_REQUEST" envDefault:"5m"`
MemoryLimit resource.Quantity `env:"MEMORY_LIMIT" envDefault:"2500M"`
CPULimit resource.Quantity `env:"CPU_LIMIT" envDefault:"250m"`
CPULimit resource.Quantity `env:"CPU_LIMIT" envDefault:"2"`
AutoScaling string `env:"AUTOSCALING" envDefault:"Enabled"`
MinReplicas int32 `env:"MIN_REPLICAS" envDefault:"1"`
Replicas int32 `env:"REPLICAS" envDefault:"1"`
Expand All @@ -25,7 +25,7 @@ type DbDefaults struct {
MemoryRequest resource.Quantity `env:"MEMORY_REQUEST" envDefault:"500M"`
CPURequest resource.Quantity `env:"CPU_REQUEST" envDefault:"10m"`
MemoryLimit resource.Quantity `env:"MEMORY_LIMIT" envDefault:"2500M"`
CPULimit resource.Quantity `env:"CPU_LIMIT" envDefault:"250m"`
CPULimit resource.Quantity `env:"CPU_LIMIT" envDefault:"2"`
}

// ScannerDefaults ...
Expand Down

0 comments on commit 61b65b7

Please sign in to comment.