Authored by xuhongyun

docker支持以及测试问题修改

  1 +FROM java:8
  2 +
  3 +MAINTAINER xueyin <hongyun.xu@yoho.cn>
  4 +
  5 +ADD Mycat-server-1.6.5-release-linux.tar.gz /home
  6 +
  7 +ENV TZ=Asia/Shanghai
  8 +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  9 +
  10 +
  11 +ENV MYCAT_HOME="/home/mycat"
  12 +ENV JAVA_OPTS="-server -Xms2G -Xmx2G -XX:+AggressiveOpts -XX:MaxDirectMemorySize=2G \
  13 + -Xss256k -XX:+AggressiveOpts -XX:+UseBiasedLocking -XX:+UseFastAccessorMethods \
  14 + -XX:+DisableExplicitGC -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled \
  15 + -XX:+UseCMSCompactAtFullCollection -XX:+UseCMSInitiatingOccupancyOnly \
  16 + -XX:CMSInitiatingOccupancyFraction=75 -XX:CMSInitiatingOccupancyFraction=75"
  17 +
  18 +ENV MYCAT_CLASSPATH=".:$MYCAT_HOME:$MYCAT_HOME/conf:$MYCAT_HOME/lib:$MYCAT_HOME/lib/classes"
  19 +
  20 +ENV RUN_CMD="java -Djava.ext.dirs=$MYCAT_CLASSPATH -DMYCAT_HOME=/home/mycat -classpath $MYCAT_CLASSPATH $JAVA_OPTS \
  21 + io.mycat.MycatStartup $@ >> \"$MYCAT_HOME/logs/console.log\" 2>&1 &"
  22 +
  23 +EXPOSE 8066
  24 +EXPOSE 9066
  25 +
  26 +VOLUME $MYCAT_HOME/logs
  27 +
  28 +WORKDIR /home/mycat
  29 +CMD exec $RUN_CMD
@@ -17,6 +17,7 @@ @@ -17,6 +17,7 @@
17 <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format> 17 <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
18 <version.template.file>version.txt.template</version.template.file> 18 <version.template.file>version.txt.template</version.template.file>
19 <version.file>version.txt</version.file> 19 <version.file>version.txt</version.file>
  20 + <schema.profile>test</schema.profile>
20 </properties> 21 </properties>
21 <scm> 22 <scm>
22 <connection>scm:git:ssh://apachemycat@github.com/MyCATApache/Mycat-Server.git</connection> 23 <connection>scm:git:ssh://apachemycat@github.com/MyCATApache/Mycat-Server.git</connection>
@@ -607,38 +608,35 @@ @@ -607,38 +608,35 @@
607 </dependencies> 608 </dependencies>
608 609
609 </plugin> 610 </plugin>
610 -  
611 <plugin> 611 <plugin>
612 <!-- 默认使用本地的docker,远程时需要配置DOCKER_HOST环境变量--> 612 <!-- 默认使用本地的docker,远程时需要配置DOCKER_HOST环境变量-->
613 <groupId>com.spotify</groupId> 613 <groupId>com.spotify</groupId>
614 <artifactId>docker-maven-plugin</artifactId> 614 <artifactId>docker-maven-plugin</artifactId>
615 <version>1.2.0</version> 615 <version>1.2.0</version>
616 <!--<executions>--> 616 <!--<executions>-->
617 - <!--<execution>-->  
618 - <!--<id>build-image</id>-->  
619 - <!--<phase>package</phase>-->  
620 - <!--<goals>-->  
621 - <!--<goal>build</goal>-->  
622 - <!--</goals>-->  
623 - <!--</execution>--> 617 + <!--<execution>-->
  618 + <!--<id>build-image</id>-->
  619 + <!--<phase>package</phase>-->
  620 + <!--<goals>-->
  621 + <!--<goal>build</goal>-->
  622 + <!--</goals>-->
  623 + <!--</execution>-->
624 <!--</executions>--> 624 <!--</executions>-->
625 <configuration> 625 <configuration>
626 <imageName>mycat-server</imageName> 626 <imageName>mycat-server</imageName>
627 - <imageTags>  
628 - <!--<imageTag>${project.version}-${timestamp}</imageTag>-->  
629 - <imageTag>latest</imageTag>  
630 - </imageTags>  
631 - <forceTags>true</forceTags> 627 + <imageTags>${project.version}</imageTags>
632 <dockerDirectory>${project.basedir}/docker</dockerDirectory> 628 <dockerDirectory>${project.basedir}/docker</dockerDirectory>
  629 +
633 <resources> 630 <resources>
634 <resource> 631 <resource>
635 <targetPath>/</targetPath> 632 <targetPath>/</targetPath>
636 <directory>${project.build.directory}</directory> 633 <directory>${project.build.directory}</directory>
637 - <include>${project.artifactId}-${project.version}-${timestamp}-linux.tar.gz</include> 634 + <include>${project.artifactId}-${project.version}-linux.tar.gz</include>
638 </resource> 635 </resource>
639 </resources> 636 </resources>
640 </configuration> 637 </configuration>
641 </plugin> 638 </plugin>
  639 +
642 </plugins> 640 </plugins>
643 </build> 641 </build>
644 642
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" 2 xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> 4 xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
5 - <id>${timestamp}-linux</id> 5 + <id>linux</id>
6 <includeBaseDirectory>false</includeBaseDirectory> 6 <includeBaseDirectory>false</includeBaseDirectory>
7 <formats> 7 <formats>
8 <format>tar.gz</format> 8 <format>tar.gz</format>
@@ -75,4 +75,11 @@ @@ -75,4 +75,11 @@
75 </fileSet> 75 </fileSet>
76 </fileSets> 76 </fileSets>
77 77
  78 + <files>
  79 + <file>
  80 + <source>src/main/resources/schema_${schema.profile}.xml</source>
  81 + <outputDirectory>mycat/conf</outputDirectory>
  82 + <destName>schema.xml</destName>
  83 + </file>
  84 + </files>
78 </assembly> 85 </assembly>
@@ -16,7 +16,9 @@ if $noJavaHome ; then @@ -16,7 +16,9 @@ if $noJavaHome ; then
16 fi 16 fi
17 #============================================================================== 17 #==============================================================================
18 #set JAVA_OPTS 18 #set JAVA_OPTS
  19 +let memTotal=`cat /proc/meminfo |grep MemTotal|awk '{printf "%d", $2/1024 }'`
19 JAVA_OPTS="-server -Xms2G -Xmx2G -XX:MaxPermSize=64M -XX:+AggressiveOpts -XX:MaxDirectMemorySize=2G" 20 JAVA_OPTS="-server -Xms2G -Xmx2G -XX:MaxPermSize=64M -XX:+AggressiveOpts -XX:MaxDirectMemorySize=2G"
  21 +#JAVA_OPTS="-server -Xms2G -Xmx2G -XX:MaxPermSize=64M -XX:+AggressiveOpts -XX:MaxDirectMemorySize=2G"
20 #JAVA_OPTS="-server -Xms4G -Xmx4G -XX:MaxPermSize=64M -XX:+AggressiveOpts -XX:MaxDirectMemorySize=6G" 22 #JAVA_OPTS="-server -Xms4G -Xmx4G -XX:MaxPermSize=64M -XX:+AggressiveOpts -XX:MaxDirectMemorySize=6G"
21 #performance Options 23 #performance Options
22 JAVA_OPTS="$JAVA_OPTS -Xss256k" 24 JAVA_OPTS="$JAVA_OPTS -Xss256k"
@@ -70,3 +72,7 @@ RUN_CMD="$RUN_CMD >> \"$MYCAT_HOME/logs/console.log\" 2>&1 &" @@ -70,3 +72,7 @@ RUN_CMD="$RUN_CMD >> \"$MYCAT_HOME/logs/console.log\" 2>&1 &"
70 echo $RUN_CMD 72 echo $RUN_CMD
71 eval $RUN_CMD 73 eval $RUN_CMD
72 #============================================================================== 74 #==============================================================================
  75 +#while [ '1' == '1' ];
  76 +#do
  77 +# sleep 1
  78 +#done
@@ -32,7 +32,7 @@ public abstract class Versions { @@ -32,7 +32,7 @@ public abstract class Versions {
32 public static final byte PROTOCOL_VERSION = 10; 32 public static final byte PROTOCOL_VERSION = 10;
33 33
34 /**服务器版本**/ 34 /**服务器版本**/
35 - public static byte[] SERVER_VERSION = "5.6.29-mycat-1.6.5-release-20190313140641".getBytes(); 35 + public static byte[] SERVER_VERSION = "5.6.29-mycat-1.6.5-release-20190325161250".getBytes();
36 36
37 public static void setServerVersion(String version) { 37 public static void setServerVersion(String version) {
38 byte[] mysqlVersionPart = version.getBytes(); 38 byte[] mysqlVersionPart = version.getBytes();
@@ -71,8 +71,7 @@ public class MycatZkCluster { @@ -71,8 +71,7 @@ public class MycatZkCluster {
71 // 从zk上删除注册信息 71 // 从zk上删除注册信息
72 unregitClusterNode(mycatClusterNode); 72 unregitClusterNode(mycatClusterNode);
73 73
74 - // 检查客户端检查数是否全部关闭  
75 - LOGGER.info("start mycat cluster success."); 74 + LOGGER.info("stop mycat cluster success.");
76 } 75 }
77 76
78 private void regitClusterNode(MycatClusterNode node) { 77 private void regitClusterNode(MycatClusterNode node) {
@@ -81,9 +80,7 @@ public class MycatZkCluster { @@ -81,9 +80,7 @@ public class MycatZkCluster {
81 Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { 80 Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
82 @Override 81 @Override
83 public void run() { 82 public void run() {
84 - if (curatorFramework != null) {  
85 - curatorFramework.close();  
86 - } 83 + stop();
87 } 84 }
88 })); 85 }));
89 86
@@ -152,7 +149,8 @@ public class MycatZkCluster { @@ -152,7 +149,8 @@ public class MycatZkCluster {
152 } 149 }
153 150
154 private String buildClusterNodeData(MycatClusterNode node) { 151 private String buildClusterNodeData(MycatClusterNode node) {
155 - return JSON.toJSONString(node); 152 + return String.format("{\"serverIP\":\"%s\",\"serverPort\":%d,\"type\":%d}",
  153 + node.serverIP, node.serverPort, node.type);
156 } 154 }
157 } 155 }
158 156
1 -clusterMode=false 1 +clusterMode=true
2 clusterName=front 2 clusterName=front
3 #zkUrl=zk01.yohoops.org:2181,zk02.yohoops.org:2181,zk03.yohoops.org:2181,zk04.yohoops.org:2181,zk05.yohoops.org:2181 3 #zkUrl=zk01.yohoops.org:2181,zk02.yohoops.org:2181,zk03.yohoops.org:2181,zk04.yohoops.org:2181,zk05.yohoops.org:2181
4 -zkUrl=zk01.yohoops.org:2181  
  4 +zkUrl=172.16.12.73:2181
@@ -135,25 +135,25 @@ @@ -135,25 +135,25 @@
135 135
136 <!-- balance=0 不开启读写分离 balance=1读操作在主备和读库上执行 balance=2 读操作在写库和读库随机分布 blance=3 读操作只在读库上分布 --> 136 <!-- balance=0 不开启读写分离 balance=1读操作在主备和读库上执行 balance=2 读操作在写库和读库随机分布 blance=3 读操作只在读库上分布 -->
137 <!-- promotion 分库分表--> 137 <!-- promotion 分库分表-->
138 - <dataHost name="dh_promt_split1" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 138 + <dataHost name="dh_promt_split1" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
139 <heartbeat>select 1</heartbeat> 139 <heartbeat>select 1</heartbeat>
140 <writeHost host="promotW1" url="write1.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 140 <writeHost host="promotW1" url="write1.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
141 <readHost host="promotR1" url="read1.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 141 <readHost host="promotR1" url="read1.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
142 </writeHost> 142 </writeHost>
143 </dataHost> 143 </dataHost>
144 - <dataHost name="dh_promt_split2" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 144 + <dataHost name="dh_promt_split2" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
145 <heartbeat>select 1</heartbeat> 145 <heartbeat>select 1</heartbeat>
146 <writeHost host="promotW2" url="write2.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 146 <writeHost host="promotW2" url="write2.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
147 <readHost host="promotR2" url="read2.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 147 <readHost host="promotR2" url="read2.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
148 </writeHost> 148 </writeHost>
149 </dataHost> 149 </dataHost>
150 - <dataHost name="dh_promt_split3" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 150 + <dataHost name="dh_promt_split3" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
151 <heartbeat>select 1</heartbeat> 151 <heartbeat>select 1</heartbeat>
152 <writeHost host="promotW3" url="write3.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 152 <writeHost host="promotW3" url="write3.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
153 <readHost host="promotR3" url="read3.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 153 <readHost host="promotR3" url="read3.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
154 </writeHost> 154 </writeHost>
155 </dataHost> 155 </dataHost>
156 - <dataHost name="dh_promt_split4" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 156 + <dataHost name="dh_promt_split4" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
157 <heartbeat>select 1</heartbeat> 157 <heartbeat>select 1</heartbeat>
158 <writeHost host="promotW4" url="write4.promotion.yohoops.org:3307" password="yh_test" user="yh_vpc_bak"> 158 <writeHost host="promotW4" url="write4.promotion.yohoops.org:3307" password="yh_test" user="yh_vpc_bak">
159 <readHost host="promotR4" url="read4.promotion.yohoops.org:3307" password="yh_test" user="yh_vpc_bak" /> 159 <readHost host="promotR4" url="read4.promotion.yohoops.org:3307" password="yh_test" user="yh_vpc_bak" />
@@ -161,25 +161,25 @@ @@ -161,25 +161,25 @@
161 </dataHost> 161 </dataHost>
162 162
163 <!-- orders分库分表--> 163 <!-- orders分库分表-->
164 - <dataHost name="dh_orders_split1" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 164 + <dataHost name="dh_orders_split1" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
165 <heartbeat>select 1</heartbeat> 165 <heartbeat>select 1</heartbeat>
166 <writeHost host="ordersSplitW1" url="write1.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 166 <writeHost host="ordersSplitW1" url="write1.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
167 <readHost host="ordersSplitR1" url="read1.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 167 <readHost host="ordersSplitR1" url="read1.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
168 </writeHost> 168 </writeHost>
169 </dataHost> 169 </dataHost>
170 - <dataHost name="dh_orders_split2" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 170 + <dataHost name="dh_orders_split2" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
171 <heartbeat>select 1</heartbeat> 171 <heartbeat>select 1</heartbeat>
172 <writeHost host="ordersSplitW2" url="write2.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 172 <writeHost host="ordersSplitW2" url="write2.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
173 <readHost host="ordersSplitR2" url="read2.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 173 <readHost host="ordersSplitR2" url="read2.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
174 </writeHost> 174 </writeHost>
175 </dataHost> 175 </dataHost>
176 - <dataHost name="dh_orders_split3" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 176 + <dataHost name="dh_orders_split3" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
177 <heartbeat>select 1</heartbeat> 177 <heartbeat>select 1</heartbeat>
178 <writeHost host="ordersSplitW3" url="write3.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 178 <writeHost host="ordersSplitW3" url="write3.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
179 <readHost host="ordersSplitR3" url="read3.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 179 <readHost host="ordersSplitR3" url="read3.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
180 </writeHost> 180 </writeHost>
181 </dataHost> 181 </dataHost>
182 - <dataHost name="dh_orders_split4" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 182 + <dataHost name="dh_orders_split4" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
183 <heartbeat>select 1</heartbeat> 183 <heartbeat>select 1</heartbeat>
184 <writeHost host="ordersSplitW4" url="write4.orders.yohoops.org:3307" password="yh_test" user="yh_vpc_bak"> 184 <writeHost host="ordersSplitW4" url="write4.orders.yohoops.org:3307" password="yh_test" user="yh_vpc_bak">
185 <readHost host="ordersSplitR4" url="read4.orders.yohoops.org:3307" password="yh_test" user="yh_vpc_bak" /> 185 <readHost host="ordersSplitR4" url="read4.orders.yohoops.org:3307" password="yh_test" user="yh_vpc_bak" />
@@ -187,69 +187,69 @@ @@ -187,69 +187,69 @@
187 </dataHost> 187 </dataHost>
188 188
189 <!-- orders 未拆分库 --> 189 <!-- orders 未拆分库 -->
190 - <dataHost name="dh_order_nosplit" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 190 + <dataHost name="dh_order_nosplit" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
191 <heartbeat>select 1</heartbeat> 191 <heartbeat>select 1</heartbeat>
192 <writeHost host="ordersNosplitW1" url="write.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 192 <writeHost host="ordersNosplitW1" url="write.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
193 <readHost host="ordersNosplitR1" url="read.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 193 <readHost host="ordersNosplitR1" url="read.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
194 </writeHost> 194 </writeHost>
195 </dataHost> 195 </dataHost>
196 196
197 - <dataHost name="dh_cms" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 197 + <dataHost name="dh_cms" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
198 <heartbeat>select 1</heartbeat> 198 <heartbeat>select 1</heartbeat>
199 <writeHost host="cmsW1" url="write.cms.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 199 <writeHost host="cmsW1" url="write.cms.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
200 <readHost host="cmsR1" url="read.cms.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 200 <readHost host="cmsR1" url="read.cms.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
201 </writeHost> 201 </writeHost>
202 </dataHost> 202 </dataHost>
203 - <dataHost name="dh_passport" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 203 + <dataHost name="dh_passport" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
204 <heartbeat>select 1</heartbeat> 204 <heartbeat>select 1</heartbeat>
205 <writeHost host="passportW1" url="write.passport.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 205 <writeHost host="passportW1" url="write.passport.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
206 <readHost host="passportR1" url="read.passport.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 206 <readHost host="passportR1" url="read.passport.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
207 </writeHost> 207 </writeHost>
208 </dataHost> 208 </dataHost>
209 209
210 - <dataHost name="dh_shops" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 210 + <dataHost name="dh_shops" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
211 <heartbeat>select 1</heartbeat> 211 <heartbeat>select 1</heartbeat>
212 <writeHost host="shopsW1" url="write.shops.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 212 <writeHost host="shopsW1" url="write.shops.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
213 <readHost host="shopsR1" url="read.shops.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 213 <readHost host="shopsR1" url="read.shops.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
214 </writeHost> 214 </writeHost>
215 </dataHost> 215 </dataHost>
216 216
217 - <dataHost name="dh_yohood" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 217 + <dataHost name="dh_yohood" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
218 <heartbeat>select 1</heartbeat> 218 <heartbeat>select 1</heartbeat>
219 <writeHost host="yohoodW1" url="write.yohood.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 219 <writeHost host="yohoodW1" url="write.yohood.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
220 <readHost host="yohoodR1" url="read.yohood.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 220 <readHost host="yohoodR1" url="read.yohood.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
221 </writeHost> 221 </writeHost>
222 </dataHost> 222 </dataHost>
223 223
224 - <dataHost name="dh_yh_extendstore" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 224 + <dataHost name="dh_yh_extendstore" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
225 <heartbeat>select 1</heartbeat> 225 <heartbeat>select 1</heartbeat>
226 <writeHost host="yhExtendstoreW1" url="write.store.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 226 <writeHost host="yhExtendstoreW1" url="write.store.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
227 <readHost host="yhExtendstoreR1" url="read.store.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 227 <readHost host="yhExtendstoreR1" url="read.store.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
228 </writeHost> 228 </writeHost>
229 </dataHost> 229 </dataHost>
230 230
231 - <dataHost name="dh_yh_unions" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 231 + <dataHost name="dh_yh_unions" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
232 <heartbeat>select 1</heartbeat> 232 <heartbeat>select 1</heartbeat>
233 <writeHost host="unionsW1" url="write.yhUnion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 233 <writeHost host="unionsW1" url="write.yhUnion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
234 <readHost host="unionsR1" url="read.yhUnion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 234 <readHost host="unionsR1" url="read.yhUnion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
235 </writeHost> 235 </writeHost>
236 </dataHost> 236 </dataHost>
237 237
238 - <dataHost name="dh_uic" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 238 + <dataHost name="dh_uic" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
239 <heartbeat>select 1</heartbeat> 239 <heartbeat>select 1</heartbeat>
240 <writeHost host="uicW1" url="write.uic.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 240 <writeHost host="uicW1" url="write.uic.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
241 <readHost host="uicR1" url="read.uic.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 241 <readHost host="uicR1" url="read.uic.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
242 </writeHost> 242 </writeHost>
243 </dataHost> 243 </dataHost>
244 244
245 - <dataHost name="dh_message" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 245 + <dataHost name="dh_message" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
246 <heartbeat>select 1</heartbeat> 246 <heartbeat>select 1</heartbeat>
247 <writeHost host="messageW1" url="write.message.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 247 <writeHost host="messageW1" url="write.message.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
248 <readHost host="messageR1" url="read.message.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 248 <readHost host="messageR1" url="read.message.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
249 </writeHost> 249 </writeHost>
250 </dataHost> 250 </dataHost>
251 251
252 - <dataHost name="dh_yohobuy_logs" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native"> 252 + <dataHost name="dh_yohobuy_logs" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
253 <heartbeat>select 1</heartbeat> 253 <heartbeat>select 1</heartbeat>
254 <writeHost host="yohobuyLogsW1" url="yohologs.yohoops:3306" password="yh_test" user="yh_vpc_bak"> 254 <writeHost host="yohobuyLogsW1" url="yohologs.yohoops:3306" password="yh_test" user="yh_vpc_bak">
255 <readHost host="yohobuyLogsR1" url="yohologs.yohoops:3306" password="yh_test" user="yh_vpc_bak" /> 255 <readHost host="yohobuyLogsR1" url="yohologs.yohoops:3306" password="yh_test" user="yh_vpc_bak" />
@@ -135,25 +135,25 @@ @@ -135,25 +135,25 @@
135 135
136 <!-- balance=0 不开启读写分离 balance=1读操作在主备和读库上执行 balance=2 读操作在写库和读库随机分布 blance=3 读操作只在读库上分布 --> 136 <!-- balance=0 不开启读写分离 balance=1读操作在主备和读库上执行 balance=2 读操作在写库和读库随机分布 blance=3 读操作只在读库上分布 -->
137 <!-- promotion 分库分表--> 137 <!-- promotion 分库分表-->
138 - <dataHost name="dh_promt_split1" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 138 + <dataHost name="dh_promt_split1" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
139 <heartbeat>select 1</heartbeat> 139 <heartbeat>select 1</heartbeat>
140 <writeHost host="promotW1" url="write1.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 140 <writeHost host="promotW1" url="write1.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
141 <readHost host="promotR1" url="read1.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 141 <readHost host="promotR1" url="read1.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
142 </writeHost> 142 </writeHost>
143 </dataHost> 143 </dataHost>
144 - <dataHost name="dh_promt_split2" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 144 + <dataHost name="dh_promt_split2" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
145 <heartbeat>select 1</heartbeat> 145 <heartbeat>select 1</heartbeat>
146 <writeHost host="promotW2" url="write2.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 146 <writeHost host="promotW2" url="write2.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
147 <readHost host="promotR2" url="read2.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 147 <readHost host="promotR2" url="read2.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
148 </writeHost> 148 </writeHost>
149 </dataHost> 149 </dataHost>
150 - <dataHost name="dh_promt_split3" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 150 + <dataHost name="dh_promt_split3" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
151 <heartbeat>select 1</heartbeat> 151 <heartbeat>select 1</heartbeat>
152 <writeHost host="promotW3" url="write3.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 152 <writeHost host="promotW3" url="write3.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
153 <readHost host="promotR3" url="read3.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 153 <readHost host="promotR3" url="read3.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
154 </writeHost> 154 </writeHost>
155 </dataHost> 155 </dataHost>
156 - <dataHost name="dh_promt_split4" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 156 + <dataHost name="dh_promt_split4" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
157 <heartbeat>select 1</heartbeat> 157 <heartbeat>select 1</heartbeat>
158 <writeHost host="promotW4" url="write4.promotion.yohoops.org:3307" password="yh_test" user="yh_vpc_bak"> 158 <writeHost host="promotW4" url="write4.promotion.yohoops.org:3307" password="yh_test" user="yh_vpc_bak">
159 <readHost host="promotR4" url="read4.promotion.yohoops.org:3307" password="yh_test" user="yh_vpc_bak" /> 159 <readHost host="promotR4" url="read4.promotion.yohoops.org:3307" password="yh_test" user="yh_vpc_bak" />
@@ -161,25 +161,25 @@ @@ -161,25 +161,25 @@
161 </dataHost> 161 </dataHost>
162 162
163 <!-- orders分库分表--> 163 <!-- orders分库分表-->
164 - <dataHost name="dh_orders_split1" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 164 + <dataHost name="dh_orders_split1" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
165 <heartbeat>select 1</heartbeat> 165 <heartbeat>select 1</heartbeat>
166 <writeHost host="ordersSplitW1" url="write1.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 166 <writeHost host="ordersSplitW1" url="write1.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
167 <readHost host="ordersSplitR1" url="read1.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 167 <readHost host="ordersSplitR1" url="read1.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
168 </writeHost> 168 </writeHost>
169 </dataHost> 169 </dataHost>
170 - <dataHost name="dh_orders_split2" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 170 + <dataHost name="dh_orders_split2" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
171 <heartbeat>select 1</heartbeat> 171 <heartbeat>select 1</heartbeat>
172 <writeHost host="ordersSplitW2" url="write2.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 172 <writeHost host="ordersSplitW2" url="write2.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
173 <readHost host="ordersSplitR2" url="read2.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 173 <readHost host="ordersSplitR2" url="read2.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
174 </writeHost> 174 </writeHost>
175 </dataHost> 175 </dataHost>
176 - <dataHost name="dh_orders_split3" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 176 + <dataHost name="dh_orders_split3" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
177 <heartbeat>select 1</heartbeat> 177 <heartbeat>select 1</heartbeat>
178 <writeHost host="ordersSplitW3" url="write3.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 178 <writeHost host="ordersSplitW3" url="write3.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
179 <readHost host="ordersSplitR3" url="read3.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 179 <readHost host="ordersSplitR3" url="read3.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
180 </writeHost> 180 </writeHost>
181 </dataHost> 181 </dataHost>
182 - <dataHost name="dh_orders_split4" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 182 + <dataHost name="dh_orders_split4" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
183 <heartbeat>select 1</heartbeat> 183 <heartbeat>select 1</heartbeat>
184 <writeHost host="ordersSplitW4" url="write4.orders.yohoops.org:3307" password="yh_test" user="yh_vpc_bak"> 184 <writeHost host="ordersSplitW4" url="write4.orders.yohoops.org:3307" password="yh_test" user="yh_vpc_bak">
185 <readHost host="ordersSplitR4" url="read4.orders.yohoops.org:3307" password="yh_test" user="yh_vpc_bak" /> 185 <readHost host="ordersSplitR4" url="read4.orders.yohoops.org:3307" password="yh_test" user="yh_vpc_bak" />
@@ -187,69 +187,69 @@ @@ -187,69 +187,69 @@
187 </dataHost> 187 </dataHost>
188 188
189 <!-- orders 未拆分库 --> 189 <!-- orders 未拆分库 -->
190 - <dataHost name="dh_order_nosplit" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 190 + <dataHost name="dh_order_nosplit" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
191 <heartbeat>select 1</heartbeat> 191 <heartbeat>select 1</heartbeat>
192 <writeHost host="ordersNosplitW1" url="write.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 192 <writeHost host="ordersNosplitW1" url="write.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
193 <readHost host="ordersNosplitR1" url="read.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 193 <readHost host="ordersNosplitR1" url="read.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
194 </writeHost> 194 </writeHost>
195 </dataHost> 195 </dataHost>
196 196
197 - <dataHost name="dh_cms" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 197 + <dataHost name="dh_cms" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
198 <heartbeat>select 1</heartbeat> 198 <heartbeat>select 1</heartbeat>
199 <writeHost host="cmsW1" url="write.cms.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 199 <writeHost host="cmsW1" url="write.cms.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
200 <readHost host="cmsR1" url="read.cms.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 200 <readHost host="cmsR1" url="read.cms.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
201 </writeHost> 201 </writeHost>
202 </dataHost> 202 </dataHost>
203 - <dataHost name="dh_passport" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 203 + <dataHost name="dh_passport" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
204 <heartbeat>select 1</heartbeat> 204 <heartbeat>select 1</heartbeat>
205 <writeHost host="passportW1" url="write.passport.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 205 <writeHost host="passportW1" url="write.passport.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
206 <readHost host="passportR1" url="read.passport.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 206 <readHost host="passportR1" url="read.passport.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
207 </writeHost> 207 </writeHost>
208 </dataHost> 208 </dataHost>
209 209
210 - <dataHost name="dh_shops" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 210 + <dataHost name="dh_shops" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
211 <heartbeat>select 1</heartbeat> 211 <heartbeat>select 1</heartbeat>
212 <writeHost host="shopsW1" url="write.shops.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 212 <writeHost host="shopsW1" url="write.shops.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
213 <readHost host="shopsR1" url="read.shops.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 213 <readHost host="shopsR1" url="read.shops.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
214 </writeHost> 214 </writeHost>
215 </dataHost> 215 </dataHost>
216 216
217 - <dataHost name="dh_yohood" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 217 + <dataHost name="dh_yohood" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
218 <heartbeat>select 1</heartbeat> 218 <heartbeat>select 1</heartbeat>
219 <writeHost host="yohoodW1" url="write.yohood.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 219 <writeHost host="yohoodW1" url="write.yohood.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
220 <readHost host="yohoodR1" url="read.yohood.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 220 <readHost host="yohoodR1" url="read.yohood.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
221 </writeHost> 221 </writeHost>
222 </dataHost> 222 </dataHost>
223 223
224 - <dataHost name="dh_yh_extendstore" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 224 + <dataHost name="dh_yh_extendstore" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
225 <heartbeat>select 1</heartbeat> 225 <heartbeat>select 1</heartbeat>
226 <writeHost host="yhExtendstoreW1" url="write.store.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 226 <writeHost host="yhExtendstoreW1" url="write.store.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
227 <readHost host="yhExtendstoreR1" url="read.store.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 227 <readHost host="yhExtendstoreR1" url="read.store.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
228 </writeHost> 228 </writeHost>
229 </dataHost> 229 </dataHost>
230 230
231 - <dataHost name="dh_yh_unions" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 231 + <dataHost name="dh_yh_unions" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
232 <heartbeat>select 1</heartbeat> 232 <heartbeat>select 1</heartbeat>
233 <writeHost host="unionsW1" url="write.yhUnion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 233 <writeHost host="unionsW1" url="write.yhUnion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
234 <readHost host="unionsR1" url="read.yhUnion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 234 <readHost host="unionsR1" url="read.yhUnion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
235 </writeHost> 235 </writeHost>
236 </dataHost> 236 </dataHost>
237 237
238 - <dataHost name="dh_uic" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 238 + <dataHost name="dh_uic" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
239 <heartbeat>select 1</heartbeat> 239 <heartbeat>select 1</heartbeat>
240 <writeHost host="uicW1" url="write.uic.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 240 <writeHost host="uicW1" url="write.uic.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
241 <readHost host="uicR1" url="read.uic.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 241 <readHost host="uicR1" url="read.uic.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
242 </writeHost> 242 </writeHost>
243 </dataHost> 243 </dataHost>
244 244
245 - <dataHost name="dh_message" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 245 + <dataHost name="dh_message" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
246 <heartbeat>select 1</heartbeat> 246 <heartbeat>select 1</heartbeat>
247 <writeHost host="messageW1" url="write.message.yohoops.org:3306" password="yh_test" user="yh_vpc_bak"> 247 <writeHost host="messageW1" url="write.message.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
248 <readHost host="messageR1" url="read.message.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" /> 248 <readHost host="messageR1" url="read.message.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
249 </writeHost> 249 </writeHost>
250 </dataHost> 250 </dataHost>
251 251
252 - <dataHost name="dh_yohobuy_logs" maxCon="50" minCon="10" balance="2" dbType="mysql" dbDriver="native"> 252 + <dataHost name="dh_yohobuy_logs" maxCon="20" minCon="10" balance="2" dbType="mysql" dbDriver="native">
253 <heartbeat>select 1</heartbeat> 253 <heartbeat>select 1</heartbeat>
254 <writeHost host="yohobuyLogsW1" url="yohologs.yohoops:3306" password="yh_test" user="yh_vpc_bak"> 254 <writeHost host="yohobuyLogsW1" url="yohologs.yohoops:3306" password="yh_test" user="yh_vpc_bak">
255 <readHost host="yohobuyLogsR1" url="yohologs.yohoops:3306" password="yh_test" user="yh_vpc_bak" /> 255 <readHost host="yohobuyLogsR1" url="yohologs.yohoops:3306" password="yh_test" user="yh_vpc_bak" />
@@ -133,62 +133,62 @@ @@ -133,62 +133,62 @@
133 <dataNode name="dn_yohobuy_logs" dataHost="dh_yohobuy_logs" database="yohobuy_logs" /> 133 <dataNode name="dn_yohobuy_logs" dataHost="dh_yohobuy_logs" database="yohobuy_logs" />
134 134
135 <!-- balance=0 不开启读写分离 balance=1读操作在主备和读库上执行 balance=2 读操作在写库和读库随机分布 blance=3 读操作只在读库上分布 --> 135 <!-- balance=0 不开启读写分离 balance=1读操作在主备和读库上执行 balance=2 读操作在写库和读库随机分布 blance=3 读操作只在读库上分布 -->
136 - <dataHost name="dh_promt_split" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 136 + <dataHost name="dh_promt_split" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
137 <heartbeat>select 1</heartbeat> 137 <heartbeat>select 1</heartbeat>
138 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 138 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
139 </dataHost> 139 </dataHost>
140 140
141 - <dataHost name="dh_orders_split" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 141 + <dataHost name="dh_orders_split" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
142 <heartbeat>select 1</heartbeat> 142 <heartbeat>select 1</heartbeat>
143 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 143 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
144 </dataHost> 144 </dataHost>
145 145
146 - <dataHost name="dh_order_nosplit" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 146 + <dataHost name="dh_order_nosplit" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
147 <heartbeat>select 1</heartbeat> 147 <heartbeat>select 1</heartbeat>
148 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 148 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
149 </dataHost> 149 </dataHost>
150 150
151 - <dataHost name="dh_cms" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 151 + <dataHost name="dh_cms" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
152 <heartbeat>select 1</heartbeat> 152 <heartbeat>select 1</heartbeat>
153 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 153 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
154 </dataHost> 154 </dataHost>
155 155
156 - <dataHost name="dh_passport" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 156 + <dataHost name="dh_passport" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
157 <heartbeat>select 1</heartbeat> 157 <heartbeat>select 1</heartbeat>
158 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 158 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
159 </dataHost> 159 </dataHost>
160 160
161 - <dataHost name="dh_shops" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 161 + <dataHost name="dh_shops" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
162 <heartbeat>select 1</heartbeat> 162 <heartbeat>select 1</heartbeat>
163 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 163 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
164 </dataHost> 164 </dataHost>
165 165
166 - <dataHost name="dh_yohood" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 166 + <dataHost name="dh_yohood" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
167 <heartbeat>select 1</heartbeat> 167 <heartbeat>select 1</heartbeat>
168 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 168 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
169 </dataHost> 169 </dataHost>
170 170
171 - <dataHost name="dh_yh_extendstore" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 171 + <dataHost name="dh_yh_extendstore" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
172 <heartbeat>select 1</heartbeat> 172 <heartbeat>select 1</heartbeat>
173 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 173 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
174 </dataHost> 174 </dataHost>
175 175
176 - <dataHost name="dh_yh_unions" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 176 + <dataHost name="dh_yh_unions" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
177 <heartbeat>select 1</heartbeat> 177 <heartbeat>select 1</heartbeat>
178 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 178 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
179 </dataHost> 179 </dataHost>
180 180
181 - <dataHost name="dh_uic" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 181 + <dataHost name="dh_uic" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
182 <heartbeat>select 1</heartbeat> 182 <heartbeat>select 1</heartbeat>
183 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 183 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
184 </dataHost> 184 </dataHost>
185 185
186 - <dataHost name="dh_message" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 186 + <dataHost name="dh_message" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
187 <heartbeat>select 1</heartbeat> 187 <heartbeat>select 1</heartbeat>
188 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 188 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
189 </dataHost> 189 </dataHost>
190 190
191 - <dataHost name="dh_yohobuy_logs" maxCon="50" minCon="10" balance="0" dbType="mysql" dbDriver="native"> 191 + <dataHost name="dh_yohobuy_logs" maxCon="5" minCon="2" balance="0" dbType="mysql" dbDriver="native">
192 <heartbeat>select 1</heartbeat> 192 <heartbeat>select 1</heartbeat>
193 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost> 193 <writeHost url="192.168.102.219:3306" host="yhTest" password="yh_test" user="yh_test"></writeHost>
194 </dataHost> 194 </dataHost>
1 -BuildTime 2019-03-13 06:06:40  
2 -GitVersion 45d828efee99c6d5821081e389082ec5fac4b6d3 1 +BuildTime 2019-03-25 08:12:49
  2 +GitVersion 2cfd103ae3cd8a57e3204c4e352f48b36f3aebb5
3 MavenVersion 1.6.5-release 3 MavenVersion 1.6.5-release
4 GitUrl https://github.com/MyCATApache/Mycat-Server.git 4 GitUrl https://github.com/MyCATApache/Mycat-Server.git
5 MyCatSite http://www.mycat.org.cn 5 MyCatSite http://www.mycat.org.cn