Skip to content

Commit

Permalink
Merge pull request #18 from pfnet-research/larger-redis-timeout
Browse files Browse the repository at this point in the history
Improve stability for large-scale queues on redis backend
  • Loading branch information
everpeace authored Jul 15, 2020
2 parents e1b6aff + d18a35d commit 0723025
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/backend/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ type RedisClientConfig struct {
Password string `json:"password" yaml:"password" default:""`
DB int `json:"db" yaml:"db" default:"0"`

DialTimeout time.Duration `json:"dialTimeout" yaml:"dialTimeout" default:"5s"`
ReadTimeout time.Duration `json:"readTimeout" yaml:"readTimeout" default:"3s"`
WriteTimeout time.Duration `json:"writeTimeout" yaml:"writeTimeout" default:"3s"`
DialTimeout time.Duration `json:"dialTimeout" yaml:"dialTimeout" default:"30s"`
ReadTimeout time.Duration `json:"readTimeout" yaml:"readTimeout" default:"10m"`
WriteTimeout time.Duration `json:"writeTimeout" yaml:"writeTimeout" default:"10m"`

PoolSize int `json:"poolSize" yaml:"poolSize" default:"-"`
MinIdleConns int `json:"minIdleConns" yaml:"minIdleConns" default:"-"`
MaxConnAge time.Duration `json:"maxConnAge" yaml:"maxConnAge" default:"-"`
PoolTimeout time.Duration `json:"poolTimeout" yaml:"poolTimeout" default:"4s"`
PoolTimeout time.Duration `json:"poolTimeout" yaml:"poolTimeout" default:"-"`
IdleTimeout time.Duration `json:"idleTimeout" yaml:"idleTimeout" default:"5m"`
IdleCheckFrequency time.Duration `json:"idleCheckFrequency" yaml:"idleCheckFrequency" default:"1m"`
}
Expand Down Expand Up @@ -77,7 +77,7 @@ type BackoffConfig struct {
MaxInterval time.Duration `json:"maxInterval" yaml:"maxInterval" default:"60s"`
// After MaxElapsedTime the ExponentialBackOff returns Stop.
// It never stops if MaxElapsedTime == 0.
MaxElapsedTime time.Duration `json:"maxElapsedTime" yaml:"maxElapsedTime" default:"1m"`
MaxElapsedTime time.Duration `json:"maxElapsedTime" yaml:"maxElapsedTime" default:"10m"`
MaxRetry int64 `json:"maxRetry" yaml:"maxRetry" default:"-1"`
}

Expand Down

0 comments on commit 0723025

Please sign in to comment.