mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-10 22:17:44 +00:00
tweak db connections
This commit is contained in:
parent
0db6090f3e
commit
15c543bb62
1 changed files with 2 additions and 1 deletions
|
@ -195,7 +195,8 @@ func main() {
|
||||||
|
|
||||||
logger.Printf("Starting with %d workers.", workers)
|
logger.Printf("Starting with %d workers.", workers)
|
||||||
|
|
||||||
db.SetMaxOpenConns(workers)
|
db.SetMaxOpenConns(workers * 2)
|
||||||
|
db.SetMaxIdleConns(workers)
|
||||||
|
|
||||||
statsd, err := statsd.New("127.0.0.1:8125")
|
statsd, err := statsd.New("127.0.0.1:8125")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue