<?xml version="1.0"?>
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
<mycat:schema xmlns:mycat="http://io.mycat/">
<schema name="TESTDB" checkSQLschema="false" sqlMaxLimit="100" dataNode="dn1">
<!-- auto sharding by id (long) -->
<table name="file_data_lct_1" dataNode="dn1,dn2" primaryKey="id" rule="sharding-by-murmur" autoIncrement="true" needAddLimit="true"/>
<table name="mycat_sequence" primaryKey="name" dataNode="dn1" />
</schema>
<!-- <dataNode name="dn1$0-743" dataHost="localhost1" database="db$0-743"
/> -->
<dataNode name="dn1" dataHost="localhost1" database="resource" />
<dataNode name="dn2" dataHost="localhost2" database="crmdktest2"/>
<dataHost name="localhost1" maxCon="1000" minCon="10" balance="3"
writeType="0" dbType="MySQL" dbDriver="native"
switchType="1" slaveThreshold="100">
<heartbeat>select user()</heartbeat>
<!-- can have multi write hosts -->
<writeHost host="hostM1" url="10.100.19.210:3306" user="public"
password="123456">
<readHost host="hostS1" url="10.100.19.210:3306" user="public" password="123456" />
<readHost host="hostS2" url="10.100.19.210:3306" user="public" password="123456" />
<readHost host="hostS3" url="10.100.19.210:3306" user="public" password="123456" />
</writeHost>
<writeHost host="hostM2" url="10.100.19.210:3306" user="public"
password="123456">
<readHost host="hostS4" url="10.100.19.210:3306" user="public" password="123456" />
</writeHost>
</dataHost>
<dataHost name="localhost2" maxCon="1000" minCon="10" balance="3"
writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100">
<heartbeat>select user()</heartbeat>
<!-- can have multi write hosts -->
<writeHost host="hostM3" url="10.100.13.238:3306" user="crmdk_admin"
password="crmdkadmin123!@#">
<readHost host="hostS5" url="10.100.13.238:3306" user="crmdk_admin" password="crmdkadmin123!@#" />
</writeHost>
</dataHost>
</mycat:schema>