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