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
071b4a89
Commit
071b4a89
authored
Aug 17, 2018
by
xmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
连接池
parent
62ea5c90
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletions
+19
-1
src/Common/Pool/Config/GoodsPoolConfig.php
+7
-1
src/Common/Pool/Config/SellerDistributionPoolConfig.php
+6
-0
src/Common/Pool/Config/SellerPoolConfig.php
+6
-0
No files found.
src/Common/Pool/Config/GoodsPoolConfig.php
View file @
071b4a89
...
...
@@ -20,8 +20,14 @@ use Swoft\Pool\PoolProperties;
*/
class
GoodsPoolConfig
extends
PoolProperties
{
public
function
__construct
()
{
// 区别本地和线上的RPC服务地址
$this
->
uri
=
explode
(
','
,
env
(
'RPC_GOODS_URI'
,
'172.21.0.47:8099,172.16.255.235:8099'
));
}
protected
$name
=
'seller'
;
protected
$name
=
'seller'
;
/**
* Minimum active number of connections
...
...
src/Common/Pool/Config/SellerDistributionPoolConfig.php
View file @
071b4a89
...
...
@@ -21,6 +21,12 @@ use Swoft\Pool\PoolProperties;
class
SellerDistributionPoolConfig
extends
PoolProperties
{
public
function
__construct
()
{
// 区别本地和线上的RPC服务地址
$this
->
uri
=
explode
(
','
,
env
(
'RPC_SELLER_DISTRIBUTION_URI'
,
'172.21.0.17:8099,172.16.255.34:8099'
));
}
protected
$name
=
'sellerDistribution'
;
/**
...
...
src/Common/Pool/Config/SellerPoolConfig.php
View file @
071b4a89
...
...
@@ -21,6 +21,12 @@ use Swoft\Pool\PoolProperties;
class
SellerPoolConfig
extends
PoolProperties
{
public
function
__construct
()
{
// 区别本地和线上的RPC服务地址
$this
->
uri
=
explode
(
','
,
env
(
'RPC_SELLER_URI'
,
'172.21.0.10:8099,172.16.255.196:8099'
));
}
protected
$name
=
'seller'
;
/**
...
...
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