Skip to content

Commit

Permalink
Allow more active redis connections
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jan 19, 2022
1 parent fd95b68 commit 8b01318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/rapidpro/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,11 @@ func (b *backend) Start() error {
// create our pool
redisPool := &redis.Pool{
Wait: true, // makes callers wait for a connection
MaxActive: 8, // only open this many concurrent connections at once
MaxActive: 36, // only open this many concurrent connections at once
MaxIdle: 4, // only keep up to this many idle
IdleTimeout: 240 * time.Second, // how long to wait before reaping a connection
Dial: func() (redis.Conn, error) {
conn, err := redis.Dial("tcp", fmt.Sprintf("%s", redisURL.Host))
conn, err := redis.Dial("tcp", redisURL.Host)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 8b01318

Please sign in to comment.