file.conf 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # Copyright 1999-2019 Seata.io Group.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. transport {
  15. # tcp, unix-domain-socket
  16. type = "TCP"
  17. #NIO, NATIVE
  18. server = "NIO"
  19. #enable heartbeat
  20. heartbeat = true
  21. # the tm client batch send request enable
  22. enableTmClientBatchSendRequest = false
  23. # the rm client batch send request enable
  24. enableRmClientBatchSendRequest = true
  25. # the rm client rpc request timeout
  26. rpcRmRequestTimeout = 2000
  27. # the tm client rpc request timeout
  28. rpcTmRequestTimeout = 30000
  29. # the rm client rpc request timeout
  30. rpcRmRequestTimeout = 15000
  31. #thread factory for netty
  32. threadFactory {
  33. bossThreadPrefix = "NettyBoss"
  34. workerThreadPrefix = "NettyServerNIOWorker"
  35. serverExecutorThread-prefix = "NettyServerBizHandler"
  36. shareBossWorker = false
  37. clientSelectorThreadPrefix = "NettyClientSelector"
  38. clientSelectorThreadSize = 1
  39. clientWorkerThreadPrefix = "NettyClientWorkerThread"
  40. # netty boss thread size
  41. bossThreadSize = 1
  42. #auto default pin or 8
  43. workerThreadSize = "default"
  44. }
  45. shutdown {
  46. # when destroy server, wait seconds
  47. wait = 3
  48. }
  49. serialization = "seata"
  50. compressor = "none"
  51. }
  52. service {
  53. #transaction service group mapping
  54. vgroupMapping.default_tx_group = "default"
  55. #only support when registry.type=file, please don't set multiple addresses
  56. default.grouplist = "127.0.0.1:8091"
  57. #degrade, current not support
  58. enableDegrade = false
  59. #disable seata
  60. disableGlobalTransaction = false
  61. }
  62. client {
  63. rm {
  64. asyncCommitBufferLimit = 10000
  65. lock {
  66. retryInterval = 10
  67. retryTimes = 30
  68. retryPolicyBranchRollbackOnConflict = true
  69. }
  70. reportRetryCount = 5
  71. tableMetaCheckEnable = false
  72. tableMetaCheckerInterval = 60000
  73. reportSuccessEnable = false
  74. sagaBranchRegisterEnable = false
  75. sagaJsonParser = "fastjson"
  76. sagaRetryPersistModeUpdate = false
  77. sagaCompensatePersistModeUpdate = false
  78. tccActionInterceptorOrder = -2147482648 #Ordered.HIGHEST_PRECEDENCE + 1000
  79. sqlParserType = "druid"
  80. branchExecutionTimeoutXA = 60000
  81. connectionTwoPhaseHoldTimeoutXA = 10000
  82. }
  83. tm {
  84. commitRetryCount = 5
  85. rollbackRetryCount = 5
  86. defaultGlobalTransactionTimeout = 60000
  87. degradeCheck = false
  88. degradeCheckPeriod = 2000
  89. degradeCheckAllowTimes = 10
  90. interceptorOrder = -2147482648 #Ordered.HIGHEST_PRECEDENCE + 1000
  91. }
  92. undo {
  93. dataValidation = true
  94. onlyCareUpdateColumns = true
  95. logSerialization = "jackson"
  96. logTable = "undo_log"
  97. compress {
  98. enable = true
  99. # allow zip, gzip, deflater, 7z, lz4, bzip2, zstd default is zip
  100. type = zip
  101. # if rollback info size > threshold, then will be compress
  102. # allow k m g t
  103. threshold = 64k
  104. }
  105. }
  106. loadBalance {
  107. type = "RandomLoadBalance"
  108. virtualNodes = 10
  109. }
  110. }
  111. log {
  112. exceptionRate = 100
  113. }
  114. tcc {
  115. fence {
  116. # tcc fence log table name
  117. logTableName = tcc_fence_log
  118. # tcc fence log clean period
  119. cleanPeriod = 1h
  120. }
  121. }