Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
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
谢捷峰
discovery
Commits
922a73be
Commit
922a73be
authored
Sep 12, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加基于Region的权重流量策略
parent
0580639c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
discovery-plugin-admin-center/src/main/java/com/nepxion/discovery/plugin/admincenter/endpoint/RouterEndpoint.java
+0
-4
discovery-plugin-framework/src/main/java/com/nepxion/discovery/plugin/framework/loadbalance/WeightRandomLoadBalance.java
+0
-4
No files found.
discovery-plugin-admin-center/src/main/java/com/nepxion/discovery/plugin/admincenter/endpoint/RouterEndpoint.java
View file @
922a73be
...
@@ -342,10 +342,6 @@ public class RouterEndpoint {
...
@@ -342,10 +342,6 @@ public class RouterEndpoint {
}
}
private
int
getWeight
(
String
providerRegion
,
RegionWeightEntity
regionWeightEntity
)
{
private
int
getWeight
(
String
providerRegion
,
RegionWeightEntity
regionWeightEntity
)
{
if
(
StringUtils
.
isEmpty
(
providerRegion
))
{
return
-
1
;
}
if
(
regionWeightEntity
==
null
)
{
if
(
regionWeightEntity
==
null
)
{
return
-
1
;
return
-
1
;
}
}
...
...
discovery-plugin-framework/src/main/java/com/nepxion/discovery/plugin/framework/loadbalance/WeightRandomLoadBalance.java
View file @
922a73be
...
@@ -152,10 +152,6 @@ public class WeightRandomLoadBalance {
...
@@ -152,10 +152,6 @@ public class WeightRandomLoadBalance {
}
}
private
int
getWeight
(
String
providerRegion
,
RegionWeightEntity
regionWeightEntity
)
{
private
int
getWeight
(
String
providerRegion
,
RegionWeightEntity
regionWeightEntity
)
{
if
(
StringUtils
.
isEmpty
(
providerRegion
))
{
return
-
1
;
}
if
(
regionWeightEntity
==
null
)
{
if
(
regionWeightEntity
==
null
)
{
return
-
1
;
return
-
1
;
}
}
...
...
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