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
d3995627
Commit
d3995627
authored
Feb 21, 2017
by
focus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0ecf8688
Changes
88
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
88 changed files
with
3447 additions
and
4 deletions
+3447
-4
schema.xml
piplus-backend-v5-mycat-docker/conf-prod/schema.xml
+9
-1
orange.conf
piplus-backend-v5-orange-docker/conf-dev/orange.conf
+1
-1
orange.conf
piplus-backend-v5-orange-docker/conf-prod/orange.conf
+1
-1
orange.conf
piplus-backend-v5-orange-docker/conf-sandbox/orange.conf
+1
-1
Dockerfile
v5-mycat-migrate-docker/Dockerfile
+44
-0
README.md
v5-mycat-migrate-docker/README.md
+0
-0
auto-sharding-long.txt
v5-mycat-migrate-docker/conf-prod/auto-sharding-long.txt
+3
-0
auto-sharding-rang-mod.txt
v5-mycat-migrate-docker/conf-prod/auto-sharding-rang-mod.txt
+5
-0
autopartition-long.txt
v5-mycat-migrate-docker/conf-prod/autopartition-long.txt
+5
-0
cacheservice.properties
v5-mycat-migrate-docker/conf-prod/cacheservice.properties
+7
-0
dnindex.properties
v5-mycat-migrate-docker/conf-prod/dnindex.properties
+7
-0
ehcache.xml
v5-mycat-migrate-docker/conf-prod/ehcache.xml
+8
-0
index_to_charset.properties
...ycat-migrate-docker/conf-prod/index_to_charset.properties
+219
-0
log4j2.xml
v5-mycat-migrate-docker/conf-prod/log4j2.xml
+21
-0
migrateTables.properties
v5-mycat-migrate-docker/conf-prod/migrateTables.properties
+6
-0
myid.properties
v5-mycat-migrate-docker/conf-prod/myid.properties
+8
-0
partition-hash-int.txt
v5-mycat-migrate-docker/conf-prod/partition-hash-int.txt
+2
-0
partition-range-mod.txt
v5-mycat-migrate-docker/conf-prod/partition-range-mod.txt
+6
-0
rule.xml
v5-mycat-migrate-docker/conf-prod/rule.xml
+137
-0
schema.xml
v5-mycat-migrate-docker/conf-prod/schema.xml
+327
-0
sequence_conf.properties
v5-mycat-migrate-docker/conf-prod/sequence_conf.properties
+27
-0
sequence_db_conf.properties
...ycat-migrate-docker/conf-prod/sequence_db_conf.properties
+5
-0
sequence_distributed_conf.properties
...ate-docker/conf-prod/sequence_distributed_conf.properties
+2
-0
sequence_time_conf.properties
...at-migrate-docker/conf-prod/sequence_time_conf.properties
+3
-0
server.xml
v5-mycat-migrate-docker/conf-prod/server.xml
+141
-0
sharding-by-enum.txt
v5-mycat-migrate-docker/conf-prod/sharding-by-enum.txt
+2
-0
wrapper.conf
v5-mycat-migrate-docker/conf-prod/wrapper.conf
+113
-0
auto-sharding-long.txt
...at-migrate-docker/conf-prod/zkconf/auto-sharding-long.txt
+3
-0
auto-sharding-rang-mod.txt
...igrate-docker/conf-prod/zkconf/auto-sharding-rang-mod.txt
+5
-0
autopartition-long.txt
...at-migrate-docker/conf-prod/zkconf/autopartition-long.txt
+5
-0
cacheservice.properties
...t-migrate-docker/conf-prod/zkconf/cacheservice.properties
+7
-0
ehcache.xml
v5-mycat-migrate-docker/conf-prod/zkconf/ehcache.xml
+8
-0
index_to_charset.properties
...grate-docker/conf-prod/zkconf/index_to_charset.properties
+219
-0
partition-hash-int.txt
...at-migrate-docker/conf-prod/zkconf/partition-hash-int.txt
+2
-0
partition-range-mod.txt
...t-migrate-docker/conf-prod/zkconf/partition-range-mod.txt
+6
-0
rule.xml
v5-mycat-migrate-docker/conf-prod/zkconf/rule.xml
+120
-0
schema.xml
v5-mycat-migrate-docker/conf-prod/zkconf/schema.xml
+78
-0
sequence_conf.properties
...-migrate-docker/conf-prod/zkconf/sequence_conf.properties
+27
-0
sequence_db_conf.properties
...grate-docker/conf-prod/zkconf/sequence_db_conf.properties
+5
-0
sequence_distributed_conf-mycat_fz_01.properties
...d/zkconf/sequence_distributed_conf-mycat_fz_01.properties
+2
-0
sequence_distributed_conf.properties
...ker/conf-prod/zkconf/sequence_distributed_conf.properties
+2
-0
sequence_time_conf-mycat_fz_01.properties
...onf-prod/zkconf/sequence_time_conf-mycat_fz_01.properties
+3
-0
sequence_time_conf.properties
...ate-docker/conf-prod/zkconf/sequence_time_conf.properties
+3
-0
server-mycat_fz_01.xml
...at-migrate-docker/conf-prod/zkconf/server-mycat_fz_01.xml
+84
-0
server.xml
v5-mycat-migrate-docker/conf-prod/zkconf/server.xml
+84
-0
sharding-by-enum.txt
...ycat-migrate-docker/conf-prod/zkconf/sharding-by-enum.txt
+2
-0
auto-sharding-long.txt
...igrate-docker/conf-prod/zkdownload/auto-sharding-long.txt
+3
-0
auto-sharding-long.txt
v5-mycat-migrate-docker/conf-sandbox/auto-sharding-long.txt
+3
-0
auto-sharding-rang-mod.txt
...at-migrate-docker/conf-sandbox/auto-sharding-rang-mod.txt
+5
-0
autopartition-long.txt
v5-mycat-migrate-docker/conf-sandbox/autopartition-long.txt
+5
-0
cacheservice.properties
v5-mycat-migrate-docker/conf-sandbox/cacheservice.properties
+7
-0
dnindex.properties
v5-mycat-migrate-docker/conf-sandbox/dnindex.properties
+7
-0
ehcache.xml
v5-mycat-migrate-docker/conf-sandbox/ehcache.xml
+8
-0
index_to_charset.properties
...t-migrate-docker/conf-sandbox/index_to_charset.properties
+219
-0
log4j2.xml
v5-mycat-migrate-docker/conf-sandbox/log4j2.xml
+32
-0
migrateTables.properties
...ycat-migrate-docker/conf-sandbox/migrateTables.properties
+6
-0
myid.properties
v5-mycat-migrate-docker/conf-sandbox/myid.properties
+8
-0
partition-hash-int.txt
v5-mycat-migrate-docker/conf-sandbox/partition-hash-int.txt
+2
-0
partition-range-mod.txt
v5-mycat-migrate-docker/conf-sandbox/partition-range-mod.txt
+6
-0
rule.xml
v5-mycat-migrate-docker/conf-sandbox/rule.xml
+137
-0
schema.xml
v5-mycat-migrate-docker/conf-sandbox/schema.xml
+271
-0
sequence_conf.properties
...ycat-migrate-docker/conf-sandbox/sequence_conf.properties
+27
-0
sequence_db_conf.properties
...t-migrate-docker/conf-sandbox/sequence_db_conf.properties
+5
-0
sequence_distributed_conf.properties
...-docker/conf-sandbox/sequence_distributed_conf.properties
+2
-0
sequence_time_conf.properties
...migrate-docker/conf-sandbox/sequence_time_conf.properties
+3
-0
server.xml
v5-mycat-migrate-docker/conf-sandbox/server.xml
+133
-0
sharding-by-enum.txt
v5-mycat-migrate-docker/conf-sandbox/sharding-by-enum.txt
+2
-0
wrapper.conf
v5-mycat-migrate-docker/conf-sandbox/wrapper.conf
+113
-0
auto-sharding-long.txt
...migrate-docker/conf-sandbox/zkconf/auto-sharding-long.txt
+3
-0
auto-sharding-rang-mod.txt
...ate-docker/conf-sandbox/zkconf/auto-sharding-rang-mod.txt
+5
-0
autopartition-long.txt
...migrate-docker/conf-sandbox/zkconf/autopartition-long.txt
+5
-0
cacheservice.properties
...igrate-docker/conf-sandbox/zkconf/cacheservice.properties
+7
-0
ehcache.xml
v5-mycat-migrate-docker/conf-sandbox/zkconf/ehcache.xml
+8
-0
index_to_charset.properties
...te-docker/conf-sandbox/zkconf/index_to_charset.properties
+219
-0
partition-hash-int.txt
...migrate-docker/conf-sandbox/zkconf/partition-hash-int.txt
+2
-0
partition-range-mod.txt
...igrate-docker/conf-sandbox/zkconf/partition-range-mod.txt
+6
-0
rule.xml
v5-mycat-migrate-docker/conf-sandbox/zkconf/rule.xml
+120
-0
schema.xml
v5-mycat-migrate-docker/conf-sandbox/zkconf/schema.xml
+78
-0
sequence_conf.properties
...grate-docker/conf-sandbox/zkconf/sequence_conf.properties
+27
-0
sequence_db_conf.properties
...te-docker/conf-sandbox/zkconf/sequence_db_conf.properties
+5
-0
sequence_distributed_conf-mycat_fz_01.properties
...x/zkconf/sequence_distributed_conf-mycat_fz_01.properties
+2
-0
sequence_distributed_conf.properties
.../conf-sandbox/zkconf/sequence_distributed_conf.properties
+2
-0
sequence_time_conf-mycat_fz_01.properties
...-sandbox/zkconf/sequence_time_conf-mycat_fz_01.properties
+3
-0
sequence_time_conf.properties
...-docker/conf-sandbox/zkconf/sequence_time_conf.properties
+3
-0
server-mycat_fz_01.xml
...migrate-docker/conf-sandbox/zkconf/server-mycat_fz_01.xml
+84
-0
server.xml
v5-mycat-migrate-docker/conf-sandbox/zkconf/server.xml
+84
-0
sharding-by-enum.txt
...t-migrate-docker/conf-sandbox/zkconf/sharding-by-enum.txt
+2
-0
auto-sharding-long.txt
...ate-docker/conf-sandbox/zkdownload/auto-sharding-long.txt
+3
-0
No files found.
piplus-backend-v5-mycat-docker/conf-prod/schema.xml
View file @
d3995627
...
...
@@ -287,31 +287,39 @@
</dataHost> -->
<!-- 读写分离节点1 -->
<dataHost
name=
"rds1"
maxCon=
"1000"
minCon=
"20"
balance=
"3"
writeType=
"0"
dbType=
"mysql"
dbDriver=
"native"
switchType=
"1"
slaveThreshold=
"100"
>
<heartbeat>
select user()
</heartbeat>
<writeHost
host=
"rds1-master"
url=
"rds1.prod.internal.terran.vip:3306"
user=
"terran_admin"
password=
"Terran123456"
>
<readHost
host=
"rds1-read1"
url=
"read1.rds1.prod.internal.terran.vip:3306"
user=
"terran_admin"
password=
"Terran123456"
/>
</writeHost>
</dataHost>
<!-- 读写分离节点2 -->
<dataHost
name=
"rds2"
maxCon=
"1000"
minCon=
"20"
balance=
"3"
writeType=
"0"
dbType=
"mysql"
dbDriver=
"native"
switchType=
"1"
slaveThreshold=
"100"
>
<heartbeat>
select user()
</heartbeat>
<writeHost
host=
"rds2-master"
url=
"rds2.prod.internal.terran.vip:3306"
user=
"terran_admin"
password=
"Terran123456"
>
<readHost
host=
"rds1-read1"
url=
"read1.rds2.internal.prod.terran.vip:3306"
user=
"terran_admin"
password=
"Terran123456"
/>
</writeHost>
</dataHost>
<!-- 读写混合节点1 -->
<dataHost
name=
"rds3"
maxCon=
"1000"
minCon=
"20"
balance=
"0"
writeType=
"0"
dbType=
"mysql"
dbDriver=
"native"
switchType=
"1"
slaveThreshold=
"100"
>
<heartbeat>
select user()
</heartbeat>
<writeHost
host=
"rds1-allinone-master"
url=
"rds1.prod.internal.terran.vip:3306"
user=
"terran_admin"
password=
"Terran123456"
>
<readHost
host=
"rds1-allinone-read1"
url=
"rds1.prod.internal.terran.vip:3306"
user=
"terran_admin"
password=
"Terran123456"
/>
</writeHost>
</dataHost>
<!-- 读写混合节点2 -->
<dataHost
name=
"rds4"
maxCon=
"1000"
minCon=
"20"
balance=
"0"
writeType=
"0"
dbType=
"mysql"
dbDriver=
"native"
switchType=
"1"
slaveThreshold=
"100"
>
<heartbeat>
select user()
</heartbeat>
<writeHost
host=
"rds2-allinone-master"
url=
"rds2.prod.internal.terran.vip:3306"
user=
"terran_admin"
password=
"Terran123456"
>
<readHost
host=
"rds1-allinone-read2"
url=
"rds2.prod.internal.terran.vip:3306"
user=
"terran_admin"
password=
"Terran123456"
/>
</writeHost>
</dataHost>
...
...
piplus-backend-v5-orange-docker/conf-dev/orange.conf
View file @
d3995627
...
...
@@ -31,7 +31,7 @@
"dashboard"
: {
"auth"
:
true
,
"session_secret"
:
"y0ji4pdj61aaf3f11c2e65cd2263d3e7e5"
,
"session_timeout"
:
3600
,
"session_timeout"
:
3600
00
,
"whitelist"
: [
"^/auth/login$"
,
"^/error/$"
...
...
piplus-backend-v5-orange-docker/conf-prod/orange.conf
View file @
d3995627
...
...
@@ -31,7 +31,7 @@
"dashboard"
: {
"auth"
:
true
,
"session_secret"
:
"y0ji4pdj61aaf3f11c2e65cd2263d3e7e5"
,
"session_timeout"
:
3600
,
"session_timeout"
:
3600
00
,
"whitelist"
: [
"^/auth/login$"
,
"^/error/$"
...
...
piplus-backend-v5-orange-docker/conf-sandbox/orange.conf
View file @
d3995627
...
...
@@ -31,7 +31,7 @@
"dashboard"
: {
"auth"
:
true
,
"session_secret"
:
"y0ji4pdj61aaf3f11c2e65cd2263d3e7e5"
,
"session_timeout"
:
3600
,
"session_timeout"
:
3600
00
,
"whitelist"
: [
"^/auth/login$"
,
"^/error/$"
...
...
v5-mycat-migrate-docker/Dockerfile
0 → 100644
View file @
d3995627
# piplus v5 Mycat Dockerfile
FROM
java:8
MAINTAINER
focus <focus@hudongpai.com>
ENV
MYCAT_VERSION 1.6-RELEASE
ENV
OSS http://pisns-oss-dev.oss-cn-hangzhou.aliyuncs.com/terran-devops/lib
ENV
RUN_ENV sandbox
# install mysql clinet
RUN
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
mysql-client
# install myCat.
RUN
\
cd
/opt
&&
\
wget http://
$OSS
/Mycat-server-
$MYCAT_VERSION
-linux
.tar.gz
&&
\
mkdir
/opt/mycat
&&
\
tar
zxvf Mycat-server-
$MYCAT_VERSION
-linux
.tar.gz
-C
/opt
&&
\
rm
-rf
/opt/mycat/conf
# Define mountable directories.
# VOLUME ["/opt/mycat/conf"]
# Add src
ADD
conf-sandbox /opt/mycat/conf-sandbox
ADD
conf-prod /opt/mycat/conf-prod
#touch startup.sh
RUN
touch
startup.sh
\
&&
echo
'#!/bin/bash'
>>
startup.sh
\
&&
echo
'rm -rf /opt/mycat/conf'
>>
startup.sh
\
&&
echo
'cp -a /opt/mycat/conf-$RUN_ENV /opt/mycat/conf'
>>
startup.sh
\
&&
echo
'./opt/mycat/bin/mycat console'
>>
startup.sh
\
&&
chmod
+x startup.sh
# Expose ports.
EXPOSE
8066
# Define default command.
CMD
["./startup.sh"]
v5-mycat-migrate-docker/README.md
0 → 100644
View file @
d3995627
v5-mycat-migrate-docker/conf-prod/auto-sharding-long.txt
0 → 100644
View file @
d3995627
2000001-4000000=1
0-2000000=0
4000001-8000000=2
v5-mycat-migrate-docker/conf-prod/auto-sharding-rang-mod.txt
0 → 100644
View file @
d3995627
800M1-1000M=6
600M1-800M=4
200M1-400M=1
0-200M=5
400M1-600M=4
v5-mycat-migrate-docker/conf-prod/autopartition-long.txt
0 → 100644
View file @
d3995627
# 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
v5-mycat-migrate-docker/conf-prod/cacheservice.properties
0 → 100644
View file @
d3995627
#used for mycat cache service conf
factory.encache
=
io.mycat.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
v5-mycat-migrate-docker/conf-prod/dnindex.properties
0 → 100644
View file @
d3995627
#update
#Sun Oct 30 23:13:50 CST 2016
rds1-allinone
=
0
rds4
=
0
rds3
=
0
rds2
=
0
rds1
=
0
v5-mycat-migrate-docker/conf-prod/ehcache.xml
0 → 100644
View file @
d3995627
<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
v5-mycat-migrate-docker/conf-prod/index_to_charset.properties
0 → 100644
View file @
d3995627
1
=
big5
2
=
latin2
3
=
dec8
4
=
cp850
5
=
latin1
6
=
hp8
7
=
koi8r
8
=
latin1
9
=
latin2
10
=
swe7
11
=
ascii
12
=
ujis
13
=
sjis
14
=
cp1251
15
=
latin1
16
=
hebrew
18
=
tis620
19
=
euckr
20
=
latin7
21
=
latin2
22
=
koi8u
23
=
cp1251
24
=
gb2312
25
=
greek
26
=
cp1250
27
=
latin2
28
=
gbk
29
=
cp1257
30
=
latin5
31
=
latin1
32
=
armscii8
33
=
utf8
34
=
cp1250
35
=
ucs2
36
=
cp866
37
=
keybcs2
38
=
macce
39
=
macroman
40
=
cp852
41
=
latin7
42
=
latin7
43
=
macce
44
=
cp1250
45
=
utf8mb4
46
=
utf8mb4
47
=
latin1
48
=
latin1
49
=
latin1
50
=
cp1251
51
=
cp1251
52
=
cp1251
53
=
macroman
54
=
utf16
55
=
utf16
56
=
utf16le
57
=
cp1256
58
=
cp1257
59
=
cp1257
60
=
utf32
61
=
utf32
62
=
utf16le
63
=
binary
64
=
armscii8
65
=
ascii
66
=
cp1250
67
=
cp1256
68
=
cp866
69
=
dec8
70
=
greek
71
=
hebrew
72
=
hp8
73
=
keybcs2
74
=
koi8r
75
=
koi8u
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
99
=
cp1250
101
=
utf16
102
=
utf16
103
=
utf16
104
=
utf16
105
=
utf16
106
=
utf16
107
=
utf16
108
=
utf16
109
=
utf16
110
=
utf16
111
=
utf16
112
=
utf16
113
=
utf16
114
=
utf16
115
=
utf16
116
=
utf16
117
=
utf16
118
=
utf16
119
=
utf16
120
=
utf16
121
=
utf16
122
=
utf16
123
=
utf16
124
=
utf16
128
=
ucs2
129
=
ucs2
130
=
ucs2
131
=
ucs2
132
=
ucs2
133
=
ucs2
134
=
ucs2
135
=
ucs2
136
=
ucs2
137
=
ucs2
138
=
ucs2
139
=
ucs2
140
=
ucs2
141
=
ucs2
142
=
ucs2
143
=
ucs2
144
=
ucs2
145
=
ucs2
146
=
ucs2
147
=
ucs2
148
=
ucs2
149
=
ucs2
150
=
ucs2
151
=
ucs2
159
=
ucs2
160
=
utf32
161
=
utf32
162
=
utf32
163
=
utf32
164
=
utf32
165
=
utf32
166
=
utf32
167
=
utf32
168
=
utf32
169
=
utf32
170
=
utf32
171
=
utf32
172
=
utf32
173
=
utf32
174
=
utf32
175
=
utf32
176
=
utf32
177
=
utf32
178
=
utf32
179
=
utf32
180
=
utf32
181
=
utf32
182
=
utf32
183
=
utf32
192
=
utf8
193
=
utf8
194
=
utf8
195
=
utf8
196
=
utf8
197
=
utf8
198
=
utf8
199
=
utf8
200
=
utf8
201
=
utf8
202
=
utf8
203
=
utf8
204
=
utf8
205
=
utf8
206
=
utf8
207
=
utf8
208
=
utf8
209
=
utf8
210
=
utf8
211
=
utf8
212
=
utf8
213
=
utf8
214
=
utf8
215
=
utf8
223
=
utf8
224
=
utf8mb4
225
=
utf8mb4
226
=
utf8mb4
227
=
utf8mb4
228
=
utf8mb4
229
=
utf8mb4
230
=
utf8mb4
231
=
utf8mb4
232
=
utf8mb4
233
=
utf8mb4
234
=
utf8mb4
235
=
utf8mb4
236
=
utf8mb4
237
=
utf8mb4
238
=
utf8mb4
239
=
utf8mb4
240
=
utf8mb4
241
=
utf8mb4
242
=
utf8mb4
243
=
utf8mb4
244
=
utf8mb4
245
=
utf8mb4
246
=
utf8mb4
247
=
utf8mb4
\ No newline at end of file
v5-mycat-migrate-docker/conf-prod/log4j2.xml
0 → 100644
View file @
d3995627
<?xml version="1.0" encoding="UTF-8"?>
<Configuration
status=
"WARN"
>
<Properties>
<Property
name=
"PATTERN"
>
%d{yyyy-MM-dd HH:mm:ss.SSS} %5p [%t] (%l) - %m%n
</Property>
</Properties>
<Appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"%d [%-5p][%t] %m %throwable{full} (%C:%F:%L) %n"
/>
</Console>
<Socket
name=
"Logstash"
host=
"v5-prod-logstash"
port=
"4560"
protocol=
"TCP"
>
<PatternLayout
pattern=
"${PATTERN}"
/>
</Socket>
</Appenders>
<Loggers>
<asyncRoot
level=
"info"
includeLocation=
"true"
>
<AppenderRef
ref=
"Console"
/>
<!-- <AppenderRef ref="RollingFile"/> -->
<AppenderRef
ref=
"Logstash"
/>
</asyncRoot>
</Loggers>
</Configuration>
v5-mycat-migrate-docker/conf-prod/migrateTables.properties
0 → 100644
View file @
d3995627
#schema1=tb1,tb2,...
#schema2=all(写all或者不写将对此schema下拆分节点变化的拆分表全部进行重新路由)
#...
#sample
#
TESTDB
=
travelrecord,company,goods
\ No newline at end of file
v5-mycat-migrate-docker/conf-prod/myid.properties
0 → 100644
View file @
d3995627
loadZk
=
false
zkURL
=
127.0.0.1:2181
clusterId
=
mycat-cluster-1
myid
=
mycat_fz_01
clusterNodes
=
mycat_fz_01,mycat_fz_02,mycat_fz_04
#server booster ; booster install on db same server,will reset all minCon to 1
type
=
server
boosterDataHosts
=
dn2,dn3
v5-mycat-migrate-docker/conf-prod/partition-hash-int.txt
0 → 100644
View file @
d3995627
10000=0
10010=1
\ No newline at end of file
v5-mycat-migrate-docker/conf-prod/partition-range-mod.txt
0 → 100644
View file @
d3995627
# range start-end ,data node group size
0-200M=5
200M1-400M=1
400M1-600M=4
600M1-800M=4
800M1-1000M=6
v5-mycat-migrate-docker/conf-prod/rule.xml
0 → 100644
View file @
d3995627
<?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://io.mycat/"
>
<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=
"mod-ent-id"
>
<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=
"crc32slot"
>
<rule>
<columns>
id
</columns>
<algorithm>
crc32slot
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"sharding-by-month"
>
<rule>
<columns>
create_time
</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=
"io.mycat.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=
"crc32slot"
class=
"io.mycat.route.function.PartitionByCRC32PreSlot"
>
<property
name=
"count"
>
2
</property>
<!-- 要分片的数据库节点数量,必须指定,否则没法分片 -->
</function>
<function
name=
"hash-int"
class=
"io.mycat.route.function.PartitionByFileMap"
>
<property
name=
"mapFile"
>
partition-hash-int.txt
</property>
</function>
<function
name=
"rang-long"
class=
"io.mycat.route.function.AutoPartitionByLong"
>
<property
name=
"mapFile"
>
autopartition-long.txt
</property>
</function>
<function
name=
"mod-long"
class=
"io.mycat.route.function.PartitionByMod"
>
<!-- how many data nodes -->
<property
name=
"count"
>
8
</property>
</function>
<function
name=
"func1"
class=
"io.mycat.route.function.PartitionByLong"
>
<property
name=
"partitionCount"
>
8
</property>
<property
name=
"partitionLength"
>
128
</property>
</function>
<function
name=
"latestMonth"
class=
"io.mycat.route.function.LatestMonthPartion"
>
<property
name=
"splitOneDay"
>
24
</property>
</function>
<function
name=
"partbymonth"
class=
"io.mycat.route.function.PartitionByMonth"
>
<property
name=
"dateFormat"
>
yyyy-MM-dd
</property>
<property
name=
"sBeginDate"
>
2015-01-01
</property>
</function>
<function
name=
"rang-mod"
class=
"io.mycat.route.function.PartitionByRangeMod"
>
<property
name=
"mapFile"
>
partition-range-mod.txt
</property>
</function>
<function
name=
"jump-consistent-hash"
class=
"io.mycat.route.function.PartitionByJumpConsistentHash"
>
<property
name=
"totalBuckets"
>
3
</property>
</function>
</mycat:rule>
v5-mycat-migrate-docker/conf-prod/schema.xml
0 → 100644
View file @
d3995627
This diff is collapsed.
Click to expand it.
v5-mycat-migrate-docker/conf-prod/sequence_conf.properties
0 → 100644
View file @
d3995627
#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
v5-mycat-migrate-docker/conf-prod/sequence_db_conf.properties
0 → 100644
View file @
d3995627
#sequence stored in datanode
GLOBAL
=
dn1
COMPANY
=
dn1
CUSTOMER
=
dn1
ORDERS
=
dn1
\ No newline at end of file
v5-mycat-migrate-docker/conf-prod/sequence_distributed_conf.properties
0 → 100644
View file @
d3995627
INSTANCEID
=
01
CLUSTERID
=
01
v5-mycat-migrate-docker/conf-prod/sequence_time_conf.properties
0 → 100644
View file @
d3995627
#sequence depend on TIME
WORKID
=
01
DATAACENTERID
=
01
\ No newline at end of file
v5-mycat-migrate-docker/conf-prod/server.xml
0 → 100644
View file @
d3995627
<?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://io.mycat/"
>
<system>
<property
name=
"useSqlStat"
>
0
</property>
<!-- 1为开启实时统计、0为关闭 -->
<property
name=
"useGlobleTableCheck"
>
0
</property>
<!-- 1为开启全加班一致性检测、0为关闭 -->
<property
name=
"sequnceHandlerType"
>
2
</property>
<!-- <property name="useCompression">1</property>-->
<!--1为开启mysql压缩协议-->
<!-- <property name="fakeMySQLVersion">5.6.20</property>-->
<!--设置模拟的MySQL版本号-->
<!-- <property name="processorBufferChunk">40960</property> -->
<!--
<property name="processors">1</property>
<property name="processorExecutor">32</property>
-->
<!--默认为type 0: DirectByteBufferPool | type 1 ByteBufferArena-->
<property
name=
"processorBufferPoolType"
>
0
</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="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> -->
<!--分布式事务开关,0为不过滤分布式事务,1为过滤分布式事务(如果分布式事务内只涉及全局表,则不过滤),2为不过滤分布式事务,但是记录分布式事务日志-->
<property
name=
"handleDistributedTransactions"
>
0
</property>
<!--
off heap for merge/order/group/limit 1开启 0关闭
-->
<property
name=
"useOffHeapForMerge"
>
1
</property>
<!--
单位为m
-->
<property
name=
"memoryPageSize"
>
1m
</property>
<!--
单位为k
-->
<property
name=
"spillsFileBufferSize"
>
1k
</property>
<property
name=
"useStreamOutput"
>
0
</property>
<!--
单位为m
-->
<property
name=
"systemReserveMemorySize"
>
384m
</property>
<!--是否采用zookeeper协调切换 -->
<property
name=
"useZKSwitch"
>
false
</property>
</system>
<!-- 全局SQL防火墙设置 -->
<!--
<firewall>
<whitehost>
<host host="127.0.0.1" user="mycat"/>
<host host="127.0.0.2" user="mycat"/>
</whitehost>
<blacklist check="false">
</blacklist>
</firewall>
-->
<user
name=
"user_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
user_service
</property>
</user>
<user
name=
"forum_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
forum_service
</property>
</user>
<user
name=
"points_mall_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
points_mall_service
</property>
</user>
<user
name=
"ecom_base_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
ecom_base_service
</property>
</user>
<user
name=
"ecom_order_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
ecom_order_service
</property>
</user>
<user
name=
"auth_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
auth_service
</property>
</user>
<user
name=
"plat_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
plat_service
</property>
</user>
<user
name=
"sys_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
sys_service
</property>
</user>
<user
name=
"stat_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
stat_service
</property>
</user>
<user
name=
"schedule_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
schedule_service
</property>
</user>
<user
name=
"promotion_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
promotion_service
</property>
</user>
<user
name=
"h5_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
h5_service
</property>
</user>
<user
name=
"sequence_service_1"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
sequence_service_1
</property>
</user>
<user
name=
"sequence_service_2"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
sequence_service_2
</property>
</user>
<user
name=
"terran"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
stat_service,schedule_service,sequence_service_1,sequence_service_2,auth_service,plat_service,sys_service,user_service,forum_service,points_mall_service,ecom_base_service,ecom_order_service,promotion_service,h5_service
</property>
</user>
</mycat:server>
v5-mycat-migrate-docker/conf-prod/sharding-by-enum.txt
0 → 100644
View file @
d3995627
10000=0
10010=1
v5-mycat-migrate-docker/conf-prod/wrapper.conf
0 → 100644
View file @
d3995627
#********************************************************************
# 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
=
512
# Maximum Java Heap Size (in MB)
wrapper
.
java
.
maxmemory
=
2048
# Application parameters. Add parameters as needed starting from 1
wrapper
.
app
.
parameter
.
1
=
io
.
mycat
.
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
v5-mycat-migrate-docker/conf-prod/zkconf/auto-sharding-long.txt
0 → 100644
View file @
d3995627
2000001-4000000=1
0-2000000=0
4000001-8000000=2
v5-mycat-migrate-docker/conf-prod/zkconf/auto-sharding-rang-mod.txt
0 → 100644
View file @
d3995627
800M1-1000M=6
600M1-800M=4
200M1-400M=1
0-200M=5
400M1-600M=4
v5-mycat-migrate-docker/conf-prod/zkconf/autopartition-long.txt
0 → 100644
View file @
d3995627
# 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
v5-mycat-migrate-docker/conf-prod/zkconf/cacheservice.properties
0 → 100644
View file @
d3995627
#used for mycat cache service conf
factory.encache
=
io.mycat.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
v5-mycat-migrate-docker/conf-prod/zkconf/ehcache.xml
0 → 100644
View file @
d3995627
<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
v5-mycat-migrate-docker/conf-prod/zkconf/index_to_charset.properties
0 → 100644
View file @
d3995627
1
=
big5
2
=
latin2
3
=
dec8
4
=
cp850
5
=
latin1
6
=
hp8
7
=
koi8r
8
=
latin1
9
=
latin2
10
=
swe7
11
=
ascii
12
=
ujis
13
=
sjis
14
=
cp1251
15
=
latin1
16
=
hebrew
18
=
tis620
19
=
euckr
20
=
latin7
21
=
latin2
22
=
koi8u
23
=
cp1251
24
=
gb2312
25
=
greek
26
=
cp1250
27
=
latin2
28
=
gbk
29
=
cp1257
30
=
latin5
31
=
latin1
32
=
armscii8
33
=
utf8
34
=
cp1250
35
=
ucs2
36
=
cp866
37
=
keybcs2
38
=
macce
39
=
macroman
40
=
cp852
41
=
latin7
42
=
latin7
43
=
macce
44
=
cp1250
45
=
utf8mb4
46
=
utf8mb4
47
=
latin1
48
=
latin1
49
=
latin1
50
=
cp1251
51
=
cp1251
52
=
cp1251
53
=
macroman
54
=
utf16
55
=
utf16
56
=
utf16le
57
=
cp1256
58
=
cp1257
59
=
cp1257
60
=
utf32
61
=
utf32
62
=
utf16le
63
=
binary
64
=
armscii8
65
=
ascii
66
=
cp1250
67
=
cp1256
68
=
cp866
69
=
dec8
70
=
greek
71
=
hebrew
72
=
hp8
73
=
keybcs2
74
=
koi8r
75
=
koi8u
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
99
=
cp1250
101
=
utf16
102
=
utf16
103
=
utf16
104
=
utf16
105
=
utf16
106
=
utf16
107
=
utf16
108
=
utf16
109
=
utf16
110
=
utf16
111
=
utf16
112
=
utf16
113
=
utf16
114
=
utf16
115
=
utf16
116
=
utf16
117
=
utf16
118
=
utf16
119
=
utf16
120
=
utf16
121
=
utf16
122
=
utf16
123
=
utf16
124
=
utf16
128
=
ucs2
129
=
ucs2
130
=
ucs2
131
=
ucs2
132
=
ucs2
133
=
ucs2
134
=
ucs2
135
=
ucs2
136
=
ucs2
137
=
ucs2
138
=
ucs2
139
=
ucs2
140
=
ucs2
141
=
ucs2
142
=
ucs2
143
=
ucs2
144
=
ucs2
145
=
ucs2
146
=
ucs2
147
=
ucs2
148
=
ucs2
149
=
ucs2
150
=
ucs2
151
=
ucs2
159
=
ucs2
160
=
utf32
161
=
utf32
162
=
utf32
163
=
utf32
164
=
utf32
165
=
utf32
166
=
utf32
167
=
utf32
168
=
utf32
169
=
utf32
170
=
utf32
171
=
utf32
172
=
utf32
173
=
utf32
174
=
utf32
175
=
utf32
176
=
utf32
177
=
utf32
178
=
utf32
179
=
utf32
180
=
utf32
181
=
utf32
182
=
utf32
183
=
utf32
192
=
utf8
193
=
utf8
194
=
utf8
195
=
utf8
196
=
utf8
197
=
utf8
198
=
utf8
199
=
utf8
200
=
utf8
201
=
utf8
202
=
utf8
203
=
utf8
204
=
utf8
205
=
utf8
206
=
utf8
207
=
utf8
208
=
utf8
209
=
utf8
210
=
utf8
211
=
utf8
212
=
utf8
213
=
utf8
214
=
utf8
215
=
utf8
223
=
utf8
224
=
utf8mb4
225
=
utf8mb4
226
=
utf8mb4
227
=
utf8mb4
228
=
utf8mb4
229
=
utf8mb4
230
=
utf8mb4
231
=
utf8mb4
232
=
utf8mb4
233
=
utf8mb4
234
=
utf8mb4
235
=
utf8mb4
236
=
utf8mb4
237
=
utf8mb4
238
=
utf8mb4
239
=
utf8mb4
240
=
utf8mb4
241
=
utf8mb4
242
=
utf8mb4
243
=
utf8mb4
244
=
utf8mb4
245
=
utf8mb4
246
=
utf8mb4
247
=
utf8mb4
\ No newline at end of file
v5-mycat-migrate-docker/conf-prod/zkconf/partition-hash-int.txt
0 → 100644
View file @
d3995627
10000=0
10010=1
\ No newline at end of file
v5-mycat-migrate-docker/conf-prod/zkconf/partition-range-mod.txt
0 → 100644
View file @
d3995627
# range start-end ,data node group size
0-200M=5
200M1-400M=1
400M1-600M=4
600M1-800M=4
800M1-1000M=6
v5-mycat-migrate-docker/conf-prod/zkconf/rule.xml
0 → 100644
View file @
d3995627
<?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://io.mycat/"
>
<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=
"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=
"io.mycat.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=
"io.mycat.route.function.PartitionByFileMap"
>
<property
name=
"mapFile"
>
partition-hash-int.txt
</property>
</function>
<function
name=
"rang-long"
class=
"io.mycat.route.function.AutoPartitionByLong"
>
<property
name=
"mapFile"
>
autopartition-long.txt
</property>
</function>
<function
name=
"mod-long"
class=
"io.mycat.route.function.PartitionByMod"
>
<!-- how many data nodes -->
<property
name=
"count"
>
3
</property>
</function>
<function
name=
"func1"
class=
"io.mycat.route.function.PartitionByLong"
>
<property
name=
"partitionCount"
>
8
</property>
<property
name=
"partitionLength"
>
128
</property>
</function>
<function
name=
"latestMonth"
class=
"io.mycat.route.function.LatestMonthPartion"
>
<property
name=
"splitOneDay"
>
24
</property>
</function>
<function
name=
"partbymonth"
class=
"io.mycat.route.function.PartitionByMonth"
>
<property
name=
"dateFormat"
>
yyyy-MM-dd
</property>
<property
name=
"sBeginDate"
>
2015-01-01
</property>
</function>
<function
name=
"rang-mod"
class=
"io.mycat.route.function.PartitionByRangeMod"
>
<property
name=
"mapFile"
>
partition-range-mod.txt
</property>
</function>
<function
name=
"jump-consistent-hash"
class=
"io.mycat.route.function.PartitionByJumpConsistentHash"
>
<property
name=
"totalBuckets"
>
3
</property>
</function>
</mycat:rule>
v5-mycat-migrate-docker/conf-prod/zkconf/schema.xml
0 → 100644
View file @
d3995627
<?xml version="1.0"?>
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
<mycat:schema
xmlns:mycat=
"http://io.mycat/"
>
<schema
name=
"TESTDB"
checkSQLschema=
"false"
sqlMaxLimit=
"100"
>
<!-- 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"
type=
"global"
dataNode=
"dn1,dn2,dn3"
/>
<table
name=
"goods"
primaryKey=
"ID"
type=
"global"
dataNode=
"dn1,dn2"
/>
<!-- random sharding using mod sharind rule -->
<table
name=
"hotnews"
primaryKey=
"ID"
autoIncrement=
"true"
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="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=
"localhost:3306"
user=
"root"
password=
"123456"
>
<!-- can have multi read hosts -->
<readHost
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
v5-mycat-migrate-docker/conf-prod/zkconf/sequence_conf.properties
0 → 100644
View file @
d3995627
#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
v5-mycat-migrate-docker/conf-prod/zkconf/sequence_db_conf.properties
0 → 100644
View file @
d3995627
#sequence stored in datanode
GLOBAL
=
dn1
COMPANY
=
dn1
CUSTOMER
=
dn1
ORDERS
=
dn1
\ No newline at end of file
v5-mycat-migrate-docker/conf-prod/zkconf/sequence_distributed_conf-mycat_fz_01.properties
0 → 100644
View file @
d3995627
INSTANCEID
=
02
CLUSTERID
=
02
v5-mycat-migrate-docker/conf-prod/zkconf/sequence_distributed_conf.properties
0 → 100644
View file @
d3995627
INSTANCEID
=
01
CLUSTERID
=
01
v5-mycat-migrate-docker/conf-prod/zkconf/sequence_time_conf-mycat_fz_01.properties
0 → 100644
View file @
d3995627
#sequence depend on TIME
WORKID
=
03
DATAACENTERID
=
03
\ No newline at end of file
v5-mycat-migrate-docker/conf-prod/zkconf/sequence_time_conf.properties
0 → 100644
View file @
d3995627
#sequence depend on TIME
WORKID
=
01
DATAACENTERID
=
01
\ No newline at end of file
v5-mycat-migrate-docker/conf-prod/zkconf/server-mycat_fz_01.xml
0 → 100644
View file @
d3995627
<?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://io.mycat/"
>
<system>
<property
name=
"useSqlStat"
>
1
</property>
<!-- 1为开启实时统计、0为关闭 -->
<property
name=
"useGlobleTableCheck"
>
0
</property>
<!-- 1为开启全加班一致性检测、0为关闭 -->
<property
name=
"defaultSqlParser"
>
druidparser
</property>
<property
name=
"sequnceHandlerType"
>
2
</property>
<!-- <property name="useCompression">1</property>-->
<!--1为开启mysql压缩协议-->
<!-- <property name="fakeMySQLVersion">5.6.20</property>-->
<!--设置模拟的MySQL版本号-->
<!-- <property name="processorBufferChunk">40960</property> -->
<!--
<property name="processors">1</property>
<property name="processorExecutor">32</property>
-->
<!--默认为type 0: DirectByteBufferPool | type 1 ByteBufferArena-->
<property
name=
"processorBufferPoolType"
>
0
</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> -->
<!--分布式事务开关,0为不过滤分布式事务,1为过滤分布式事务(如果分布式事务内只涉及全局表,则不过滤),2为不过滤分布式事务,但是记录分布式事务日志-->
<property
name=
"handleDistributedTransactions"
>
0
</property>
<!--
off heap for merge/order/group/limit 1开启 0关闭
-->
<property
name=
"useOffHeapForMerge"
>
1
</property>
<!--
单位为m
-->
<property
name=
"memoryPageSize"
>
1m
</property>
<!--
单位为k
-->
<property
name=
"spillsFileBufferSize"
>
1k
</property>
<property
name=
"useStreamOutput"
>
0
</property>
<!--
单位为m
-->
<property
name=
"systemReserveMemorySize"
>
389m
</property>
</system>
<user
name=
"root"
>
<property
name=
"password"
>
digdeep
</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>
v5-mycat-migrate-docker/conf-prod/zkconf/server.xml
0 → 100644
View file @
d3995627
<?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://io.mycat/"
>
<system>
<property
name=
"useSqlStat"
>
1
</property>
<!-- 1为开启实时统计、0为关闭 -->
<property
name=
"useGlobleTableCheck"
>
0
</property>
<!-- 1为开启全加班一致性检测、0为关闭 -->
<property
name=
"defaultSqlParser"
>
druidparser
</property>
<property
name=
"sequnceHandlerType"
>
2
</property>
<!-- <property name="useCompression">1</property>-->
<!--1为开启mysql压缩协议-->
<!-- <property name="fakeMySQLVersion">5.6.20</property>-->
<!--设置模拟的MySQL版本号-->
<!-- <property name="processorBufferChunk">40960</property> -->
<!--
<property name="processors">1</property>
<property name="processorExecutor">32</property>
-->
<!--默认为type 0: DirectByteBufferPool | type 1 ByteBufferArena-->
<property
name=
"processorBufferPoolType"
>
0
</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> -->
<!--分布式事务开关,0为不过滤分布式事务,1为过滤分布式事务(如果分布式事务内只涉及全局表,则不过滤),2为不过滤分布式事务,但是记录分布式事务日志-->
<property
name=
"handleDistributedTransactions"
>
0
</property>
<!--
off heap for merge/order/group/limit 1开启 0关闭
-->
<property
name=
"useOffHeapForMerge"
>
1
</property>
<!--
单位为m
-->
<property
name=
"memoryPageSize"
>
1m
</property>
<!--
单位为k
-->
<property
name=
"spillsFileBufferSize"
>
1k
</property>
<property
name=
"useStreamOutput"
>
0
</property>
<!--
单位为m
-->
<property
name=
"systemReserveMemorySize"
>
384m
</property>
</system>
<user
name=
"root"
>
<property
name=
"password"
>
digdeep
</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>
v5-mycat-migrate-docker/conf-prod/zkconf/sharding-by-enum.txt
0 → 100644
View file @
d3995627
10000=0
10010=1
v5-mycat-migrate-docker/conf-prod/zkdownload/auto-sharding-long.txt
0 → 100644
View file @
d3995627
2000001-4000000=1
0-2000000=0
4000001-8000000=2
v5-mycat-migrate-docker/conf-sandbox/auto-sharding-long.txt
0 → 100644
View file @
d3995627
2000001-4000000=1
0-2000000=0
4000001-8000000=2
v5-mycat-migrate-docker/conf-sandbox/auto-sharding-rang-mod.txt
0 → 100644
View file @
d3995627
800M1-1000M=6
600M1-800M=4
200M1-400M=1
0-200M=5
400M1-600M=4
v5-mycat-migrate-docker/conf-sandbox/autopartition-long.txt
0 → 100644
View file @
d3995627
# 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
v5-mycat-migrate-docker/conf-sandbox/cacheservice.properties
0 → 100644
View file @
d3995627
#used for mycat cache service conf
factory.encache
=
io.mycat.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
v5-mycat-migrate-docker/conf-sandbox/dnindex.properties
0 → 100644
View file @
d3995627
#update
#Sun Oct 30 23:13:50 CST 2016
rds1-allinone
=
0
rds4
=
0
rds3
=
0
rds2
=
0
rds1
=
0
v5-mycat-migrate-docker/conf-sandbox/ehcache.xml
0 → 100644
View file @
d3995627
<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
v5-mycat-migrate-docker/conf-sandbox/index_to_charset.properties
0 → 100644
View file @
d3995627
1
=
big5
2
=
latin2
3
=
dec8
4
=
cp850
5
=
latin1
6
=
hp8
7
=
koi8r
8
=
latin1
9
=
latin2
10
=
swe7
11
=
ascii
12
=
ujis
13
=
sjis
14
=
cp1251
15
=
latin1
16
=
hebrew
18
=
tis620
19
=
euckr
20
=
latin7
21
=
latin2
22
=
koi8u
23
=
cp1251
24
=
gb2312
25
=
greek
26
=
cp1250
27
=
latin2
28
=
gbk
29
=
cp1257
30
=
latin5
31
=
latin1
32
=
armscii8
33
=
utf8
34
=
cp1250
35
=
ucs2
36
=
cp866
37
=
keybcs2
38
=
macce
39
=
macroman
40
=
cp852
41
=
latin7
42
=
latin7
43
=
macce
44
=
cp1250
45
=
utf8mb4
46
=
utf8mb4
47
=
latin1
48
=
latin1
49
=
latin1
50
=
cp1251
51
=
cp1251
52
=
cp1251
53
=
macroman
54
=
utf16
55
=
utf16
56
=
utf16le
57
=
cp1256
58
=
cp1257
59
=
cp1257
60
=
utf32
61
=
utf32
62
=
utf16le
63
=
binary
64
=
armscii8
65
=
ascii
66
=
cp1250
67
=
cp1256
68
=
cp866
69
=
dec8
70
=
greek
71
=
hebrew
72
=
hp8
73
=
keybcs2
74
=
koi8r
75
=
koi8u
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
99
=
cp1250
101
=
utf16
102
=
utf16
103
=
utf16
104
=
utf16
105
=
utf16
106
=
utf16
107
=
utf16
108
=
utf16
109
=
utf16
110
=
utf16
111
=
utf16
112
=
utf16
113
=
utf16
114
=
utf16
115
=
utf16
116
=
utf16
117
=
utf16
118
=
utf16
119
=
utf16
120
=
utf16
121
=
utf16
122
=
utf16
123
=
utf16
124
=
utf16
128
=
ucs2
129
=
ucs2
130
=
ucs2
131
=
ucs2
132
=
ucs2
133
=
ucs2
134
=
ucs2
135
=
ucs2
136
=
ucs2
137
=
ucs2
138
=
ucs2
139
=
ucs2
140
=
ucs2
141
=
ucs2
142
=
ucs2
143
=
ucs2
144
=
ucs2
145
=
ucs2
146
=
ucs2
147
=
ucs2
148
=
ucs2
149
=
ucs2
150
=
ucs2
151
=
ucs2
159
=
ucs2
160
=
utf32
161
=
utf32
162
=
utf32
163
=
utf32
164
=
utf32
165
=
utf32
166
=
utf32
167
=
utf32
168
=
utf32
169
=
utf32
170
=
utf32
171
=
utf32
172
=
utf32
173
=
utf32
174
=
utf32
175
=
utf32
176
=
utf32
177
=
utf32
178
=
utf32
179
=
utf32
180
=
utf32
181
=
utf32
182
=
utf32
183
=
utf32
192
=
utf8
193
=
utf8
194
=
utf8
195
=
utf8
196
=
utf8
197
=
utf8
198
=
utf8
199
=
utf8
200
=
utf8
201
=
utf8
202
=
utf8
203
=
utf8
204
=
utf8
205
=
utf8
206
=
utf8
207
=
utf8
208
=
utf8
209
=
utf8
210
=
utf8
211
=
utf8
212
=
utf8
213
=
utf8
214
=
utf8
215
=
utf8
223
=
utf8
224
=
utf8mb4
225
=
utf8mb4
226
=
utf8mb4
227
=
utf8mb4
228
=
utf8mb4
229
=
utf8mb4
230
=
utf8mb4
231
=
utf8mb4
232
=
utf8mb4
233
=
utf8mb4
234
=
utf8mb4
235
=
utf8mb4
236
=
utf8mb4
237
=
utf8mb4
238
=
utf8mb4
239
=
utf8mb4
240
=
utf8mb4
241
=
utf8mb4
242
=
utf8mb4
243
=
utf8mb4
244
=
utf8mb4
245
=
utf8mb4
246
=
utf8mb4
247
=
utf8mb4
\ No newline at end of file
v5-mycat-migrate-docker/conf-sandbox/log4j2.xml
0 → 100644
View file @
d3995627
<?xml version="1.0" encoding="UTF-8"?>
<Configuration
status=
"WARN"
>
<Appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"%d [%-5p][%t] %m %throwable{full} (%C:%F:%L) %n"
/>
</Console>
<RollingFile
name=
"RollingFile"
fileName=
"${sys:MYCAT_HOME}/logs/mycat.log"
filePattern=
"${sys:MYCAT_HOME}/logs/$${date:yyyy-MM}/mycat-%d{MM-dd}-%i.log.gz"
>
<PatternLayout>
<Pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} %5p [%t] (%l) - %m%n
</Pattern>
</PatternLayout>
<Policies>
<OnStartupTriggeringPolicy/>
<SizeBasedTriggeringPolicy
size=
"250 MB"
/>
<TimeBasedTriggeringPolicy/>
</Policies>
</RollingFile>
</Appenders>
<Loggers>
<!--<AsyncLogger name="io.mycat" level="info" includeLocation="true" additivity="false">-->
<!--<AppenderRef ref="Console"/>-->
<!--<AppenderRef ref="RollingFile"/>-->
<!--</AsyncLogger>-->
<asyncRoot
level=
"info"
includeLocation=
"true"
>
<AppenderRef
ref=
"Console"
/>
<AppenderRef
ref=
"RollingFile"
/>
</asyncRoot>
</Loggers>
</Configuration>
v5-mycat-migrate-docker/conf-sandbox/migrateTables.properties
0 → 100644
View file @
d3995627
#schema1=tb1,tb2,...
#schema2=all(写all或者不写将对此schema下拆分节点变化的拆分表全部进行重新路由)
#...
#sample
#
TESTDB
=
travelrecord,company,goods
\ No newline at end of file
v5-mycat-migrate-docker/conf-sandbox/myid.properties
0 → 100644
View file @
d3995627
loadZk
=
false
zkURL
=
127.0.0.1:2181
clusterId
=
mycat-cluster-1
myid
=
mycat_fz_01
clusterNodes
=
mycat_fz_01,mycat_fz_02,mycat_fz_04
#server booster ; booster install on db same server,will reset all minCon to 1
type
=
server
boosterDataHosts
=
dn2,dn3
v5-mycat-migrate-docker/conf-sandbox/partition-hash-int.txt
0 → 100644
View file @
d3995627
10000=0
10010=1
\ No newline at end of file
v5-mycat-migrate-docker/conf-sandbox/partition-range-mod.txt
0 → 100644
View file @
d3995627
# range start-end ,data node group size
0-200M=5
200M1-400M=1
400M1-600M=4
600M1-800M=4
800M1-1000M=6
v5-mycat-migrate-docker/conf-sandbox/rule.xml
0 → 100644
View file @
d3995627
<?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://io.mycat/"
>
<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=
"mod-ent-id"
>
<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=
"crc32slot"
>
<rule>
<columns>
id
</columns>
<algorithm>
crc32slot
</algorithm>
</rule>
</tableRule>
<tableRule
name=
"sharding-by-month"
>
<rule>
<columns>
create_time
</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=
"io.mycat.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=
"crc32slot"
class=
"io.mycat.route.function.PartitionByCRC32PreSlot"
>
<property
name=
"count"
>
2
</property>
<!-- 要分片的数据库节点数量,必须指定,否则没法分片 -->
</function>
<function
name=
"hash-int"
class=
"io.mycat.route.function.PartitionByFileMap"
>
<property
name=
"mapFile"
>
partition-hash-int.txt
</property>
</function>
<function
name=
"rang-long"
class=
"io.mycat.route.function.AutoPartitionByLong"
>
<property
name=
"mapFile"
>
autopartition-long.txt
</property>
</function>
<function
name=
"mod-long"
class=
"io.mycat.route.function.PartitionByMod"
>
<!-- how many data nodes -->
<property
name=
"count"
>
8
</property>
</function>
<function
name=
"func1"
class=
"io.mycat.route.function.PartitionByLong"
>
<property
name=
"partitionCount"
>
8
</property>
<property
name=
"partitionLength"
>
128
</property>
</function>
<function
name=
"latestMonth"
class=
"io.mycat.route.function.LatestMonthPartion"
>
<property
name=
"splitOneDay"
>
24
</property>
</function>
<function
name=
"partbymonth"
class=
"io.mycat.route.function.PartitionByMonth"
>
<property
name=
"dateFormat"
>
yyyy-MM-dd
</property>
<property
name=
"sBeginDate"
>
2015-01-01
</property>
</function>
<function
name=
"rang-mod"
class=
"io.mycat.route.function.PartitionByRangeMod"
>
<property
name=
"mapFile"
>
partition-range-mod.txt
</property>
</function>
<function
name=
"jump-consistent-hash"
class=
"io.mycat.route.function.PartitionByJumpConsistentHash"
>
<property
name=
"totalBuckets"
>
3
</property>
</function>
</mycat:rule>
v5-mycat-migrate-docker/conf-sandbox/schema.xml
0 → 100644
View file @
d3995627
This diff is collapsed.
Click to expand it.
v5-mycat-migrate-docker/conf-sandbox/sequence_conf.properties
0 → 100644
View file @
d3995627
#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
v5-mycat-migrate-docker/conf-sandbox/sequence_db_conf.properties
0 → 100644
View file @
d3995627
#sequence stored in datanode
GLOBAL
=
dn1
COMPANY
=
dn1
CUSTOMER
=
dn1
ORDERS
=
dn1
\ No newline at end of file
v5-mycat-migrate-docker/conf-sandbox/sequence_distributed_conf.properties
0 → 100644
View file @
d3995627
INSTANCEID
=
01
CLUSTERID
=
01
v5-mycat-migrate-docker/conf-sandbox/sequence_time_conf.properties
0 → 100644
View file @
d3995627
#sequence depend on TIME
WORKID
=
01
DATAACENTERID
=
01
\ No newline at end of file
v5-mycat-migrate-docker/conf-sandbox/server.xml
0 → 100644
View file @
d3995627
<?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://io.mycat/"
>
<system>
<property
name=
"useSqlStat"
>
0
</property>
<!-- 1为开启实时统计、0为关闭 -->
<property
name=
"useGlobleTableCheck"
>
0
</property>
<!-- 1为开启全加班一致性检测、0为关闭 -->
<property
name=
"sequnceHandlerType"
>
2
</property>
<!-- <property name="useCompression">1</property>-->
<!--1为开启mysql压缩协议-->
<!-- <property name="fakeMySQLVersion">5.6.20</property>-->
<!--设置模拟的MySQL版本号-->
<!-- <property name="processorBufferChunk">40960</property> -->
<!--
<property name="processors">1</property>
<property name="processorExecutor">32</property>
-->
<!--默认为type 0: DirectByteBufferPool | type 1 ByteBufferArena-->
<property
name=
"processorBufferPoolType"
>
0
</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="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> -->
<!--分布式事务开关,0为不过滤分布式事务,1为过滤分布式事务(如果分布式事务内只涉及全局表,则不过滤),2为不过滤分布式事务,但是记录分布式事务日志-->
<property
name=
"handleDistributedTransactions"
>
0
</property>
<!--
off heap for merge/order/group/limit 1开启 0关闭
-->
<property
name=
"useOffHeapForMerge"
>
1
</property>
<!--
单位为m
-->
<property
name=
"memoryPageSize"
>
1m
</property>
<!--
单位为k
-->
<property
name=
"spillsFileBufferSize"
>
1k
</property>
<property
name=
"useStreamOutput"
>
0
</property>
<!--
单位为m
-->
<property
name=
"systemReserveMemorySize"
>
384m
</property>
<!--是否采用zookeeper协调切换 -->
<property
name=
"useZKSwitch"
>
false
</property>
</system>
<!-- 全局SQL防火墙设置 -->
<!--
<firewall>
<whitehost>
<host host="127.0.0.1" user="mycat"/>
<host host="127.0.0.2" user="mycat"/>
</whitehost>
<blacklist check="false">
</blacklist>
</firewall>
-->
<user
name=
"user_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
user_service
</property>
</user>
<user
name=
"forum_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
forum_service
</property>
</user>
<user
name=
"points_mall_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
points_mall_service
</property>
</user>
<user
name=
"ecom_base_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
ecom_base_service
</property>
</user>
<user
name=
"ecom_order_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
ecom_order_service
</property>
</user>
<user
name=
"auth_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
auth_service
</property>
</user>
<user
name=
"plat_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
plat_service
</property>
</user>
<user
name=
"sys_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
sys_service
</property>
</user>
<user
name=
"stat_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
stat_service
</property>
</user>
<user
name=
"schedule_service"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
schedule_service
</property>
</user>
<user
name=
"sequence_service_1"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
sequence_service_1
</property>
</user>
<user
name=
"sequence_service_2"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
sequence_service_2
</property>
</user>
<user
name=
"terran"
>
<property
name=
"password"
>
Terran123456
</property>
<property
name=
"schemas"
>
stat_service,schedule_service,sequence_service_1,sequence_service_2,auth_service,plat_service,sys_service,user_service,forum_service,points_mall_service,ecom_base_service,ecom_order_service
</property>
</user>
</mycat:server>
v5-mycat-migrate-docker/conf-sandbox/sharding-by-enum.txt
0 → 100644
View file @
d3995627
10000=0
10010=1
v5-mycat-migrate-docker/conf-sandbox/wrapper.conf
0 → 100644
View file @
d3995627
#********************************************************************
# 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
=
512
# Maximum Java Heap Size (in MB)
wrapper
.
java
.
maxmemory
=
2048
# Application parameters. Add parameters as needed starting from 1
wrapper
.
app
.
parameter
.
1
=
io
.
mycat
.
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
v5-mycat-migrate-docker/conf-sandbox/zkconf/auto-sharding-long.txt
0 → 100644
View file @
d3995627
2000001-4000000=1
0-2000000=0
4000001-8000000=2
v5-mycat-migrate-docker/conf-sandbox/zkconf/auto-sharding-rang-mod.txt
0 → 100644
View file @
d3995627
800M1-1000M=6
600M1-800M=4
200M1-400M=1
0-200M=5
400M1-600M=4
v5-mycat-migrate-docker/conf-sandbox/zkconf/autopartition-long.txt
0 → 100644
View file @
d3995627
# 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
v5-mycat-migrate-docker/conf-sandbox/zkconf/cacheservice.properties
0 → 100644
View file @
d3995627
#used for mycat cache service conf
factory.encache
=
io.mycat.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
v5-mycat-migrate-docker/conf-sandbox/zkconf/ehcache.xml
0 → 100644
View file @
d3995627
<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
v5-mycat-migrate-docker/conf-sandbox/zkconf/index_to_charset.properties
0 → 100644
View file @
d3995627
1
=
big5
2
=
latin2
3
=
dec8
4
=
cp850
5
=
latin1
6
=
hp8
7
=
koi8r
8
=
latin1
9
=
latin2
10
=
swe7
11
=
ascii
12
=
ujis
13
=
sjis
14
=
cp1251
15
=
latin1
16
=
hebrew
18
=
tis620
19
=
euckr
20
=
latin7
21
=
latin2
22
=
koi8u
23
=
cp1251
24
=
gb2312
25
=
greek
26
=
cp1250
27
=
latin2
28
=
gbk
29
=
cp1257
30
=
latin5
31
=
latin1
32
=
armscii8
33
=
utf8
34
=
cp1250
35
=
ucs2
36
=
cp866
37
=
keybcs2
38
=
macce
39
=
macroman
40
=
cp852
41
=
latin7
42
=
latin7
43
=
macce
44
=
cp1250
45
=
utf8mb4
46
=
utf8mb4
47
=
latin1
48
=
latin1
49
=
latin1
50
=
cp1251
51
=
cp1251
52
=
cp1251
53
=
macroman
54
=
utf16
55
=
utf16
56
=
utf16le
57
=
cp1256
58
=
cp1257
59
=
cp1257
60
=
utf32
61
=
utf32
62
=
utf16le
63
=
binary
64
=
armscii8
65
=
ascii
66
=
cp1250
67
=
cp1256
68
=
cp866
69
=
dec8
70
=
greek
71
=
hebrew
72
=
hp8
73
=
keybcs2
74
=
koi8r
75
=
koi8u
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
99
=
cp1250
101
=
utf16
102
=
utf16
103
=
utf16
104
=
utf16
105
=
utf16
106
=
utf16
107
=
utf16
108
=
utf16
109
=
utf16
110
=
utf16
111
=
utf16
112
=
utf16
113
=
utf16
114
=
utf16
115
=
utf16
116
=
utf16
117
=
utf16
118
=
utf16
119
=
utf16
120
=
utf16
121
=
utf16
122
=
utf16
123
=
utf16
124
=
utf16
128
=
ucs2
129
=
ucs2
130
=
ucs2
131
=
ucs2
132
=
ucs2
133
=
ucs2
134
=
ucs2
135
=
ucs2
136
=
ucs2
137
=
ucs2
138
=
ucs2
139
=
ucs2
140
=
ucs2
141
=
ucs2
142
=
ucs2
143
=
ucs2
144
=
ucs2
145
=
ucs2
146
=
ucs2
147
=
ucs2
148
=
ucs2
149
=
ucs2
150
=
ucs2
151
=
ucs2
159
=
ucs2
160
=
utf32
161
=
utf32
162
=
utf32
163
=
utf32
164
=
utf32
165
=
utf32
166
=
utf32
167
=
utf32
168
=
utf32
169
=
utf32
170
=
utf32
171
=
utf32
172
=
utf32
173
=
utf32
174
=
utf32
175
=
utf32
176
=
utf32
177
=
utf32
178
=
utf32
179
=
utf32
180
=
utf32
181
=
utf32
182
=
utf32
183
=
utf32
192
=
utf8
193
=
utf8
194
=
utf8
195
=
utf8
196
=
utf8
197
=
utf8
198
=
utf8
199
=
utf8
200
=
utf8
201
=
utf8
202
=
utf8
203
=
utf8
204
=
utf8
205
=
utf8
206
=
utf8
207
=
utf8
208
=
utf8
209
=
utf8
210
=
utf8
211
=
utf8
212
=
utf8
213
=
utf8
214
=
utf8
215
=
utf8
223
=
utf8
224
=
utf8mb4
225
=
utf8mb4
226
=
utf8mb4
227
=
utf8mb4
228
=
utf8mb4
229
=
utf8mb4
230
=
utf8mb4
231
=
utf8mb4
232
=
utf8mb4
233
=
utf8mb4
234
=
utf8mb4
235
=
utf8mb4
236
=
utf8mb4
237
=
utf8mb4
238
=
utf8mb4
239
=
utf8mb4
240
=
utf8mb4
241
=
utf8mb4
242
=
utf8mb4
243
=
utf8mb4
244
=
utf8mb4
245
=
utf8mb4
246
=
utf8mb4
247
=
utf8mb4
\ No newline at end of file
v5-mycat-migrate-docker/conf-sandbox/zkconf/partition-hash-int.txt
0 → 100644
View file @
d3995627
10000=0
10010=1
\ No newline at end of file
v5-mycat-migrate-docker/conf-sandbox/zkconf/partition-range-mod.txt
0 → 100644
View file @
d3995627
# range start-end ,data node group size
0-200M=5
200M1-400M=1
400M1-600M=4
600M1-800M=4
800M1-1000M=6
v5-mycat-migrate-docker/conf-sandbox/zkconf/rule.xml
0 → 100644
View file @
d3995627
<?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://io.mycat/"
>
<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=
"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=
"io.mycat.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=
"io.mycat.route.function.PartitionByFileMap"
>
<property
name=
"mapFile"
>
partition-hash-int.txt
</property>
</function>
<function
name=
"rang-long"
class=
"io.mycat.route.function.AutoPartitionByLong"
>
<property
name=
"mapFile"
>
autopartition-long.txt
</property>
</function>
<function
name=
"mod-long"
class=
"io.mycat.route.function.PartitionByMod"
>
<!-- how many data nodes -->
<property
name=
"count"
>
3
</property>
</function>
<function
name=
"func1"
class=
"io.mycat.route.function.PartitionByLong"
>
<property
name=
"partitionCount"
>
8
</property>
<property
name=
"partitionLength"
>
128
</property>
</function>
<function
name=
"latestMonth"
class=
"io.mycat.route.function.LatestMonthPartion"
>
<property
name=
"splitOneDay"
>
24
</property>
</function>
<function
name=
"partbymonth"
class=
"io.mycat.route.function.PartitionByMonth"
>
<property
name=
"dateFormat"
>
yyyy-MM-dd
</property>
<property
name=
"sBeginDate"
>
2015-01-01
</property>
</function>
<function
name=
"rang-mod"
class=
"io.mycat.route.function.PartitionByRangeMod"
>
<property
name=
"mapFile"
>
partition-range-mod.txt
</property>
</function>
<function
name=
"jump-consistent-hash"
class=
"io.mycat.route.function.PartitionByJumpConsistentHash"
>
<property
name=
"totalBuckets"
>
3
</property>
</function>
</mycat:rule>
v5-mycat-migrate-docker/conf-sandbox/zkconf/schema.xml
0 → 100644
View file @
d3995627
<?xml version="1.0"?>
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
<mycat:schema
xmlns:mycat=
"http://io.mycat/"
>
<schema
name=
"TESTDB"
checkSQLschema=
"false"
sqlMaxLimit=
"100"
>
<!-- 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"
type=
"global"
dataNode=
"dn1,dn2,dn3"
/>
<table
name=
"goods"
primaryKey=
"ID"
type=
"global"
dataNode=
"dn1,dn2"
/>
<!-- random sharding using mod sharind rule -->
<table
name=
"hotnews"
primaryKey=
"ID"
autoIncrement=
"true"
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="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=
"localhost:3306"
user=
"root"
password=
"123456"
>
<!-- can have multi read hosts -->
<readHost
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
v5-mycat-migrate-docker/conf-sandbox/zkconf/sequence_conf.properties
0 → 100644
View file @
d3995627
#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
v5-mycat-migrate-docker/conf-sandbox/zkconf/sequence_db_conf.properties
0 → 100644
View file @
d3995627
#sequence stored in datanode
GLOBAL
=
dn1
COMPANY
=
dn1
CUSTOMER
=
dn1
ORDERS
=
dn1
\ No newline at end of file
v5-mycat-migrate-docker/conf-sandbox/zkconf/sequence_distributed_conf-mycat_fz_01.properties
0 → 100644
View file @
d3995627
INSTANCEID
=
02
CLUSTERID
=
02
v5-mycat-migrate-docker/conf-sandbox/zkconf/sequence_distributed_conf.properties
0 → 100644
View file @
d3995627
INSTANCEID
=
01
CLUSTERID
=
01
v5-mycat-migrate-docker/conf-sandbox/zkconf/sequence_time_conf-mycat_fz_01.properties
0 → 100644
View file @
d3995627
#sequence depend on TIME
WORKID
=
03
DATAACENTERID
=
03
\ No newline at end of file
v5-mycat-migrate-docker/conf-sandbox/zkconf/sequence_time_conf.properties
0 → 100644
View file @
d3995627
#sequence depend on TIME
WORKID
=
01
DATAACENTERID
=
01
\ No newline at end of file
v5-mycat-migrate-docker/conf-sandbox/zkconf/server-mycat_fz_01.xml
0 → 100644
View file @
d3995627
<?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://io.mycat/"
>
<system>
<property
name=
"useSqlStat"
>
1
</property>
<!-- 1为开启实时统计、0为关闭 -->
<property
name=
"useGlobleTableCheck"
>
0
</property>
<!-- 1为开启全加班一致性检测、0为关闭 -->
<property
name=
"defaultSqlParser"
>
druidparser
</property>
<property
name=
"sequnceHandlerType"
>
2
</property>
<!-- <property name="useCompression">1</property>-->
<!--1为开启mysql压缩协议-->
<!-- <property name="fakeMySQLVersion">5.6.20</property>-->
<!--设置模拟的MySQL版本号-->
<!-- <property name="processorBufferChunk">40960</property> -->
<!--
<property name="processors">1</property>
<property name="processorExecutor">32</property>
-->
<!--默认为type 0: DirectByteBufferPool | type 1 ByteBufferArena-->
<property
name=
"processorBufferPoolType"
>
0
</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> -->
<!--分布式事务开关,0为不过滤分布式事务,1为过滤分布式事务(如果分布式事务内只涉及全局表,则不过滤),2为不过滤分布式事务,但是记录分布式事务日志-->
<property
name=
"handleDistributedTransactions"
>
0
</property>
<!--
off heap for merge/order/group/limit 1开启 0关闭
-->
<property
name=
"useOffHeapForMerge"
>
1
</property>
<!--
单位为m
-->
<property
name=
"memoryPageSize"
>
1m
</property>
<!--
单位为k
-->
<property
name=
"spillsFileBufferSize"
>
1k
</property>
<property
name=
"useStreamOutput"
>
0
</property>
<!--
单位为m
-->
<property
name=
"systemReserveMemorySize"
>
389m
</property>
</system>
<user
name=
"root"
>
<property
name=
"password"
>
digdeep
</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>
v5-mycat-migrate-docker/conf-sandbox/zkconf/server.xml
0 → 100644
View file @
d3995627
<?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://io.mycat/"
>
<system>
<property
name=
"useSqlStat"
>
1
</property>
<!-- 1为开启实时统计、0为关闭 -->
<property
name=
"useGlobleTableCheck"
>
0
</property>
<!-- 1为开启全加班一致性检测、0为关闭 -->
<property
name=
"defaultSqlParser"
>
druidparser
</property>
<property
name=
"sequnceHandlerType"
>
2
</property>
<!-- <property name="useCompression">1</property>-->
<!--1为开启mysql压缩协议-->
<!-- <property name="fakeMySQLVersion">5.6.20</property>-->
<!--设置模拟的MySQL版本号-->
<!-- <property name="processorBufferChunk">40960</property> -->
<!--
<property name="processors">1</property>
<property name="processorExecutor">32</property>
-->
<!--默认为type 0: DirectByteBufferPool | type 1 ByteBufferArena-->
<property
name=
"processorBufferPoolType"
>
0
</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> -->
<!--分布式事务开关,0为不过滤分布式事务,1为过滤分布式事务(如果分布式事务内只涉及全局表,则不过滤),2为不过滤分布式事务,但是记录分布式事务日志-->
<property
name=
"handleDistributedTransactions"
>
0
</property>
<!--
off heap for merge/order/group/limit 1开启 0关闭
-->
<property
name=
"useOffHeapForMerge"
>
1
</property>
<!--
单位为m
-->
<property
name=
"memoryPageSize"
>
1m
</property>
<!--
单位为k
-->
<property
name=
"spillsFileBufferSize"
>
1k
</property>
<property
name=
"useStreamOutput"
>
0
</property>
<!--
单位为m
-->
<property
name=
"systemReserveMemorySize"
>
384m
</property>
</system>
<user
name=
"root"
>
<property
name=
"password"
>
digdeep
</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>
v5-mycat-migrate-docker/conf-sandbox/zkconf/sharding-by-enum.txt
0 → 100644
View file @
d3995627
10000=0
10010=1
v5-mycat-migrate-docker/conf-sandbox/zkdownload/auto-sharding-long.txt
0 → 100644
View file @
d3995627
2000001-4000000=1
0-2000000=0
4000001-8000000=2
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