application.yml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. seata:
  2. enabled: true
  3. application-id: applicationName
  4. tx-service-group: default_tx_group
  5. access-key: aliyunAccessKey
  6. secret-key: aliyunSecretKey
  7. enable-auto-data-source-proxy: true
  8. data-source-proxy-mode: AT
  9. use-jdk-proxy: false
  10. scan-packages: firstPackage,secondPackage
  11. excludes-for-scanning: firstBeanNameForExclude,secondBeanNameForExclude
  12. excludes-for-auto-proxying: firstClassNameForExclude,secondClassNameForExclude
  13. client:
  14. rm:
  15. async-commit-buffer-limit: 10000
  16. report-retry-count: 5
  17. table-meta-check-enable: false
  18. report-success-enable: false
  19. saga-branch-register-enable: false
  20. saga-json-parser: fastjson
  21. saga-retry-persist-mode-update: false
  22. saga-compensate-persist-mode-update: false
  23. tcc-action-interceptor-order: -2147482648 #Ordered.HIGHEST_PRECEDENCE + 1000
  24. sql-parser-type: druid
  25. lock:
  26. retry-interval: 10
  27. retry-times: 30
  28. retry-policy-branch-rollback-on-conflict: true
  29. tm:
  30. commit-retry-count: 5
  31. rollback-retry-count: 5
  32. default-global-transaction-timeout: 60000
  33. degrade-check: false
  34. degrade-check-period: 2000
  35. degrade-check-allow-times: 10
  36. interceptor-order: -2147482648 #Ordered.HIGHEST_PRECEDENCE + 1000
  37. undo:
  38. data-validation: true
  39. log-serialization: jackson
  40. log-table: undo_log
  41. only-care-update-columns: true
  42. compress:
  43. enable: true
  44. type: zip
  45. threshold: 64k
  46. load-balance:
  47. type: RandomLoadBalance
  48. virtual-nodes: 10
  49. service:
  50. vgroup-mapping:
  51. default_tx_group: default
  52. grouplist:
  53. default: 127.0.0.1:8091
  54. enable-degrade: false
  55. disable-global-transaction: false
  56. transport:
  57. shutdown:
  58. wait: 3
  59. thread-factory:
  60. boss-thread-prefix: NettyBoss
  61. worker-thread-prefix: NettyServerNIOWorker
  62. server-executor-thread-prefix: NettyServerBizHandler
  63. share-boss-worker: false
  64. client-selector-thread-prefix: NettyClientSelector
  65. client-selector-thread-size: 1
  66. client-worker-thread-prefix: NettyClientWorkerThread
  67. worker-thread-size: default
  68. boss-thread-size: 1
  69. type: TCP
  70. server: NIO
  71. heartbeat: true
  72. serialization: seata
  73. compressor: none
  74. enable-tm-client-batch-send-request: false
  75. enable-rm-client-batch-send-request: true
  76. rpc-rm-request-timeout: 15000
  77. rpc-tm-request-timeout: 30000
  78. config:
  79. type: file
  80. consul:
  81. server-addr: 127.0.0.1:8500
  82. apollo:
  83. apollo-meta: http://192.168.1.204:8801
  84. app-id: seata-server
  85. namespace: application
  86. apollo-accesskey-secret:
  87. etcd3:
  88. server-addr: http://localhost:2379
  89. nacos:
  90. namespace:
  91. server-addr: 127.0.0.1:8848
  92. group: SEATA_GROUP
  93. username:
  94. password:
  95. context-path:
  96. ##if use MSE Nacos with auth, mutex with username/password attribute
  97. #access-key:
  98. #secret-key:
  99. data-id: seata.properties
  100. zk:
  101. server-addr: 127.0.0.1:2181
  102. session-timeout: 6000
  103. connect-timeout: 2000
  104. username:
  105. password:
  106. node-path: /seata/seata.properties
  107. custom:
  108. name:
  109. registry:
  110. type: file
  111. file:
  112. name: file.conf
  113. consul:
  114. server-addr: 127.0.0.1:8500
  115. acl-token:
  116. etcd3:
  117. server-addr: http://localhost:2379
  118. eureka:
  119. weight: 1
  120. service-url: http://localhost:8761/eureka
  121. nacos:
  122. application: seata-server
  123. server-addr: 127.0.0.1:8848
  124. group : "SEATA_GROUP"
  125. namespace:
  126. username:
  127. password:
  128. context-path:
  129. ##if use MSE Nacos with auth, mutex with username/password attribute
  130. #access-key:
  131. #secret-key:
  132. ##if use Nacos naming meta-data for SLB service registry, specify nacos address pattern rules here
  133. #slbPattern =
  134. redis:
  135. server-addr: localhost:6379
  136. db: 0
  137. password:
  138. timeout: 0
  139. sofa:
  140. server-addr: 127.0.0.1:9603
  141. region: DEFAULT_ZONE
  142. datacenter: DefaultDataCenter
  143. group: SEATA_GROUP
  144. address-wait-time: 3000
  145. application: default
  146. zk:
  147. server-addr: 127.0.0.1:2181
  148. session-timeout: 6000
  149. connect-timeout: 2000
  150. username:
  151. password:
  152. custom:
  153. name:
  154. log:
  155. exception-rate: 100
  156. tcc:
  157. fence:
  158. log-table-name: tcc_fence_log
  159. clean-period: 1h
  160. saga:
  161. enabled: false
  162. state-machine:
  163. table-prefix: seata_
  164. enable-async: false
  165. async-thread-pool:
  166. core-pool-size: 1
  167. max-pool-size: 20
  168. keep-alive-time: 60
  169. trans-operation-timeout: 1800000
  170. service-invoke-timeout: 300000
  171. auto-register-resources: true
  172. resources:
  173. - classpath*:seata/saga/statelang/**/*.json
  174. default-tenant-id: 000001
  175. charset: UTF-8