uri = explode(',', env('RPC_BUYER_URI', 'buyer:8099')); } /** * the name of pool * */ protected $name = 'buyer'; /** * Minimum active number of connections * */ protected $minActive = 5; /** * the maximum number of active connections * */ protected $maxActive = 300; /** * the maximum number of wait connections * */ protected $maxWait = 400; /** * Maximum waiting time * */ protected $maxWaitTime = 3; /** * Maximum idle time * */ protected $maxIdleTime = 60; /** * the time of connect timeout * */ protected $timeout = 200; /** * the addresses of connection * *
* [
* '127.0.0.1:88',
* '127.0.0.1:88'
* ]
*
*
*/
protected $uri = [
"buyer:8099",
];
/**
* whether to user provider(consul/etcd/zookeeper)
*
*/
protected $useProvider = false;
/**
* the default balancer is random balancer
*
*/
protected $balancer = '';
/**
* the default provider is consul provider
*
*/
protected $provider = '';
}