Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
22414559
Commit
22414559
authored
Aug 08, 2018
by
feixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
连接池配置修改
parent
1e6ca7a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
23 deletions
+2
-23
src/Common/Pool/Config/AuthPoolConfig.php
+1
-22
src/Common/Pool/Config/BuyerPoolConfig.php
+1
-1
No files found.
src/Common/Pool/Config/AuthPoolConfig.php
View file @
22414559
...
@@ -24,58 +24,43 @@ class AuthPoolConfig extends PoolProperties
...
@@ -24,58 +24,43 @@ class AuthPoolConfig extends PoolProperties
/**
/**
* the name of pool
* the name of pool
*
*
* @Value(name="${config.service.user.name}", env="${USER_POOL_NAME}")
* @var string
*/
*/
protected
$name
=
''
;
protected
$name
=
''
;
/**
/**
* Minimum active number of connections
* Minimum active number of connections
*
* @Value(name="${config.service.user.minActive}", env="${USER_POOL_MIN_ACTIVE}")
* @var int
*/
*/
protected
$minActive
=
5
;
protected
$minActive
=
5
;
/**
/**
* the maximum number of active connections
* the maximum number of active connections
*
*
* @Value(name="${config.service.user.maxActive}", env="${USER_POOL_MAX_ACTIVE}")
* @var int
*/
*/
protected
$maxActive
=
50
;
protected
$maxActive
=
50
;
/**
/**
* the maximum number of wait connections
* the maximum number of wait connections
*
*
* @Value(name="${config.service.user.maxWait}", env="${USER_POOL_MAX_WAIT}")
* @var int
*/
*/
protected
$maxWait
=
100
;
protected
$maxWait
=
100
;
/**
/**
* Maximum waiting time
* Maximum waiting time
*
*
* @Value(name="${config.service.user.maxWaitTime}", env="${USER_POOL_MAX_WAIT_TIME}")
* @var int
*/
*/
protected
$maxWaitTime
=
3
;
protected
$maxWaitTime
=
3
;
/**
/**
* Maximum idle time
* Maximum idle time
*
*
* @Value(name="${config.service.user.maxIdleTime}", env="${USER_POOL_MAX_IDLE_TIME}")
* @var int
*/
*/
protected
$maxIdleTime
=
60
;
protected
$maxIdleTime
=
60
;
/**
/**
* the time of connect timeout
* the time of connect timeout
*
*
* @Value(name="${config.service.user.timeout}", env="${USER_POOL_TIMEOUT}")
* @var int
*/
*/
protected
$timeout
=
200
;
protected
$timeout
=
5
;
/**
/**
* the addresses of connection
* the addresses of connection
...
@@ -96,24 +81,18 @@ class AuthPoolConfig extends PoolProperties
...
@@ -96,24 +81,18 @@ class AuthPoolConfig extends PoolProperties
/**
/**
* whether to user provider(consul/etcd/zookeeper)
* whether to user provider(consul/etcd/zookeeper)
*
*
* @Value(name="${config.service.user.useProvider}", env="${USER_POOL_USE_PROVIDER}")
* @var bool
*/
*/
protected
$useProvider
=
false
;
protected
$useProvider
=
false
;
/**
/**
* the default balancer is random balancer
* the default balancer is random balancer
*
*
* @Value(name="${config.service.user.balancer}", env="${USER_POOL_BALANCER}")
* @var string
*/
*/
protected
$balancer
=
''
;
protected
$balancer
=
''
;
/**
/**
* the default provider is consul provider
* the default provider is consul provider
*
*
* @Value(name="${config.service.user.provider}", env="${USER_POOL_PROVIDER}")
* @var string
*/
*/
protected
$provider
=
''
;
protected
$provider
=
''
;
}
}
src/Common/Pool/Config/BuyerPoolConfig.php
View file @
22414559
...
@@ -61,7 +61,7 @@ class BuyerPoolConfig extends PoolProperties
...
@@ -61,7 +61,7 @@ class BuyerPoolConfig extends PoolProperties
* the time of connect timeout
* the time of connect timeout
*
*
*/
*/
protected
$timeout
=
200
;
protected
$timeout
=
5
;
/**
/**
* the addresses of connection
* the addresses of connection
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment