Increase Redis ping time tolerance and provision more resources for CI (#1034)

This commit is contained in:
yfei1
2020-01-08 15:32:32 -08:00
committed by GitHub
parent 188457c21f
commit 41632e6b8d
3 changed files with 5 additions and 4 deletions

View File

@ -380,6 +380,7 @@ install-ci-chart: install-chart-prerequisite build/toolchain/bin/helm$(EXE_EXTEN
--set open-match-customize.evaluator.enabled=true \
--set open-match-customize.function.image=openmatch-mmf-go-pool \
--set mmlogic.replicas=1,frontend.replicas=1,backend.replicas=1,open-match-customize.evaluator.replicas=1,open-match-customize.function.replicas=1 \
--set redis.master.resources.requests.cpu=0.6,redis.master.resources.requests.memory=300Mi \
--set ci=true
delete-chart: build/toolchain/bin/helm$(EXE_EXTENSION) build/toolchain/bin/kubectl$(EXE_EXTENSION)

View File

@ -157,7 +157,7 @@ open-match-core:
maxIdle: 200
maxActive: 0
idleTimeout: 0
healthCheckTimeout: 100ms
healthCheckTimeout: 300ms
# Controls if users need to install scale testing setup for Open Match.
open-match-scale:

View File

@ -94,9 +94,9 @@ func newRedis(cfg config.View) Service {
},
}
healthCheckPool := &redis.Pool{
MaxIdle: 1,
MaxActive: 2,
IdleTimeout: cfg.GetDuration("redis.pool.healthCheckTimeout"),
MaxIdle: 3,
MaxActive: 0,
IdleTimeout: 10 * cfg.GetDuration("redis.pool.healthCheckTimeout"),
Wait: true,
DialContext: func(ctx context.Context) (redis.Conn, error) {
if ctx.Err() != nil {