Skip to content

Commit

Permalink
[DEVOPS-632] Change default exporter resources/limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Chana committed Dec 29, 2017
1 parent 33d422b commit b0e5469
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions pkg/failover/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ import (

// variables refering to the redis exporter port
const (
exporterPort = 9121
exporterPortName = "http-metrics"
exporterContainerName = "redis-exporter"
exporterPort = 9121
exporterPortName = "http-metrics"
exporterContainerName = "redis-exporter"
exporterDefaultRequestCPU = "25m"
exporterDefaultLimitCPU = "50m"
exporterDefaultRequestMemory = "50Mi"
exporterDefaultLimitMemory = "100Mi"
)

const (
Expand Down Expand Up @@ -961,12 +965,12 @@ func createRedisExporterContainer() v1.Container {
},
Resources: v1.ResourceRequirements{
Limits: v1.ResourceList{
v1.ResourceCPU: resource.MustParse("300m"),
v1.ResourceMemory: resource.MustParse("300Mi"),
v1.ResourceCPU: resource.MustParse(exporterDefaultLimitCPU),
v1.ResourceMemory: resource.MustParse(exporterDefaultLimitMemory),
},
Requests: v1.ResourceList{
v1.ResourceCPU: resource.MustParse("200m"),
v1.ResourceMemory: resource.MustParse("150Mi"),
v1.ResourceCPU: resource.MustParse(exporterDefaultRequestCPU),
v1.ResourceMemory: resource.MustParse(exporterDefaultRequestMemory),
},
},
}
Expand Down

0 comments on commit b0e5469

Please sign in to comment.