application.raft.example.yml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. username:
  54. password:
  55. context-path:
  56. ##if use MSE Nacos with auth, mutex with username/password attribute
  57. #access-key:
  58. #secret-key:
  59. data-id: seataServer.properties
  60. consul:
  61. server-addr: 127.0.0.1:8500
  62. acl-token:
  63. key: seata.properties
  64. apollo:
  65. appId: seata-server
  66. apollo-meta: http://192.168.1.204:8801
  67. apollo-config-service: http://192.168.1.204:8080
  68. namespace: application
  69. apollo-access-key-secret:
  70. cluster: seata
  71. zk:
  72. server-addr: 127.0.0.1:2181
  73. session-timeout: 6000
  74. connect-timeout: 2000
  75. username:
  76. password:
  77. node-path: /seata/seata.properties
  78. etcd3:
  79. server-addr: http://localhost:2379
  80. key: seata.properties
  81. registry:
  82. # support: nacos 、 eureka 、 redis 、 zk 、 consul 、 etcd3 、 sofa
  83. type: file
  84. preferred-networks: 30.240.*
  85. seata:
  86. server-addr: 127.0.0.1:8081
  87. cluster: default
  88. namespace: public
  89. heartbeat-period: 5000
  90. metadata-max-age-ms: 30000
  91. username: seata
  92. password: seata
  93. tokenValidityInMilliseconds: 1740000
  94. server:
  95. raft:
  96. group: default
  97. server-addr:
  98. snapshot-interval: 600
  99. apply-batch: 32
  100. max-append-bufferSize: 262144
  101. max-replicator-inflight-msgs: 256
  102. disruptor-buffer-size: 16384
  103. election-timeout-ms: 1000
  104. reporter-enabled: false
  105. reporter-initial-delay: 60
  106. serialization: jackson
  107. compressor: none
  108. sync: true # sync log&snapshot to disk
  109. # raft nodes ssl config
  110. ssl:
  111. enabled: false
  112. client:
  113. keystore:
  114. path: ssl/cbolt.pfx
  115. password:
  116. type: pkcs12
  117. server:
  118. keystore:
  119. path: ssl/bolt.pfx
  120. password:
  121. type: pkcs12
  122. kmf-algorithm: SunX509
  123. tmf-algorithm: SunX509
  124. service-port: 8091 #If not configured, the default is '${server.port}'
  125. max-commit-retry-timeout: -1
  126. max-rollback-retry-timeout: -1
  127. rollback-retry-timeout-unlock-enable: false
  128. enable-check-auth: true
  129. enable-parallel-request-handle: true
  130. enable-parallel-handle-branch: false
  131. retry-dead-threshold: 70000
  132. xaer-nota-retry-timeout: 60000
  133. enableParallelRequestHandle: true
  134. applicationDataLimitCheck: true
  135. applicationDataLimit: 64000
  136. recovery:
  137. committing-retry-period: 1000
  138. async-committing-retry-period: 1000
  139. rollbacking-retry-period: 1000
  140. end-status-retry-period: 1000
  141. timeout-retry-period: 1000
  142. undo:
  143. log-save-days: 7
  144. log-delete-period: 86400000
  145. session:
  146. branch-async-queue-size: 5000 #branch async remove queue size
  147. enable-branch-async-remove: false #enable to asynchronous remove branchSession
  148. ratelimit:
  149. enable: false
  150. bucketTokenNumPerSecond: 999999
  151. bucketTokenMaxNum: 999999
  152. bucketTokenInitialNum: 999999
  153. store:
  154. # support: file
  155. mode: raft
  156. file:
  157. dir: sessionStore
  158. max-branch-session-size: 16384
  159. max-global-session-size: 512
  160. file-write-buffer-cache-size: 16384
  161. session-reload-read-size: 100
  162. flush-disk-mode: async
  163. metrics:
  164. enabled: false
  165. registry-type: compact
  166. exporter-list: prometheus
  167. exporter-prometheus-port: 9898
  168. transport:
  169. rpc-tc-request-timeout: 15000
  170. enable-tc-server-batch-send-response: false
  171. # HTTP thread pool
  172. min-http-pool-size: 10
  173. max-http-pool-size: 100
  174. max-http-task-queue-size: 1000
  175. http-pool-keep-alive-time: 500
  176. shutdown:
  177. wait: 3
  178. thread-factory:
  179. boss-thread-prefix: NettyBoss
  180. worker-thread-prefix: NettyServerNIOWorker
  181. boss-thread-size: 1