config-bak.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #For details about configuration items, see https://seata.io/zh-cn/docs/user/configurations.html
  2. #Transport configuration, for client and server
  3. transport.type=TCP
  4. transport.server=NIO
  5. transport.heartbeat=true
  6. transport.enableTmClientBatchSendRequest=false
  7. transport.enableRmClientBatchSendRequest=true
  8. transport.enableTcServerBatchSendResponse=false
  9. transport.rpcRmRequestTimeout=30000
  10. transport.rpcTmRequestTimeout=30000
  11. transport.rpcTcRequestTimeout=30000
  12. transport.threadFactory.bossThreadPrefix=NettyBoss
  13. transport.threadFactory.workerThreadPrefix=NettyServerNIOWorker
  14. transport.threadFactory.serverExecutorThreadPrefix=NettyServerBizHandler
  15. transport.threadFactory.shareBossWorker=false
  16. transport.threadFactory.clientSelectorThreadPrefix=NettyClientSelector
  17. transport.threadFactory.clientSelectorThreadSize=1
  18. transport.threadFactory.clientWorkerThreadPrefix=NettyClientWorkerThread
  19. transport.threadFactory.bossThreadSize=1
  20. transport.threadFactory.workerThreadSize=default
  21. transport.shutdown.wait=3
  22. transport.serialization=seata
  23. transport.compressor=none
  24. #Transaction routing rules configuration, only for the client
  25. service.vgroupMapping.default_tx_group=default
  26. #If you use a registry, you can ignore it
  27. service.default.grouplist=127.0.0.1:8091
  28. service.enableDegrade=false
  29. service.disableGlobalTransaction=false
  30. #Transaction rule configuration, only for the client
  31. client.rm.asyncCommitBufferLimit=10000
  32. client.rm.lock.retryInterval=10
  33. client.rm.lock.retryTimes=30
  34. client.rm.lock.retryPolicyBranchRollbackOnConflict=true
  35. client.rm.reportRetryCount=5
  36. client.rm.tableMetaCheckEnable=true
  37. client.rm.tableMetaCheckerInterval=60000
  38. client.rm.sqlParserType=druid
  39. client.rm.reportSuccessEnable=false
  40. client.rm.sagaBranchRegisterEnable=false
  41. client.rm.sagaJsonParser=fastjson
  42. client.rm.tccActionInterceptorOrder=-2147482648
  43. client.tm.commitRetryCount=5
  44. client.tm.rollbackRetryCount=5
  45. client.tm.defaultGlobalTransactionTimeout=60000
  46. client.tm.degradeCheck=false
  47. client.tm.degradeCheckAllowTimes=10
  48. client.tm.degradeCheckPeriod=2000
  49. client.tm.interceptorOrder=-2147482648
  50. client.undo.dataValidation=true
  51. client.undo.logSerialization=jackson
  52. client.undo.onlyCareUpdateColumns=true
  53. server.undo.logSaveDays=7
  54. server.undo.logDeletePeriod=86400000
  55. client.undo.logTable=undo_log
  56. client.undo.compress.enable=true
  57. client.undo.compress.type=zip
  58. client.undo.compress.threshold=64k
  59. #For TCC transaction mode
  60. tcc.fence.logTableName=tcc_fence_log
  61. tcc.fence.cleanPeriod=1h
  62. #Log rule configuration, for client and server
  63. log.exceptionRate=100
  64. #Transaction storage configuration, only for the server. The file, db, and redis configuration values are optional.
  65. store.mode=file
  66. store.lock.mode=file
  67. store.session.mode=file
  68. #Used for password encryption
  69. store.publicKey=
  70. #If `store.mode,store.lock.mode,store.session.mode` are not equal to `file`, you can remove the configuration block.
  71. store.file.dir=file_store/data
  72. store.file.maxBranchSessionSize=16384
  73. store.file.maxGlobalSessionSize=512
  74. store.file.fileWriteBufferCacheSize=16384
  75. store.file.flushDiskMode=async
  76. store.file.sessionReloadReadSize=100
  77. #These configurations are required if the `store mode` is `db`. If `store.mode,store.lock.mode,store.session.mode` are not equal to `db`, you can remove the configuration block.
  78. store.db.datasource=druid
  79. store.db.dbType=mysql
  80. store.db.driverClassName=com.mysql.jdbc.Driver
  81. store.db.url=jdbc:mysql://127.0.0.1:3306/seata?useUnicode=true&rewriteBatchedStatements=true
  82. store.db.user=username
  83. store.db.password=password
  84. store.db.minConn=5
  85. store.db.maxConn=30
  86. store.db.globalTable=global_table
  87. store.db.branchTable=branch_table
  88. store.db.distributedLockTable=distributed_lock
  89. store.db.queryLimit=100
  90. store.db.lockTable=lock_table
  91. store.db.maxWait=5000
  92. #These configurations are required if the `store mode` is `redis`. If `store.mode,store.lock.mode,store.session.mode` are not equal to `redis`, you can remove the configuration block.
  93. store.redis.mode=single
  94. store.redis.single.host=127.0.0.1
  95. store.redis.single.port=6379
  96. store.redis.sentinel.masterName=
  97. store.redis.sentinel.sentinelHosts=
  98. store.redis.maxConn=10
  99. store.redis.minConn=1
  100. store.redis.maxTotal=100
  101. store.redis.database=0
  102. store.redis.password=
  103. store.redis.queryLimit=100
  104. #Transaction rule configuration, only for the server
  105. server.recovery.committingRetryPeriod=1000
  106. server.recovery.asynCommittingRetryPeriod=1000
  107. server.recovery.rollbackingRetryPeriod=1000
  108. server.recovery.timeoutRetryPeriod=1000
  109. server.maxCommitRetryTimeout=-1
  110. server.maxRollbackRetryTimeout=-1
  111. server.rollbackRetryTimeoutUnlockEnable=false
  112. server.distributedLockExpireTime=10000
  113. server.xaerNotaRetryTimeout=60000
  114. server.session.branchAsyncQueueSize=5000
  115. server.session.enableBranchAsyncRemove=false
  116. server.enableParallelRequestHandle=false
  117. #Metrics configuration, only for the server
  118. metrics.enabled=false
  119. metrics.registryType=compact
  120. metrics.exporterList=prometheus
  121. metrics.exporterPrometheusPort=9898