Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
piplus-backend-v5-server-dockers
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
piplus-backend-v5
piplus-backend-v5-server-dockers
Commits
792ad7c5
Commit
792ad7c5
authored
Aug 10, 2016
by
focus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
第一次吧
parent
053913ab
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
803 additions
and
0 deletions
+803
-0
Dockerfile
piplus-backend-v5-canal-docker/Dockerfile
+0
-0
README.md
piplus-backend-v5-canal-docker/README.md
+0
-0
canal.deployer-1.0.22.tar.gz
piplus-backend-v5-canal-docker/canal.deployer-1.0.22.tar.gz
+0
-0
Dockerfile
piplus-backend-v5-mycat-docker/Dockerfile
+42
-0
Mycat-server-1.5.1-RELEASE-20160810140521-linux.tar.gz
...er/Mycat-server-1.5.1-RELEASE-20160810140521-linux.tar.gz
+0
-0
README.md
piplus-backend-v5-mycat-docker/README.md
+0
-0
autopartition-long.txt
piplus-backend-v5-mycat-docker/conf/autopartition-long.txt
+5
-0
cacheservice.properties
piplus-backend-v5-mycat-docker/conf/cacheservice.properties
+7
-0
dnindex.properties
piplus-backend-v5-mycat-docker/conf/dnindex.properties
+3
-0
ehcache.xml
piplus-backend-v5-mycat-docker/conf/ehcache.xml
+8
-0
index_to_charset.properties
...-backend-v5-mycat-docker/conf/index_to_charset.properties
+91
-0
log4j.xml
piplus-backend-v5-mycat-docker/conf/log4j.xml
+42
-0
myid.properties
piplus-backend-v5-mycat-docker/conf/myid.properties
+3
-0
partition-hash-int.txt
piplus-backend-v5-mycat-docker/conf/partition-hash-int.txt
+2
-0
partition-range-mod.txt
piplus-backend-v5-mycat-docker/conf/partition-range-mod.txt
+6
-0
router.xml
piplus-backend-v5-mycat-docker/conf/router.xml
+28
-0
rule.xml
piplus-backend-v5-mycat-docker/conf/rule.xml
+126
-0
schema.xml
piplus-backend-v5-mycat-docker/conf/schema.xml
+86
-0
sequence_conf.properties
piplus-backend-v5-mycat-docker/conf/sequence_conf.properties
+27
-0
sequence_db_conf.properties
...-backend-v5-mycat-docker/conf/sequence_db_conf.properties
+5
-0
sequence_time_conf.properties
...ackend-v5-mycat-docker/conf/sequence_time_conf.properties
+3
-0
server.xml
piplus-backend-v5-mycat-docker/conf/server.xml
+54
-0
wrapper.conf
piplus-backend-v5-mycat-docker/conf/wrapper.conf
+113
-0
zk-create.yaml
piplus-backend-v5-mycat-docker/conf/zk-create.yaml
+142
-0
sources.list
piplus-backend-v5-mycat-docker/sources.list
+10
-0
No files found.
piplus-backend-v5-canal-docker/Dockerfile
0 → 100644
View file @
792ad7c5
piplus-backend-v5-canal-docker/README.md
0 → 100644
View file @
792ad7c5
piplus-backend-v5-canal-docker/canal.deployer-1.0.22.tar.gz
0 → 100644
View file @
792ad7c5
File added
piplus-backend-v5-mycat-docker/Dockerfile
0 → 100644
View file @
792ad7c5
# piplus v5 Mycat Dockerfile
FROM
ubuntu:14.04
MAINTAINER
focus <focus@hudongpai.com>
RUN
\
mv
/etc/apt/sources.list /etc/apt/sources.list_bak
ADD
sources.list /etc/apt/
COPY
Mycat-server-1.5.1-RELEASE-20160810140521-linux.tar.gz /etc
# Install myCat.
RUN
\
apt-get update
&&
\
apt-get
-y
upgrade
&&
\
apt-get
install
-y
python-software-properties
&&
\
apt-get
install
-y
software-properties-common
&&
\
add-apt-repository ppa:webupd8team/java
&&
\
apt-get update
&&
\
apt-get
install
-y
wget
&&
\
apt-get
install
-y
--force-yes
oracle-java8-installer
&&
\
update-java-alternatives
-s
java-8-oracle
&&
\
tar
zxf /etc/Mycat-server-1.5.1-RELEASE-20160810140521-linux.tar.gz
&&
\
rm -rf /etc/mycat/conf
# Add src
ADD
conf /etc/mycat/
# Define mountable directories.
VOLUME
["/etc/mycat/conf"]
# Expose ports.
EXPOSE
8066
# Define working directory.
WORKDIR
/etc/mycat/bin
# Define default command.
CMD
["mycat","start"]
\ No newline at end of file
piplus-backend-v5-mycat-docker/Mycat-server-1.5.1-RELEASE-20160810140521-linux.tar.gz
0 → 100755
View file @
792ad7c5
File added
piplus-backend-v5-mycat-docker/README.md
0 → 100644
View file @
792ad7c5
piplus-backend-v5-mycat-docker/conf/autopartition-long.txt
0 → 100755
View file @
792ad7c5
# range start-end ,data node index
# K=1000,M=10000.
0-500M=0
500M-1000M=1
1000M-1500M=2
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/cacheservice.properties
0 → 100755
View file @
792ad7c5
#used for mycat cache service conf
factory.encache
=
org.opencloudb.cache.impl.EnchachePooFactory
#key is pool name ,value is type,max size, expire seconds
pool.SQLRouteCache
=
encache,10000,1800
pool.ER_SQL2PARENTID
=
encache,1000,1800
layedpool.TableID2DataNodeCache
=
encache,10000,18000
layedpool.TableID2DataNodeCache.TESTDB_ORDERS
=
50000,18000
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/dnindex.properties
0 → 100644
View file @
792ad7c5
#update
#Sun Aug 07 01:36:38 CST 2016
localhost1
=
0
piplus-backend-v5-mycat-docker/conf/ehcache.xml
0 → 100755
View file @
792ad7c5
<ehcache
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"ehcache.xsd"
maxEntriesLocalHeap=
"100000000"
maxBytesLocalDisk=
"50G"
updateCheck=
"false"
>
<defaultCache
maxElementsInMemory=
"1000000"
eternal=
"false"
overflowToDisk=
"false"
diskSpoolBufferSizeMB=
"30"
maxElementsOnDisk=
"10000000"
diskPersistent=
"false"
diskExpiryThreadIntervalSeconds=
"120"
memoryStoreEvictionPolicy=
"LRU"
/>
</ehcache>
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/index_to_charset.properties
0 → 100755
View file @
792ad7c5
1
=
big5
2
=
czech
3
=
dec8
4
=
dos
5
=
german1
6
=
hp8
7
=
koi8_ru
8
=
latin1
9
=
latin2
10
=
swe7
11
=
usa7
12
=
ujis
13
=
sjis
14
=
cp1251
15
=
danish
16
=
hebrew
18
=
tis620
19
=
euc_kr
20
=
estonia
21
=
hungarian
22
=
koi8_ukr
23
=
win1251ukr
24
=
gb2312
25
=
greek
26
=
win1250
27
=
croat
28
=
gbk
29
=
cp1257
30
=
latin5
31
=
latin1_de
32
=
armscii8
33
=
utf8
34
=
win1250ch
35
=
ucs2
36
=
cp866
37
=
keybcs2
38
=
macce
39
=
macroman
40
=
pclatin2
41
=
latvian
42
=
latvian1
43
=
maccebin
44
=
macceciai
45
=
utf8mb4
46
=
maccecsas
47
=
latin1bin
48
=
latin1cias
49
=
latin1csas
50
=
cp1251bin
51
=
cp1251cias
52
=
cp1251csas
53
=
macromanbin
54
=
macromancias
55
=
macromanciai
56
=
macromancsas
57
=
cp1256
63
=
binary
64
=
armscii
65
=
ascii
66
=
cp1250
67
=
cp1256
68
=
cp866
69
=
dec8
70
=
greek
71
=
hebrew
72
=
hp8
73
=
keybcs2
74
=
koi8r
75
=
koi8ukr
77
=
latin2
78
=
latin5
79
=
latin7
80
=
cp850
81
=
cp852
82
=
swe7
83
=
utf8
84
=
big5
85
=
euckr
86
=
gb2312
87
=
gbk
88
=
sjis
89
=
tis620
90
=
ucs2
91
=
ujis
92
=
geostd8
93
=
geostd8
94
=
latin1
95
=
cp932
96
=
cp932
97
=
eucjpms
98
=
eucjpms
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/log4j.xml
0 → 100755
View file @
792ad7c5
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright 1999-2012 Alibaba Group.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration
xmlns:log4j=
"http://jakarta.apache.org/log4j/"
>
<appender
name=
"ConsoleAppender"
class=
"org.apache.log4j.ConsoleAppender"
>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d{MM-dd HH:mm:ss.SSS} %5p [%t] (%F:%L) -%m%n"
/>
</layout>
</appender>
<appender
name=
"FILE"
class=
"org.apache.log4j.RollingFileAppender"
>
<param
name=
"file"
value=
"${MYCAT_HOME}/logs/mycat.log"
/>
<param
name=
"Append"
value=
"false"
/>
<param
name=
"MaxFileSize"
value=
"1000KB"
/>
<param
name=
"MaxBackupIndex"
value=
"10"
/>
<param
name=
"encoding"
value=
"UTF-8"
/>
<layout
class=
"org.apache.log4j.PatternLayout"
>
<param
name=
"ConversionPattern"
value=
"%d{MM/dd HH:mm:ss.SSS} %5p [%t] (%F:%L) -%m%n"
/>
</layout>
</appender>
<root>
<level
value=
"debug"
/>
<appender-ref
ref=
"FILE"
/>
<!--<appender-ref ref="FILE" />-->
</root>
</log4j:configuration>
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/myid.properties
0 → 100755
View file @
792ad7c5
loadZk
=
false
zkURL
=
127.0.0.1:2181
myid
=
mycat_fz_01
piplus-backend-v5-mycat-docker/conf/partition-hash-int.txt
0 → 100755
View file @
792ad7c5
10000=0
10010=1
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/partition-range-mod.txt
0 → 100755
View file @
792ad7c5
# range start-end ,data node group size
0-200M=5
200M1-400M=1
400M1-600M=4
600M1-800M=4
800M1-1000M=6
piplus-backend-v5-mycat-docker/conf/router.xml
0 → 100755
View file @
792ad7c5
<?xml version="1.0" encoding="UTF-8"?>
<!--
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- Add by SkyKong 2012-09-01
-->
<!DOCTYPE daas:router SYSTEM "router.dtd">
<mycat:router
xmlns:mycat=
"http://org.opencloudb/"
>
<!-- schema is db name which config in schema.xml -->
<queryRouter
schema=
"dbtest"
>
<dataNode>
<name>
dnTest1
</name>
<queryNode>
dnTest1
</queryNode>
</dataNode>
</queryRouter>
</mycat:router>
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/rule.xml
0 → 100755
View file @
792ad7c5
<?xml version="1.0" encoding="UTF-8"?>
<!-- - - Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License. - You
may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0
- - Unless required by applicable law or agreed to in writing, software -
distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the
License for the specific language governing permissions and - limitations
under the License. -->
<!DOCTYPE mycat:rule SYSTEM "rule.dtd">
<mycat:rule
xmlns:mycat=
"http://org.opencloudb/"
>
<tableRule
name=
"rule1"
>
<rule>
<columns>
id
</columns>
<algorithm>
func1
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"rule2"
>
<rule>
<columns>
user_id
</columns>
<algorithm>
func1
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"sharding-by-intfile"
>
<rule>
<columns>
sharding_id
</columns>
<algorithm>
hash-int
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"auto-sharding-long"
>
<rule>
<columns>
id
</columns>
<algorithm>
rang-long
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"mod-long"
>
<rule>
<columns>
id
</columns>
<algorithm>
mod-long
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"ent-mod-long"
>
<rule>
<columns>
ent_id
</columns>
<algorithm>
mod-long
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"sharding-by-murmur"
>
<rule>
<columns>
id
</columns>
<algorithm>
murmur
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"sharding-by-month"
>
<rule>
<columns>
create_date
</columns>
<algorithm>
partbymonth
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"latest-month-calldate"
>
<rule>
<columns>
calldate
</columns>
<algorithm>
latestMonth
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"auto-sharding-rang-mod"
>
<rule>
<columns>
id
</columns>
<algorithm>
rang-mod
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"jch"
>
<rule>
<columns>
id
</columns>
<algorithm>
jump-consistent-hash
</algorithm>
</rule>
</tableRule>
<function
name=
"murmur"
class=
"org.opencloudb.route.function.PartitionByMurmurHash"
>
<property
name=
"seed"
>
0
</property>
<!-- 默认是0 -->
<property
name=
"count"
>
2
</property>
<!-- 要分片的数据库节点数量,必须指定,否则没法分片 -->
<property
name=
"virtualBucketTimes"
>
160
</property>
<!-- 一个实际的数据库节点被映射为这么多虚拟节点,默认是160倍,也就是虚拟节点数是物理节点数的160倍 -->
<!-- <property name="weightMapFile">weightMapFile</property> 节点的权重,没有指定权重的节点默认是1。以properties文件的格式填写,以从0开始到count-1的整数值也就是节点索引为key,以节点权重值为值。所有权重值必须是正整数,否则以1代替 -->
<!-- <property name="bucketMapPath">/etc/mycat/bucketMapPath</property>
用于测试时观察各物理节点与虚拟节点的分布情况,如果指定了这个属性,会把虚拟节点的murmur hash值与物理节点的映射按行输出到这个文件,没有默认值,如果不指定,就不会输出任何东西 -->
</function>
<function
name=
"hash-int"
class=
"org.opencloudb.route.function.PartitionByFileMap"
>
<property
name=
"mapFile"
>
partition-hash-int.txt
</property>
</function>
<function
name=
"rang-long"
class=
"org.opencloudb.route.function.AutoPartitionByLong"
>
<property
name=
"mapFile"
>
autopartition-long.txt
</property>
</function>
<function
name=
"mod-long"
class=
"org.opencloudb.route.function.PartitionByMod"
>
<!-- how many data nodes -->
<property
name=
"count"
>
3
</property>
</function>
<function
name=
"func1"
class=
"org.opencloudb.route.function.PartitionByLong"
>
<property
name=
"partitionCount"
>
8
</property>
<property
name=
"partitionLength"
>
128
</property>
</function>
<function
name=
"latestMonth"
class=
"org.opencloudb.route.function.LatestMonthPartion"
>
<property
name=
"splitOneDay"
>
24
</property>
</function>
<function
name=
"partbymonth"
class=
"org.opencloudb.route.function.PartitionByMonth"
>
<property
name=
"dateFormat"
>
yyyy-MM-dd
</property>
<property
name=
"sBeginDate"
>
2015-01-01
</property>
</function>
<function
name=
"rang-mod"
class=
"org.opencloudb.route.function.PartitionByRangeMod"
>
<property
name=
"mapFile"
>
partition-range-mod.txt
</property>
</function>
<function
name=
"jump-consistent-hash"
class=
"org.opencloudb.route.function.PartitionByJumpConsistentHash"
>
<property
name=
"totalBuckets"
>
3
</property>
</function>
</mycat:rule>
piplus-backend-v5-mycat-docker/conf/schema.xml
0 → 100755
View file @
792ad7c5
<?xml version="1.0"?>
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
<mycat:schema
xmlns:mycat=
"http://org.opencloudb/"
>
<schema
name=
"TESTDB"
checkSQLschema=
"true"
sqlMaxLimit=
"100"
>
<table
name=
"user"
primaryKey=
"id"
dataNode=
"dn3,dn2,dn1"
rule=
"ent-mod-long"
/>
<table
name=
"role"
primaryKey=
"id"
dataNode=
"dn3,dn2,dn1"
rule=
"ent-mod-long"
/>
<table
name=
"user_role_xref"
primaryKey=
"id"
dataNode=
"dn3,dn2,dn1"
rule=
"ent-mod-long"
/>
<!-- auto sharding by id (long) -->
<!-- <table name="travelrecord" dataNode="dn1,dn2,dn3" rule="auto-sharding-long" /> -->
<!-- global table is auto cloned to all defined data nodes ,so can join
with any table whose sharding node is in the same data node -->
<!-- <table name="company" primaryKey="ID" dataNode="dn3,dn2,dn1" rule="mod-long"/>
<table name="goods" primaryKey="ID" type="global" dataNode="dn1,dn2" /> -->
<!-- random sharding using mod sharind rule -->
<!-- <table name="hotnews" primaryKey="ID" dataNode="dn1,dn2,dn3"
rule="mod-long" /> -->
<!-- <table name="dual" primaryKey="ID" dataNode="dnx,dnoracle2" type="global"
needAddLimit="false"/> <table name="worker" primaryKey="ID" dataNode="jdbc_dn1,jdbc_dn2,jdbc_dn3"
rule="mod-long" /> -->
<!-- <table name="employee" primaryKey="ID" dataNode="dn1,dn2"
rule="sharding-by-intfile" /> -->
<!-- <table name="customer" primaryKey="ID" dataNode="dn1,dn2"
rule="sharding-by-intfile">
<childTable name="orders" primaryKey="ID" joinKey="customer_id"
parentKey="id">
<childTable name="order_items" joinKey="order_id"
parentKey="id" />
</childTable>
<childTable name="customer_addr" primaryKey="ID" joinKey="customer_id"
parentKey="id" />
</table> -->
<!-- <table name="oc_call" primaryKey="ID" dataNode="dn1$0-743" rule="latest-month-calldate"
/> -->
</schema>
<!-- <dataNode name="dn1$0-743" dataHost="localhost1" database="db$0-743"
/> -->
<dataNode
name=
"dn1"
dataHost=
"localhost1"
database=
"db1"
/>
<dataNode
name=
"dn2"
dataHost=
"localhost1"
database=
"db2"
/>
<dataNode
name=
"dn3"
dataHost=
"localhost1"
database=
"db3"
/>
<!-- <dataNode name="dn4" dataHost="localhost2" database="db4" />
<dataNode name="dn5" dataHost="localhost2" database="db5" />
<dataNode name="dn6" dataHost="localhost2" database="db6" /> -->
<!--<dataNode name="dn4" dataHost="sequoiadb1" database="SAMPLE" />
<dataNode name="jdbc_dn1" dataHost="jdbchost" database="db1" />
<dataNode name="jdbc_dn2" dataHost="jdbchost" database="db2" />
<dataNode name="jdbc_dn3" dataHost="jdbchost" database="db3" /> -->
<dataHost
name=
"localhost1"
maxCon=
"1000"
minCon=
"10"
balance=
"0"
writeType=
"0"
dbType=
"mysql"
dbDriver=
"native"
switchType=
"1"
slaveThreshold=
"100"
>
<heartbeat>
select user()
</heartbeat>
<!-- can have multi write hosts -->
<writeHost
host=
"hostM1"
url=
"127.0.0.1:4306"
user=
"root"
password=
"123456"
>
<!-- can have multi read hosts -->
<!--<readHo
st host="hostS2" url="192.168.1.200:3306" user="root" password="xxx" />-->
</writeHost>
<!--<writeHost host="hostS1" url="localhost:3316" user="root"-->
<!--password="123456" />-->
<!-- <writeHost host="hostM2" url="localhost:3316" user="root" password="123456"/> -->
</dataHost>
<!--
<dataHost name="sequoiadb1" maxCon="1000" minCon="1" balance="0" dbType="sequoiadb" dbDriver="jdbc">
<heartbeat> </heartbeat>
<writeHost host="hostM1" url="sequoiadb://1426587161.dbaas.sequoialab.net:11920/SAMPLE" user="jifeng" password="jifeng"></writeHost>
</dataHost>
<dataHost name="oracle1" maxCon="1000" minCon="1" balance="0" writeType="0" dbType="oracle" dbDriver="jdbc"> <heartbeat>select 1 from dual</heartbeat>
<connectionInitSql>alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss'</connectionInitSql>
<writeHost host="hostM1" url="jdbc:oracle:thin:@127.0.0.1:1521:nange" user="base" password="123456" > </writeHost> </dataHost>
<dataHost name="jdbchost" maxCon="1000" minCon="1" balance="0" writeType="0" dbType="mongodb" dbDriver="jdbc">
<heartbeat>select user()</heartbeat>
<writeHost host="hostM" url="mongodb://192.168.0.99/test" user="admin" password="123456" ></writeHost> </dataHost>
<dataHost name="sparksql" maxCon="1000" minCon="1" balance="0" dbType="spark" dbDriver="jdbc">
<heartbeat> </heartbeat>
<writeHost host="hostM1" url="jdbc:hive2://feng01:10000" user="jifeng" password="jifeng"></writeHost> </dataHost> -->
<!-- <dataHost name="jdbchost" maxCon="1000" minCon="10" balance="0" dbType="mysql"
dbDriver="jdbc"> <heartbeat>select user()</heartbeat> <writeHost host="hostM1"
url="jdbc:mysql://localhost:3306" user="root" password="123456"> </writeHost>
</dataHost> -->
</mycat:schema>
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/sequence_conf.properties
0 → 100755
View file @
792ad7c5
#default global sequence
GLOBAL.HISIDS
=
GLOBAL.MINID
=
10001
GLOBAL.MAXID
=
20000
GLOBAL.CURID
=
10000
# self define sequence
COMPANY.HISIDS
=
COMPANY.MINID
=
1001
COMPANY.MAXID
=
2000
COMPANY.CURID
=
1000
CUSTOMER.HISIDS
=
CUSTOMER.MINID
=
1001
CUSTOMER.MAXID
=
2000
CUSTOMER.CURID
=
1000
ORDER.HISIDS
=
ORDER.MINID
=
1001
ORDER.MAXID
=
2000
ORDER.CURID
=
1000
HOTNEWS.HISIDS
=
HOTNEWS.MINID
=
1001
HOTNEWS.MAXID
=
2000
HOTNEWS.CURID
=
1000
piplus-backend-v5-mycat-docker/conf/sequence_db_conf.properties
0 → 100755
View file @
792ad7c5
#sequence stored in datanode
GLOBAL
=
dn1
COMPANY
=
dn1
CUSTOMER
=
dn1
ORDERS
=
dn1
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/sequence_time_conf.properties
0 → 100755
View file @
792ad7c5
#sequence depend on TIME
WORKID
=
01
DATAACENTERID
=
01
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/server.xml
0 → 100755
View file @
792ad7c5
<?xml version="1.0" encoding="UTF-8"?>
<!-- - - Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License. - You
may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0
- - Unless required by applicable law or agreed to in writing, software -
distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the
License for the specific language governing permissions and - limitations
under the License. -->
<!DOCTYPE mycat:server SYSTEM "server.dtd">
<mycat:server
xmlns:mycat=
"http://org.opencloudb/"
>
<system>
<property
name=
"defaultSqlParser"
>
druidparser
</property>
<!-- <property name="useCompression">1</property>-->
<!--1为开启mysql压缩协议-->
<!-- <property name="processorBufferChunk">40960</property> -->
<!--
<property name="processors">1</property>
<property name="processorExecutor">32</property>
-->
<!--默认是65535 64K 用于sql解析时最大文本长度 -->
<!--<property name="maxStringLiteralLength">65535</property>-->
<!--<property name="sequnceHandlerType">0</property>-->
<!--<property name="backSocketNoDelay">1</property>-->
<!--<property name="frontSocketNoDelay">1</property>-->
<!--<property name="processorExecutor">16</property>-->
<!--
<property name="mutiNodeLimitType">1</property> 0:开启小数量级(默认) ;1:开启亿级数据排序
<property name="mutiNodePatchSize">100</property> 亿级数量排序批量
<property name="processors">32</property> <property name="processorExecutor">32</property>
<property name="serverPort">8066</property> <property name="managerPort">9066</property>
<property name="idleTimeout">300000</property> <property name="bindIp">0.0.0.0</property>
<property name="frontWriteQueueSize">4096</property> <property name="processors">32</property> -->
</system>
<user
name=
"test"
>
<property
name=
"password"
>
test
</property>
<property
name=
"schemas"
>
TESTDB
</property>
</user>
<user
name=
"user"
>
<property
name=
"password"
>
user
</property>
<property
name=
"schemas"
>
TESTDB
</property>
<property
name=
"readOnly"
>
true
</property>
</user>
<!--
<quarantine>
<whitehost>
<host host="127.0.0.1" user="mycat"/>
<host host="127.0.0.2" user="mycat"/>
</whitehost>
<blacklist check="false"></blacklist>
</quarantine>
-->
</mycat:server>
\ No newline at end of file
piplus-backend-v5-mycat-docker/conf/wrapper.conf
0 → 100755
View file @
792ad7c5
#********************************************************************
# Wrapper Properties
#********************************************************************
# Java Application
wrapper
.
java
.
command
=
java
wrapper
.
working
.
dir
=..
# Java Main class. This class must implement the WrapperListener interface
# or guarantee that the WrapperManager class is initialized. Helper
# classes are provided to do this for you. See the Integration section
# of the documentation for details.
wrapper
.
java
.
mainclass
=
org
.
tanukisoftware
.
wrapper
.
WrapperSimpleApp
set
.
default
.
REPO_DIR
=
lib
set
.
APP_BASE
=.
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper
.
java
.
classpath
.
1
=
lib
/
wrapper
.
jar
wrapper
.
java
.
classpath
.
2
=
conf
wrapper
.
java
.
classpath
.
3
=%
REPO_DIR
%/*
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper
.
java
.
library
.
path
.
1
=
lib
# Java Additional Parameters
#wrapper.java.additional.1=
wrapper
.
java
.
additional
.
1
=-
DMYCAT_HOME
=.
wrapper
.
java
.
additional
.
2
=-
server
wrapper
.
java
.
additional
.
3
=-
XX
:
MaxPermSize
=
64
M
wrapper
.
java
.
additional
.
4
=-
XX
:+
AggressiveOpts
wrapper
.
java
.
additional
.
5
=-
XX
:
MaxDirectMemorySize
=
2
G
wrapper
.
java
.
additional
.
6
=-
Dcom
.
sun
.
management
.
jmxremote
wrapper
.
java
.
additional
.
7
=-
Dcom
.
sun
.
management
.
jmxremote
.
port
=
1984
wrapper
.
java
.
additional
.
8
=-
Dcom
.
sun
.
management
.
jmxremote
.
authenticate
=
false
wrapper
.
java
.
additional
.
9
=-
Dcom
.
sun
.
management
.
jmxremote
.
ssl
=
false
wrapper
.
java
.
additional
.
10
=-
Xmx4G
wrapper
.
java
.
additional
.
11
=-
Xms1G
# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3
# Maximum Java Heap Size (in MB)
#wrapper.java.maxmemory=64
# Application parameters. Add parameters as needed starting from 1
wrapper
.
app
.
parameter
.
1
=
org
.
opencloudb
.
MycatStartup
wrapper
.
app
.
parameter
.
2
=
start
#********************************************************************
# Wrapper Logging Properties
#********************************************************************
# Format of output for the console. (See docs for formats)
wrapper
.
console
.
format
=
PM
# Log Level for console output. (See docs for log levels)
wrapper
.
console
.
loglevel
=
INFO
# Log file to use for wrapper output logging.
wrapper
.
logfile
=
logs
/
wrapper
.
log
# Format of output for the log file. (See docs for formats)
wrapper
.
logfile
.
format
=
LPTM
# Log Level for log file output. (See docs for log levels)
wrapper
.
logfile
.
loglevel
=
INFO
# Maximum size that the log file will be allowed to grow to before
# the log is rolled. Size is specified in bytes. The default value
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
# 'm' (mb) suffix. For example: 10m = 10 megabytes.
wrapper
.
logfile
.
maxsize
=
0
# Maximum number of rolled log files which will be allowed before old
# files are deleted. The default value of 0 implies no limit.
wrapper
.
logfile
.
maxfiles
=
0
# Log Level for sys/event log output. (See docs for log levels)
wrapper
.
syslog
.
loglevel
=
NONE
#********************************************************************
# Wrapper Windows Properties
#********************************************************************
# Title to use when running as a console
wrapper
.
console
.
title
=
Mycat
-
server
#********************************************************************
# Wrapper Windows NT/2000/XP Service Properties
#********************************************************************
# WARNING - Do not modify any of these properties when an application
# using this configuration file has been installed as a service.
# Please uninstall the service before modifying this section. The
# service can then be reinstalled.
# Name of the service
wrapper
.
ntservice
.
name
=
mycat
# Display name of the service
wrapper
.
ntservice
.
displayname
=
Mycat
-
server
# Description of the service
wrapper
.
ntservice
.
description
=
The
project
of
Mycat
-
server
# Service dependencies. Add dependencies as needed starting from 1
wrapper
.
ntservice
.
dependency
.
1
=
# Mode in which the service is installed. AUTO_START or DEMAND_START
wrapper
.
ntservice
.
starttype
=
AUTO_START
# Allow the service to interact with the desktop.
wrapper
.
ntservice
.
interactive
=
false
wrapper
.
ping
.
timeout
=
120
configuration
.
directory
.
in
.
classpath
.
first
=
conf
piplus-backend-v5-mycat-docker/conf/zk-create.yaml
0 → 100755
View file @
792ad7c5
zkURL
:
127.0.0.1:2181
mycat-mysqlgroup
:
hostM1
:
name
:
hostM1
repType
:
'
0'
zone
:
fz
servers
:
-
hostM1
cur-write-server
:
hostM1
auto-write-switch
:
true
heartbeatSQL
:
select user()
mycat-mysqls
:
hostM1
:
name
:
hostM1
ip
:
localhost
port
:
'
3316'
user
:
root
password
:
'
123456'
hostId
:
host
zone
:
fz
mycat-cluster
:
mycat-cluster-1
:
user
:
test
:
name
:
test
password
:
test
schemas
:
-
TESTDB
user
:
name
:
user
password
:
user
schemas
:
-
TESTDB
readOnly
:
'
true'
rule
:
rule1
:
name
:
func1
functionName
:
org.opencloudb.route.function.PartitionByLong
column
:
id
partitionCount
:
'
8'
partitionLength
:
'
128'
rule2
:
name
:
func1
functionName
:
org.opencloudb.route.function.PartitionByLong
column
:
user_id
partitionCount
:
'
8'
partitionLength
:
'
128'
sharding-by-intfile
:
name
:
hash-int
functionName
:
org.opencloudb.route.function.PartitionByFileMap
column
:
sharding_id
config
:
'
10000'
:
'
0'
'
10010'
:
'
1'
auto-sharding-long
:
name
:
rang-long
functionName
:
org.opencloudb.route.function.AutoPartitionByLong
column
:
id
config
:
0-500M
:
'
0'
500M-1000M
:
'
1'
1000M-1500M
:
'
2'
mod-long
:
name
:
mod-long
functionName
:
org.opencloudb.route.function.PartitionByMod
column
:
id
count
:
'
3'
sharding-by-murmur
:
name
:
murmur
functionName
:
org.opencloudb.route.function.PartitionByMurmurHash
column
:
id
seed
:
'
0'
count
:
'
2'
virtualBucketTimes
:
'
160'
sharding-by-month
:
name
:
partbymonth
functionName
:
org.opencloudb.route.function.PartitionByMonth
column
:
create_date
dateFormat
:
yyyy-MM-dd
sBeginDate
:
'
2015-01-01'
latest-month-calldate
:
name
:
latestMonth
functionName
:
org.opencloudb.route.function.LatestMonthPartion
column
:
calldate
splitOneDay
:
'
24'
auto-sharding-rang-mod
:
name
:
rang-mod
functionName
:
org.opencloudb.route.function.PartitionByRangeMod
column
:
id
config
:
0-200M
:
'
5'
200M1-400M
:
'
1'
400M1-600M
:
'
4'
600M1-800M
:
'
4'
800M1-1000M
:
'
6'
jch
:
name
:
jump-consistent-hash
functionName
:
org.opencloudb.route.function.PartitionByJumpConsistentHash
column
:
id
totalBuckets
:
'
3'
schema
:
TESTDB
:
name
:
TESTDB
checkSQLSchema
:
true
defaultMaxLimit
:
100
user
:
name
:
user
datanode
:
dn3,dn2,dn1
ruleName
:
mod-long
primaryKey
:
id
datanode
:
dn1
:
name
:
dn1
database
:
db1
dataHost
:
localhost1
dn2
:
name
:
dn2
database
:
db2
dataHost
:
localhost1
dn3
:
name
:
dn3
database
:
db3
dataHost
:
localhost1
datahost
:
localhost1
:
name
:
localhost1
balance
:
0
maxcon
:
1000
mincon
:
10
dbtype
:
mysql
dbDriver
:
native
writeType
:
0
switchType
:
1
slaveThreshold
:
100
heartbeatSQL
:
select user()
mysqlGroup
:
hostM1
mycat-nodes
:
mycat_fz_01
:
name
:
mycat_fz_01
cluster
:
mycat-cluster-1
systemParams
:
defaultSqlParser
:
druidparser
piplus-backend-v5-mycat-docker/sources.list
0 → 100644
View file @
792ad7c5
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment