Skip to content

Commit b9e3d88

Browse files
ylinzhudcy10000
authored andcommitted
atk-4344 :reorder config
1 parent ccc87f6 commit b9e3d88

File tree

1 file changed

+81
-60
lines changed

1 file changed

+81
-60
lines changed

src/main/resources/bootstrap_template.cnf

Lines changed: 81 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,8 @@
5555
-DusingAIO=0
5656

5757
-DuseThreadUsageStat=1
58-
# query time cost statistics
59-
#-DuseCostTimeStat=0
60-
#-DmaxCostStatSize=100
61-
#-DcostSamplePercent=1
6258

6359

64-
# consistency
65-
# check the consistency of table structure between nodes,default not
66-
-DcheckTableConsistency=0
67-
# check period, he default period is 60000 milliseconds
68-
-DcheckTableConsistencyPeriod=60000
6960

7061
# processor check conn
7162
-DprocessorCheckPeriod=1000
@@ -82,35 +73,74 @@
8273
#-DfrontSocketSoSndbuf=4194304
8374
#-DfrontSocketNoDelay=1
8475

85-
86-
# query memory used for per session,unit is M
87-
-DotherMemSize=4
88-
-DorderMemSize=4
89-
-DjoinMemSize=4
90-
91-
9276
# off Heap unit:bytes
9377
-DbufferPoolChunkSize=32767
9478
#-DbufferPoolPageNumber=256
9579
-DbufferPoolPageSize=2097152
96-
#-DmappedFileSize=2097152
9780

9881

99-
# sql statistics
100-
# 1 means use SQL statistics, 0 means not
101-
-DuseSqlStat=1
102-
#-DbufferUsagePercent=80
103-
-DclearBigSQLResultSetMapMs=600000
104-
#-DsqlRecordCount=10
105-
#-DmaxResultSet=524288
82+
# if enable the slow query log
83+
-DenableSlowLog=1
84+
# the slow query log location
85+
#-DslowLogBaseDir=./slowlogs
86+
#-DslowLogBaseName=slow-query
87+
# the max period for flushing the slow query log from memory to disk after last time , unit is second
88+
-DflushSlowLogPeriod=1
89+
# the max records for flushing the slow query log from memory to disk after last time
90+
-DflushSlowLogSize=1000
91+
# the threshold for judging if the query is slow , unit is millisecond
92+
-DsqlSlowTime=100
10693

10794

108-
# transaction log
109-
# 1 enable record the transaction log, 0 disable ,the unit of transactionRotateSize is M
110-
-DrecordTxn=0
111-
#-DtransactionLogBaseDir=/txlogs
112-
#-DtransactionLogBaseName=server-tx
113-
#-DtransactionRotateSize=16
95+
#-DenableAsyncRelease=1
96+
#-DreleaseTimeout=10
97+
98+
99+
100+
101+
102+
##### (通用)读写分离无关 begin
103+
104+
#-DviewPersistenceConfBaseDir=/viewPath
105+
#-DviewPersistenceConfBaseName=viewJson
106+
107+
# consistency
108+
# check the consistency of table structure between nodes,default not
109+
-DcheckTableConsistency=0
110+
# check period, he default period is 60000 milliseconds
111+
-DcheckTableConsistencyPeriod=60000
112+
113+
##### (通用)读写分离无关 end
114+
115+
##### 分库分表 only begin
116+
117+
# true is use JoinStrategy, default false
118+
#-DuseJoinStrategy=true
119+
-DnestLoopConnSize=4
120+
-DnestLoopRowsSize=2000
121+
122+
#enableFlowControl=false
123+
#flowControlStartThreshold=4096
124+
#flowControlStopThreshold=256
125+
126+
127+
# for join tmp results
128+
#-DmergeQueueSize=1024
129+
#-DorderByQueueSize=1024
130+
#-DjoinQueueSize=1024
131+
132+
133+
# used for load data,maxCharsPerColumn means max chars length for per column when load data
134+
#-DmaxCharsPerColumn=65535
135+
# used for load data, because dble need save to disk if loading file contains large size
136+
#-DmaxRowSizeToFile=10000
137+
138+
139+
# query memory used for per session,unit is M
140+
-DotherMemSize=4
141+
-DorderMemSize=4
142+
-DjoinMemSize=4
143+
114144
# XA transaction
115145
# use XA transaction ,if the mysql service crash,the unfinished XA commit/rollback will retry for several times , it is the check period for ,default is 1000 milliseconds
116146
-DxaSessionCheckPeriod=1000
@@ -123,41 +153,32 @@
123153
# XA Retry count, retry times in backend, 0 means always retry until success
124154
#-DxaRetryCount=0
125155

126-
#-DviewPersistenceConfBaseDir=/viewPath
127-
#-DviewPersistenceConfBaseName=viewJson
128156

129-
# for join tmp results
130-
#-DmergeQueueSize=1024
131-
#-DorderByQueueSize=1024
132-
#-DjoinQueueSize=1024
133157

134158

135-
# true is use JoinStrategy, default false
136-
#-DuseJoinStrategy=true
137-
-DnestLoopConnSize=4
138-
-DnestLoopRowsSize=2000
159+
# transaction log
160+
# 1 enable record the transaction log, 0 disable ,the unit of transactionRotateSize is M
161+
-DrecordTxn=0
162+
#-DtransactionLogBaseDir=/txlogs
163+
#-DtransactionLogBaseName=server-tx
164+
#-DtransactionRotateSize=16
139165

166+
# query time cost statistics
167+
#-DuseCostTimeStat=0
168+
#-DmaxCostStatSize=100
169+
#-DcostSamplePercent=1
140170

141-
# if enable the slow query log
142-
-DenableSlowLog=1
143-
# the slow query log location
144-
#-DslowLogBaseDir=./slowlogs
145-
#-DslowLogBaseName=slow-query
146-
# the max period for flushing the slow query log from memory to disk after last time , unit is second
147-
-DflushSlowLogPeriod=1
148-
# the max records for flushing the slow query log from memory to disk after last time
149-
-DflushSlowLogSize=1000
150-
# the threshold for judging if the query is slow , unit is millisecond
151-
-DsqlSlowTime=100
152171

153-
# used for load data,maxCharsPerColumn means max chars length for per column when load data
154-
#-DmaxCharsPerColumn=65535
155-
# used for load data, because dble need save to disk if loading file contains large size
156-
#-DmaxRowSizeToFile=10000
172+
#-DmappedFileSize=2097152
157173

158-
#enableFlowControl=false
159-
#flowControlStartThreshold=4096
160-
#flowControlStopThreshold=256
161174

162-
#-DenableAsyncRelease=1
163-
#-DreleaseTimeout=10
175+
176+
# sql statistics
177+
# 1 means use SQL statistics, 0 means not
178+
-DuseSqlStat=0
179+
#-DbufferUsagePercent=80
180+
-DclearBigSQLResultSetMapMs=600000
181+
#-DsqlRecordCount=10
182+
#-DmaxResultSet=524288
183+
184+
##### 分库分表 only end

0 commit comments

Comments
 (0)