application.example.yml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. server:
  18. port: 8091
  19. spring:
  20. application:
  21. name: seata-server
  22. main:
  23. web-application-type: none
  24. logging:
  25. config: classpath:logback-spring.xml
  26. file:
  27. path: ${log.home:${user.home}/logs/seata}
  28. extend:
  29. logstash-appender:
  30. # off by default
  31. enabled: false
  32. destination: 127.0.0.1:4560
  33. kafka-appender:
  34. # off by default
  35. enabled: false
  36. bootstrap-servers: 127.0.0.1:9092
  37. topic: logback_to_logstash
  38. producer:
  39. acks: 0
  40. linger-ms: 1000
  41. max-block-ms: 0
  42. metric-appender:
  43. # off by default
  44. enabled: false
  45. seata:
  46. config:
  47. # support: nacos 、 consul 、 apollo 、 zk 、 etcd3
  48. type: file
  49. nacos:
  50. server-addr: 127.0.0.1:8848
  51. namespace:
  52. group: SEATA_GROUP
  53. context-path:
  54. ##1.The following configuration is for the open source version of Nacos
  55. username:
  56. password:
  57. ##2.The following configuration is for the MSE Nacos on aliyun
  58. #access-key:
  59. #secret-key:
  60. ##3.The following configuration is used to deploy on Aliyun ECS or ACK without authentication
  61. #ram-role-name:
  62. data-id: seataServer.properties
  63. consul:
  64. server-addr: 127.0.0.1:8500
  65. acl-token:
  66. key: seata.properties
  67. apollo:
  68. appId: seata-server
  69. apollo-meta: http://192.168.1.204:8801
  70. apollo-config-service: http://192.168.1.204:8080
  71. namespace: application
  72. apollo-access-key-secret:
  73. cluster: seata
  74. zk:
  75. server-addr: 127.0.0.1:2181
  76. session-timeout: 6000
  77. connect-timeout: 2000
  78. username:
  79. password:
  80. node-path: /seata/seata.properties
  81. etcd3:
  82. server-addr: http://localhost:2379
  83. key: seata.properties
  84. registry:
  85. # support: nacos 、 eureka 、 redis 、 zk 、 consul 、 etcd3 、 sofa 、 seata
  86. type: file
  87. preferred-networks: 30.240.*
  88. metadata:
  89. weight: 100
  90. seata:
  91. server-addr: 127.0.0.1:8081
  92. cluster: default
  93. namespace: public
  94. heartbeat-period: 5000
  95. metadata-max-age-ms: 30000
  96. username: seata
  97. password: seata
  98. tokenValidityInMilliseconds: 1740000
  99. nacos:
  100. application: seata-server
  101. server-addr: 127.0.0.1:8848
  102. group: SEATA_GROUP
  103. namespace:
  104. cluster: default
  105. context-path:
  106. ##1.The following configuration is for the open source version of Nacos
  107. username:
  108. password:
  109. ##2.The following configuration is for the MSE Nacos on aliyun
  110. #access-key:
  111. #secret-key:
  112. ##3.The following configuration is used to deploy on Aliyun ECS or ACK without authentication
  113. #ram-role-name:
  114. eureka:
  115. service-url: http://localhost:8761/eureka
  116. application: default
  117. weight: 1
  118. redis:
  119. server-addr: localhost:6379
  120. db: 0
  121. password:
  122. cluster: default
  123. timeout: 0
  124. zk:
  125. cluster: default
  126. server-addr: 127.0.0.1:2181
  127. session-timeout: 6000
  128. connect-timeout: 2000
  129. username:
  130. password:
  131. consul:
  132. cluster: default
  133. server-addr: 127.0.0.1:8500
  134. acl-token:
  135. etcd3:
  136. cluster: default
  137. server-addr: http://localhost:2379
  138. sofa:
  139. server-addr: 127.0.0.1:9603
  140. application: default
  141. region: DEFAULT_ZONE
  142. datacenter: DefaultDataCenter
  143. cluster: default
  144. group: SEATA_GROUP
  145. address-wait-time: 3000
  146. server:
  147. service-port: 8091 # If not configured, the default is '${server.port}'
  148. max-commit-retry-timeout: -1
  149. max-rollback-retry-timeout: -1
  150. rollback-failed-unlock-enable: false
  151. enable-check-auth: true
  152. enable-parallel-request-handle: true
  153. enable-parallel-handle-branch: false
  154. retry-dead-threshold: 70000
  155. xaer-nota-retry-timeout: 60000
  156. enableParallelRequestHandle: true
  157. applicationDataLimitCheck: true
  158. applicationDataLimit: 64000
  159. recovery:
  160. committing-retry-period: 1000
  161. async-committing-retry-period: 1000
  162. rollbacking-retry-period: 1000
  163. end-status-retry-period: 1000
  164. timeout-retry-period: 1000
  165. undo:
  166. log-save-days: 7
  167. log-delete-period: 86400000
  168. session:
  169. branch-async-queue-size: 5000 #branch async remove queue size
  170. enable-branch-async-remove: false #enable to asynchronous remove branchSession
  171. ratelimit:
  172. enable: false
  173. bucketTokenNumPerSecond: 999999
  174. bucketTokenMaxNum: 999999
  175. bucketTokenInitialNum: 999999
  176. store:
  177. # support: file 、 db 、 redis 、 raft
  178. mode: file
  179. session:
  180. mode: file
  181. lock:
  182. mode: file
  183. file:
  184. dir: sessionStore
  185. max-branch-session-size: 16384
  186. max-global-session-size: 512
  187. file-write-buffer-cache-size: 16384
  188. session-reload-read-size: 100
  189. flush-disk-mode: async
  190. db:
  191. datasource: druid
  192. db-type: mysql
  193. driver-class-name: com.mysql.jdbc.Driver
  194. url: jdbc:mysql://127.0.0.1:3306/seata?rewriteBatchedStatements=true
  195. user: mysql
  196. password: mysql
  197. min-conn: 10
  198. max-conn: 100
  199. global-table: global_table
  200. branch-table: branch_table
  201. lock-table: lock_table
  202. distributed-lock-table: distributed_lock
  203. vgroup-table: vgroup_table
  204. query-limit: 1000
  205. max-wait: 5000
  206. druid:
  207. time-between-eviction-runs-millis: 120000
  208. min-evictable-idle-time-millis: 300000
  209. test-while-idle: true
  210. test-on-borrow: false
  211. keep-alive: false
  212. hikari:
  213. idle-timeout: 600000
  214. keepalive-time: 120000
  215. max-lifetime: 1800000
  216. validation-timeout: 5000
  217. dbcp:
  218. time-between-eviction-runs-millis: 120000
  219. min-evictable-idle-time-millis: 300000
  220. test-while-idle: true
  221. test-on-borrow: false
  222. redis:
  223. mode: single
  224. # support: lua 、 pipeline
  225. type: lua
  226. database: 0
  227. min-conn: 10
  228. max-conn: 100
  229. password:
  230. max-total: 100
  231. query-limit: 1000
  232. single:
  233. host: 127.0.0.1
  234. port: 6379
  235. sentinel:
  236. master-name:
  237. sentinel-hosts:
  238. sentinel-password:
  239. metrics:
  240. enabled: false
  241. registry-type: compact
  242. exporter-list: prometheus
  243. exporter-prometheus-port: 9898
  244. transport:
  245. rpc-tc-request-timeout: 15000
  246. enable-tc-server-batch-send-response: false
  247. # HTTP thread pool
  248. min-http-pool-size: 10
  249. max-http-pool-size: 100
  250. max-http-task-queue-size: 1000
  251. http-pool-keep-alive-time: 500
  252. shutdown:
  253. wait: 3
  254. thread-factory:
  255. boss-thread-prefix: NettyBoss
  256. worker-thread-prefix: NettyServerNIOWorker
  257. boss-thread-size: 1