We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dfefd8 commit 06773bfCopy full SHA for 06773bf
apollo-client/src/main/java/com/ctrip/framework/apollo/util/ConfigUtil.java
@@ -65,6 +65,14 @@ private void initCluster() {
65
//Load data center from system property
66
cluster = System.getProperty(ConfigConsts.APOLLO_CLUSTER_KEY);
67
68
+ String env = Foundation.server().getEnvType();
69
+ //LPT and DEV will be treated as a cluster(lower case)
70
+ if (Strings.isNullOrEmpty(cluster) &&
71
+ (Env.DEV.name().equalsIgnoreCase(env) || Env.LPT.name().equalsIgnoreCase(env))
72
+ ) {
73
+ cluster = env.toLowerCase();
74
+ }
75
+
76
//Use TOOLING cluster if tooling=true in server.properties
77
if (Strings.isNullOrEmpty(cluster) && isToolingZone()) {
78
cluster = TOOLING_CLUSTER;
0 commit comments