Allow for more cached connections
This commit is contained in:
parent
4cb3d08aba
commit
3c3da212d7
|
@ -67,7 +67,7 @@ func NewClient(config *Config) (*Client, error) {
|
|||
// Create server
|
||||
c := &Client{
|
||||
config: config,
|
||||
connPool: NewPool(3, 30*time.Second),
|
||||
connPool: NewPool(8, 30*time.Second),
|
||||
eventCh: make(chan serf.Event, 256),
|
||||
logger: logger,
|
||||
shutdownCh: make(chan struct{}),
|
||||
|
|
|
@ -95,7 +95,7 @@ func NewServer(config *Config) (*Server, error) {
|
|||
// Create server
|
||||
s := &Server{
|
||||
config: config,
|
||||
connPool: NewPool(5, 0),
|
||||
connPool: NewPool(16, time.Minute),
|
||||
eventChLAN: make(chan serf.Event, 256),
|
||||
eventChWAN: make(chan serf.Event, 256),
|
||||
logger: logger,
|
||||
|
|
Loading…
Reference in New Issue