application.example.yml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. server:
  15. port: 7091
  16. spring:
  17. application:
  18. name: seata-server
  19. logging:
  20. config: classpath:logback-spring.xml
  21. file:
  22. path: ${user.home}/logs/seata
  23. extend:
  24. logstash-appender:
  25. destination: 127.0.0.1:4560
  26. kafka-appender:
  27. bootstrap-servers: 127.0.0.1:9092
  28. topic: logback_to_logstash
  29. seata:
  30. config:
  31. # support: nacos 、 consul 、 apollo 、 zk 、 etcd3
  32. type: file
  33. nacos:
  34. server-addr: 127.0.0.1:8848
  35. namespace:
  36. group: SEATA_GROUP
  37. username:
  38. password:
  39. context-path:
  40. ##if use MSE Nacos with auth, mutex with username/password attribute
  41. #access-key:
  42. #secret-key:
  43. data-id: seataServer.properties
  44. consul:
  45. server-addr: 127.0.0.1:8500
  46. acl-token:
  47. key: seata.properties
  48. apollo:
  49. appId: seata-server
  50. apollo-meta: http://192.168.1.204:8801
  51. apollo-config-service: http://192.168.1.204:8080
  52. namespace: application
  53. apollo-access-key-secret:
  54. cluster: seata
  55. zk:
  56. server-addr: 127.0.0.1:2181
  57. session-timeout: 6000
  58. connect-timeout: 2000
  59. username:
  60. password:
  61. node-path: /seata/seata.properties
  62. etcd3:
  63. server-addr: http://localhost:2379
  64. key: seata.properties
  65. registry:
  66. # support: nacos 、 eureka 、 redis 、 zk 、 consul 、 etcd3 、 sofa
  67. type: file
  68. preferred-networks: 30.240.*
  69. nacos:
  70. application: seata-server
  71. server-addr: 127.0.0.1:8848
  72. group: SEATA_GROUP
  73. namespace:
  74. cluster: default
  75. username:
  76. password:
  77. context-path:
  78. ##if use MSE Nacos with auth, mutex with username/password attribute
  79. #access-key:
  80. #secret-key:
  81. eureka:
  82. service-url: http://localhost:8761/eureka
  83. application: default
  84. weight: 1
  85. redis:
  86. server-addr: localhost:6379
  87. db: 0
  88. password:
  89. cluster: default
  90. timeout: 0
  91. zk:
  92. cluster: default
  93. server-addr: 127.0.0.1:2181
  94. session-timeout: 6000
  95. connect-timeout: 2000
  96. username:
  97. password:
  98. consul:
  99. cluster: default
  100. server-addr: 127.0.0.1:8500
  101. acl-token:
  102. etcd3:
  103. cluster: default
  104. server-addr: http://localhost:2379
  105. sofa:
  106. server-addr: 127.0.0.1:9603
  107. application: default
  108. region: DEFAULT_ZONE
  109. datacenter: DefaultDataCenter
  110. cluster: default
  111. group: SEATA_GROUP
  112. address-wait-time: 3000
  113. server:
  114. service-port: 8091 #If not configured, the default is '${server.port} + 1000'
  115. max-commit-retry-timeout: -1
  116. max-rollback-retry-timeout: -1
  117. rollback-retry-timeout-unlock-enable: false
  118. enable-check-auth: true
  119. enable-parallel-request-handle: true
  120. retry-dead-threshold: 130000
  121. xaer-nota-retry-timeout: 60000
  122. enableParallelRequestHandle: true
  123. recovery:
  124. committing-retry-period: 1000
  125. async-committing-retry-period: 1000
  126. rollbacking-retry-period: 1000
  127. timeout-retry-period: 1000
  128. undo:
  129. log-save-days: 7
  130. log-delete-period: 86400000
  131. session:
  132. branch-async-queue-size: 5000 #branch async remove queue size
  133. enable-branch-async-remove: false #enable to asynchronous remove branchSession
  134. store:
  135. # support: file 、 db 、 redis
  136. mode: file
  137. session:
  138. mode: file
  139. lock:
  140. mode: file
  141. file:
  142. dir: sessionStore
  143. max-branch-session-size: 16384
  144. max-global-session-size: 512
  145. file-write-buffer-cache-size: 16384
  146. session-reload-read-size: 100
  147. flush-disk-mode: async
  148. db:
  149. datasource: druid
  150. db-type: mysql
  151. driver-class-name: com.mysql.jdbc.Driver
  152. url: jdbc:mysql://127.0.0.1:3306/seata?rewriteBatchedStatements=true
  153. user: mysql
  154. password: mysql
  155. min-conn: 10
  156. max-conn: 100
  157. global-table: global_table
  158. branch-table: branch_table
  159. lock-table: lock_table
  160. distributed-lock-table: distributed_lock
  161. query-limit: 1000
  162. max-wait: 5000
  163. redis:
  164. mode: single
  165. database: 0
  166. min-conn: 10
  167. max-conn: 100
  168. password:
  169. max-total: 100
  170. query-limit: 1000
  171. single:
  172. host: 127.0.0.1
  173. port: 6379
  174. sentinel:
  175. master-name:
  176. sentinel-hosts:
  177. metrics:
  178. enabled: false
  179. registry-type: compact
  180. exporter-list: prometheus
  181. exporter-prometheus-port: 9898
  182. transport:
  183. rpc-tc-request-timeout: 15000
  184. enable-tc-server-batch-send-response: false
  185. shutdown:
  186. wait: 3
  187. thread-factory:
  188. boss-thread-prefix: NettyBoss
  189. worker-thread-prefix: NettyServerNIOWorker
  190. boss-thread-size: 1