mirror of
https://github.com/googleforgames/open-match.git
synced 2025-03-25 13:24:18 +00:00
Increase Redis ping time tolerance and provision more resources for CI (#1034)
This commit is contained in:
1
Makefile
1
Makefile
@ -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)
|
||||
|
@ -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:
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user