...
|
...
|
@@ -135,25 +135,25 @@ |
|
|
|
|
|
<!-- balance=0 不开启读写分离 balance=1读操作在主备和读库上执行 balance=2 读操作在写库和读库随机分布 blance=3 读操作只在读库上分布 -->
|
|
|
<!-- promotion 分库分表-->
|
|
|
<dataHost name="dh_promt_split1" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_promt_split1" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="promotW1" url="write1.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="promotR1" url="read1.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
<dataHost name="dh_promt_split2" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_promt_split2" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="promotW2" url="write2.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="promotR2" url="read2.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
<dataHost name="dh_promt_split3" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_promt_split3" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="promotW3" url="write3.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="promotR3" url="read3.promotion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
<dataHost name="dh_promt_split4" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_promt_split4" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="promotW4" url="write4.promotion.yohoops.org:3307" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="promotR4" url="read4.promotion.yohoops.org:3307" password="yh_test" user="yh_vpc_bak" />
|
...
|
...
|
@@ -161,25 +161,25 @@ |
|
|
</dataHost>
|
|
|
|
|
|
<!-- orders分库分表-->
|
|
|
<dataHost name="dh_orders_split1" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_orders_split1" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="ordersSplitW1" url="write1.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="ordersSplitR1" url="read1.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
<dataHost name="dh_orders_split2" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_orders_split2" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="ordersSplitW2" url="write2.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="ordersSplitR2" url="read2.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
<dataHost name="dh_orders_split3" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_orders_split3" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="ordersSplitW3" url="write3.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="ordersSplitR3" url="read3.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
<dataHost name="dh_orders_split4" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_orders_split4" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="ordersSplitW4" url="write4.orders.yohoops.org:3307" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="ordersSplitR4" url="read4.orders.yohoops.org:3307" password="yh_test" user="yh_vpc_bak" />
|
...
|
...
|
@@ -187,69 +187,69 @@ |
|
|
</dataHost>
|
|
|
|
|
|
<!-- orders 未拆分库 -->
|
|
|
<dataHost name="dh_order_nosplit" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_order_nosplit" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="ordersNosplitW1" url="write.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="ordersNosplitR1" url="read.orders.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
|
|
|
<dataHost name="dh_cms" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_cms" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="cmsW1" url="write.cms.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="cmsR1" url="read.cms.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
<dataHost name="dh_passport" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_passport" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="passportW1" url="write.passport.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="passportR1" url="read.passport.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
|
|
|
<dataHost name="dh_shops" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_shops" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="shopsW1" url="write.shops.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="shopsR1" url="read.shops.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
|
|
|
<dataHost name="dh_yohood" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_yohood" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="yohoodW1" url="write.yohood.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="yohoodR1" url="read.yohood.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
|
|
|
<dataHost name="dh_yh_extendstore" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_yh_extendstore" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="yhExtendstoreW1" url="write.store.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="yhExtendstoreR1" url="read.store.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
|
|
|
<dataHost name="dh_yh_unions" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_yh_unions" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="unionsW1" url="write.yhUnion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="unionsR1" url="read.yhUnion.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
|
|
|
<dataHost name="dh_uic" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_uic" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="uicW1" url="write.uic.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="uicR1" url="read.uic.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
|
|
|
<dataHost name="dh_message" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_message" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="messageW1" url="write.message.yohoops.org:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="messageR1" url="read.message.yohoops.org:3306" password="yh_test" user="yh_vpc_bak" />
|
|
|
</writeHost>
|
|
|
</dataHost>
|
|
|
|
|
|
<dataHost name="dh_yohobuy_logs" maxCon="50" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<dataHost name="dh_yohobuy_logs" maxCon="20" minCon="10" balance="3" dbType="mysql" dbDriver="native">
|
|
|
<heartbeat>select 1</heartbeat>
|
|
|
<writeHost host="yohobuyLogsW1" url="yohologs.yohoops:3306" password="yh_test" user="yh_vpc_bak">
|
|
|
<readHost host="yohobuyLogsR1" url="yohologs.yohoops:3306" password="yh_test" user="yh_vpc_bak" />
|
...
|
...
|
|