#encoding=UTF-8
-agentlib:jdwp=transport=dt_socket,server=y,address=8088,suspend=n
-server
-XX:+AggressiveOpts
-Dfile.encoding=UTF-8
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=1984
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.host=127.0.0.1
-Xmx4G
-Xms1G
-Xss512k
-XX:MaxDirectMemorySize=2G
-XX:MetaspaceSize=100M
-XX:-OmitStackTraceInFastThrow
# GC Log
-XX:+PrintHeapAtGC
-XX:+PrintGCDateStamps
-Xloggc:./logs/gc_%WRAPPER_TIME_YYYYMMDDHHIISS%_%p.log
-XX:+PrintGCTimeStamps
-XX:+PrintGCDetails
-XX:+PrintGCApplicationStoppedTime
-XX:+PrintTenuringDistribution
# CMS
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
-XX:+CMSParallelRemarkEnabled
-XX:+UseCMSCompactAtFullCollection
-XX:CMSFullGCsBeforeCompaction=0
-XX:+CMSClassUnloadingEnabled
-XX:LargePageSizeInBytes=128M
-XX:+UseFastAccessorMethods
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSInitiatingOccupancyFraction=70
#  base config
-DhomePath=.
-DinstanceName=1
-DinstanceId=1
-DserverId=xxx1
#-DbindIp=0.0.0.0
-DserverPort=8066
-DmanagerPort=9066
-DmaxCon=0
#-DNIOFrontRW=4
#-DNIOBackendRW=12
#-DfrontWorker=4
#-DmanagerFrontWorker=2
#-DbackendWorker=12
#-DcomplexQueryWorker=8
#-DwriteToBackendWorker=4


-DfakeMySQLVersion=5.7.21

# serverBacklog size,default 2048
-DserverBacklog=2048

-DusePerformanceMode=0
# if need out HA
-DuseOuterHa=true

# connection
-Dcharset=utf8mb4
-DmaxPacketSize=4194304
-DtxIsolation=3
-Dautocommit=1
-DidleTimeout=600000

# option
-DuseCompression=0
-DcapClientFoundRows=false
-DusingAIO=0

-DuseThreadUsageStat=0
#  query time cost statistics
-DuseCostTimeStat=0
-DmaxCostStatSize=100
-DcostSamplePercent=1


# consistency
#  check the consistency of table structure between nodes,default not
-DcheckTableConsistency=0
#  check period, he default period is 60000 milliseconds
-DcheckTableConsistencyPeriod=1800000

#  processor check conn
-DprocessorCheckPeriod=1000
-DsqlExecuteTimeout=300


#-DbackSocket unit:bytes
-DbackSocketSoRcvbuf=4194304
-DbackSocketSoSndbuf=1048576
-DbackSocketNoDelay=1

#  frontSocket
-DfrontSocketSoRcvbuf=1048576
-DfrontSocketSoSndbuf=4194304
-DfrontSocketNoDelay=1


#  query memory used for per session,unit is M
-DotherMemSize=4
-DorderMemSize=4
-DjoinMemSize=4


#  off Heap unit:bytes
-DbufferPoolChunkSize=4096
#-DbufferPoolPageNumber=256
-DbufferPoolPageSize=2097152
-DmappedFileSize=67108864

# Whether the server-side cursor  is enable or not.
-DenableCursor=false
# used for temp table persistence of cursor , Temp table which size larger than that will save to disk.
-DmaxHeapTableSize=4096
# used for temp table persistence of cursor, setting for read-buffer size.
#-DheapTableBufferChunkSize=32768

#  transaction log
#  1 enable record the transaction log, 0 disable ,the unit of transactionRotateSize is M
-DrecordTxn=0
-DtransactionLogBaseDir=txlogs
-DtransactionLogBaseName=server-tx
-DtransactionRotateSize=16
#  XA transaction
#  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
-DxaSessionCheckPeriod=1000
#  use XA transaction ,the finished XA log will removed. the default period is 1000 milliseconds
-DxaLogCleanPeriod=1000
#  XA Recovery Log path
-DxaRecoveryLogBaseDir=xalogs
#  XA Recovery Log name
-DxaRecoveryLogBaseName=xalog
#  XA Retry count, retry times in backend, 0 means always retry until success
-DxaRetryCount=0

-DviewPersistenceConfBaseDir=viewConf
-DviewPersistenceConfBaseName=viewJson

#  for join tmp results
-DmergeQueueSize=1024
-DorderByQueueSize=1024
-DjoinQueueSize=1024


#  true is use JoinStrategy, default false
-DuseJoinStrategy=false
-DnestLoopConnSize=4
-DnestLoopRowsSize=2000


#  if enable the slow query log
-DenableSlowLog=0
#  the slow query log location
-DslowLogBaseDir=slowlogs
-DslowLogBaseName=slow-query
#  the max period for flushing the slow query log from memory to disk  after last time , unit is second
-DflushSlowLogPeriod=1
#  the max records for flushing the slow query log from memory to disk after last time
-DflushSlowLogSize=1000
#  the threshold for judging if the query is slow , unit is millisecond
-DsqlSlowTime=100
# slow log queue overflow policy
-DslowQueueOverflowPolicy=1

#  used for load data,maxCharsPerColumn means max chars length for per column when load data
-DmaxCharsPerColumn=65535
#  used for load data, because dble need save to disk if loading file contains large size
-DmaxRowSizeToFile=100000
#  if enable the batch load data
-DenableBatchLoadData=0

-DenableFlowControl=false
-DflowControlHighLevel=4194304
-DflowControlLowLevel=262144

#  if enable the general log
-DenableGeneralLog=0
#  general log file path
-DgeneralLogFile=general/general.log
#  maximum value of file, unit is mb
-DgeneralLogFileSize=16
#  the queue size must not be less than 1 and must be a power of 2
-DgeneralLogQueueSize=4096

#  if enable statistic sql
-DenableStatistic=0
-DenableStatisticAnalysis=0
-DassociateTablesByEntryByUserTableSize=1024
-DfrontendByBackendByEntryByUserTableSize=1024
-DtableByUserByEntryTableSize=1024
#  processing queue size must not be less than 1 and must be a power of 2
-DstatisticQueueSize=4096
-DsamplingRate=100
-DsqlLogTableSize=1024
-DmaxResultSet=524288

-DinSubQueryTransformToJoin=false
#For rwSplitUser, Implement stickiness for read and write instances, the default value is 1000ms
-DrwStickyTime=1000
-DjoinStrategyType=-1
-DgroupConcatMaxLen=1024

#-DserverCertificateKeyStoreUrl=
#-DserverCertificateKeyStorePwd=
#-DtrustCertificateKeyStoreUrl=
#-DtrustCertificateKeyStorePwd=

#-DgmsslBothPfx=
#-DgmsslBothPfxPwd=
#-DgmsslRcaPem=
#-DgmsslOcaPem=
#-DsupportSSL=

#local read
#-Ddistrict=
#-DdataCenter=

-DenableSessionActiveRatioStat=1
-DenableConnectionAssociateThread=1
-DxaIdCheckPeriod=300

-DenableSqlDumpLog=0
-DsqlDumpLogBasePath=sqldump
-DsqlDumpLogFileName=sqldump.log
-DsqlDumpLogCompressFilePattern=${date:yyyy-MM}/sqldump-%d{MM-dd}-%i.log.gz
-DsqlDumpLogOnStartupRotate=1
-DsqlDumpLogSizeBasedRotate=50MB
-DsqlDumpLogTimeBasedRotate=1
-DsqlDumpLogDeleteFileAge=90d
-DsqlDumpLogCompressFilePath=*/sqldump-*.log.gz

-DqueryForUpdateMaxRowsSize=20000


-DenableMemoryBufferMonitor=0
-DenableMemoryBufferMonitorRecordPool=1

-DtcpKeepIdle=30
-DtcpKeepInterval=10
-DtcpKeepCount=3
