Skip to content

Commit

Permalink
Merge pull request #3757 from actiontech/inner-2276
Browse files Browse the repository at this point in the history
[inner-2276] add apNode to the configure template
  • Loading branch information
wenyh1 authored Jul 10, 2023
2 parents 74f37ed + 58a3b92 commit 604b782
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/resources/sharding_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,20 @@
</schema>
<!-- sharding testdb2 route to database named dn5 in localhost2 -->
<schema name="testdb2" shardingNode="dn5"/>

<schema name="testdb3" apNode="apNode1">
<globalTable name="tb_global1" shardingNode="dn1,dn2" sqlMaxLimit="103"/>
<globalTable name="tb_global1" shardingNode="dn1,dn2,dn3,dn4" cron="0 0 0 * * ?" checkClass="CHECKSUM"/>
</schema>
<shardingNode name="dn1" dbGroup="dbGroup1" database="db_1"/>
<shardingNode name="dn2" dbGroup="dbGroup2" database="db_2"/>
<shardingNode name="dn3" dbGroup="dbGroup1" database="db_3"/>
<shardingNode name="dn4" dbGroup="dbGroup2" database="db_4"/>
<shardingNode name="dn5" dbGroup="dbGroup1" database="db_5"/>
<shardingNode name="dn6" dbGroup="dbGroup2" database="db_6"/>

<apNode name="apNode1" dbGroup="dbGroup3" database="ap_db1"/>

<!-- enum partition -->
<function name="func_enum" class="Enum">
<property name="mapFile">partition-enum.txt</property>
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/user_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@
<!--rwSplitUser not work for now-->
<!--<rwSplitUser name="rwsu1" password="123456" dbGroup="dbGroup1" blacklist="blacklist1" maxCon="20"/>-->
<analysisUser name="analysisUser" password="123456" dbGroup="dbGroup3" blacklist="blacklist1" maxCon="20"/>

<hybridTAUser name="hysu1" password="111111" schemas="testdb3" maxCon="20"/>
<hybridTAUser name="hysu2" password="111111" schemas="testdb3" maxCon="20" blacklist="blacklist1" tenant="tenant2">
<privileges check="testdb3">
<schema name="testdb3" dml="0110">
<table name="tb_global1" dml="0000"/>
<table name="tb_global2" dml="1111"/>
</schema>
</privileges>
</hybridTAUser>

<blacklist name="blacklist1">
<property name="selelctAllow">true</property>
</blacklist>
Expand Down

0 comments on commit 604b782

Please sign in to comment.