Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
06773bfb
Commit
06773bfb
authored
Nov 30, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
treat DEV and LPT as a cluster
parent
6dfefd8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ConfigUtil.java
...main/java/com/ctrip/framework/apollo/util/ConfigUtil.java
+8
-0
No files found.
apollo-client/src/main/java/com/ctrip/framework/apollo/util/ConfigUtil.java
View file @
06773bfb
...
...
@@ -65,6 +65,14 @@ public class ConfigUtil {
//Load data center from system property
cluster
=
System
.
getProperty
(
ConfigConsts
.
APOLLO_CLUSTER_KEY
);
String
env
=
Foundation
.
server
().
getEnvType
();
//LPT and DEV will be treated as a cluster(lower case)
if
(
Strings
.
isNullOrEmpty
(
cluster
)
&&
(
Env
.
DEV
.
name
().
equalsIgnoreCase
(
env
)
||
Env
.
LPT
.
name
().
equalsIgnoreCase
(
env
))
)
{
cluster
=
env
.
toLowerCase
();
}
//Use TOOLING cluster if tooling=true in server.properties
if
(
Strings
.
isNullOrEmpty
(
cluster
)
&&
isToolingZone
())
{
cluster
=
TOOLING_CLUSTER
;
...
...
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