You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

seatago.yml 5.0 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # time 时间单位对应的是 time.Duration(1)
  16. seata:
  17. enabled: true
  18. # application id
  19. application-id: applicationName
  20. # service group
  21. tx-service-group: default_tx_group
  22. access-key: aliyunAccessKey
  23. secret-key: aliyunSecretKey
  24. enable-auto-data-source-proxy: true
  25. data-source-proxy-mode: AT
  26. client:
  27. rm:
  28. # Maximum cache length of asynchronous queue
  29. async-commit-buffer-limit: 10000
  30. # The maximum number of retries when report reports the status
  31. report-retry-count: 5
  32. # The interval for regularly checking the metadata of the db(AT)
  33. table-meta-check-enable: false
  34. # Whether to report the status if the transaction is successfully executed(AT)
  35. report-success-enable: false
  36. # Whether to allow regular check of db metadata(AT)
  37. saga-branch-register-enable: false
  38. saga-json-parser: fastjson
  39. saga-retry-persist-mode-update: false
  40. saga-compensate-persist-mode-update: false
  41. #Ordered.HIGHEST_PRECEDENCE + 1000 #
  42. tcc-action-interceptor-order: -2147482648
  43. # Parse SQL parser selection
  44. sql-parser-type: druid
  45. lock:
  46. retry-interval: 30s
  47. retry-times: 10
  48. retry-policy-branch-rollback-on-conflict: true
  49. tm:
  50. commit-retry-count: 5
  51. rollback-retry-count: 5
  52. default-global-transaction-timeout: 60s
  53. degrade-check: false
  54. degrade-check-period: 2000
  55. degrade-check-allow-times: 10s
  56. interceptor-order: -2147482648
  57. undo:
  58. # Judge whether the before image and after image are the same,If it is the same, undo will not be recorded
  59. data-validation: true
  60. # Serialization method
  61. log-serialization: jackson
  62. # undo log table name
  63. log-table: undo_log
  64. # Only store modified fields
  65. only-care-update-columns: true
  66. compress:
  67. # Whether compression is required
  68. enable: true
  69. # Compression type
  70. type: zip
  71. # Compression threshold Unit: k
  72. threshold: 64k
  73. load-balance:
  74. type: RandomLoadBalance
  75. virtual-nodes: 10
  76. service:
  77. vgroup-mapping:
  78. # Prefix for Print Log
  79. default_tx_group: default
  80. grouplist:
  81. default: 127.0.0.1:8091
  82. enable-degrade: false
  83. # close the transaction
  84. disable-global-transaction: false
  85. transport:
  86. shutdown:
  87. wait: 3s
  88. # Netty related configurations
  89. # type
  90. type: TCP
  91. server: NIO
  92. heartbeat: true
  93. # Encoding and decoding mode
  94. serialization: seata
  95. # Message compression mode
  96. compressor: none
  97. # Allow batch sending of requests (TM)
  98. enable-tm-client-batch-send-request: false
  99. # Allow batch sending of requests (RM)
  100. enable-rm-client-batch-send-request: true
  101. # RM send request timeout
  102. rpc-rm-request-timeout: 30s
  103. # TM send request timeout
  104. rpc-tm-request-timeout: 30s
  105. # Configuration Center
  106. config:
  107. type: file
  108. file:
  109. name: config.conf
  110. nacos:
  111. namespace: ""
  112. server-addr: 127.0.0.1:8848
  113. group: SEATA_GROUP
  114. username: ""
  115. password: ""
  116. ##if use MSE Nacos with auth, mutex with username/password attribute
  117. #access-key: ""
  118. #secret-key: ""
  119. data-id: seata.properties
  120. # Registration Center
  121. registry:
  122. type: file
  123. file:
  124. name: registry.conf
  125. nacos:
  126. application: seata-server
  127. server-addr: 127.0.0.1:8848
  128. group: "SEATA_GROUP"
  129. namespace: ""
  130. username: ""
  131. password: ""
  132. ##if use MSE Nacos with auth, mutex with username/password attribute #
  133. #access-key: "" #
  134. #secret-key: "" #
  135. log:
  136. exception-rate: 100
  137. tcc:
  138. fence:
  139. # Anti suspension table name
  140. log-table-name: tcc_fence_log_test
  141. clean-period: 60s
  142. # getty configuration
  143. getty:
  144. reconnect-interval: 0
  145. # temporary not supported connection-num
  146. connection-num: 1
  147. session:
  148. compress-encoding: false
  149. tcp-no-delay: true
  150. tcp-keep-alive: true
  151. keep-alive-period: 120s
  152. tcp-r-buf-size: 262144
  153. tcp-w-buf-size: 65536
  154. tcp-read-timeout: 1s
  155. tcp-write-timeout: 5s
  156. wait-timeout: 1s
  157. max-msg-len: 16498688
  158. session-name: client_test
  159. cron-period: 1s