| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- #
- # Licensed to the Apache Software Foundation (ASF) under one or more
- # contributor license agreements. See the NOTICE file distributed with
- # this work for additional information regarding copyright ownership.
- # The ASF licenses this file to You under the Apache License, Version 2.0
- # (the "License"); you may not use this file except in compliance with
- # the License. You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- #
- server:
- port: 8091
- spring:
- application:
- name: seata-server
- main:
- web-application-type: none
- logging:
- config: classpath:logback-spring.xml
- file:
- path: ${log.home:${user.home}/logs/seata}
- extend:
- logstash-appender:
- # off by default
- enabled: false
- destination: 127.0.0.1:4560
- kafka-appender:
- # off by default
- enabled: false
- bootstrap-servers: 127.0.0.1:9092
- topic: logback_to_logstash
- producer:
- acks: 0
- linger-ms: 1000
- max-block-ms: 0
- metric-appender:
- # off by default
- enabled: false
- seata:
- config:
- # support: nacos 、 consul 、 apollo 、 zk 、 etcd3
- type: file
- nacos:
- server-addr: 127.0.0.1:8848
- namespace:
- group: SEATA_GROUP
- username:
- password:
- context-path:
- ##if use MSE Nacos with auth, mutex with username/password attribute
- #access-key:
- #secret-key:
- data-id: seataServer.properties
- consul:
- server-addr: 127.0.0.1:8500
- acl-token:
- key: seata.properties
- apollo:
- appId: seata-server
- apollo-meta: http://192.168.1.204:8801
- apollo-config-service: http://192.168.1.204:8080
- namespace: application
- apollo-access-key-secret:
- cluster: seata
- zk:
- server-addr: 127.0.0.1:2181
- session-timeout: 6000
- connect-timeout: 2000
- username:
- password:
- node-path: /seata/seata.properties
- etcd3:
- server-addr: http://localhost:2379
- key: seata.properties
- registry:
- # support: nacos 、 eureka 、 redis 、 zk 、 consul 、 etcd3 、 sofa
- type: file
- preferred-networks: 30.240.*
- seata:
- server-addr: 127.0.0.1:8081
- cluster: default
- namespace: public
- heartbeat-period: 5000
- metadata-max-age-ms: 30000
- username: seata
- password: seata
- tokenValidityInMilliseconds: 1740000
- server:
- raft:
- group: default
- server-addr:
- snapshot-interval: 600
- apply-batch: 32
- max-append-bufferSize: 262144
- max-replicator-inflight-msgs: 256
- disruptor-buffer-size: 16384
- election-timeout-ms: 1000
- reporter-enabled: false
- reporter-initial-delay: 60
- serialization: jackson
- compressor: none
- sync: true # sync log&snapshot to disk
- # raft nodes ssl config
- ssl:
- enabled: false
- client:
- keystore:
- path: ssl/cbolt.pfx
- password:
- type: pkcs12
- server:
- keystore:
- path: ssl/bolt.pfx
- password:
- type: pkcs12
- kmf-algorithm: SunX509
- tmf-algorithm: SunX509
- service-port: 8091 #If not configured, the default is '${server.port}'
- max-commit-retry-timeout: -1
- max-rollback-retry-timeout: -1
- rollback-retry-timeout-unlock-enable: false
- enable-check-auth: true
- enable-parallel-request-handle: true
- enable-parallel-handle-branch: false
- retry-dead-threshold: 70000
- xaer-nota-retry-timeout: 60000
- enableParallelRequestHandle: true
- applicationDataLimitCheck: true
- applicationDataLimit: 64000
- recovery:
- committing-retry-period: 1000
- async-committing-retry-period: 1000
- rollbacking-retry-period: 1000
- end-status-retry-period: 1000
- timeout-retry-period: 1000
- undo:
- log-save-days: 7
- log-delete-period: 86400000
- session:
- branch-async-queue-size: 5000 #branch async remove queue size
- enable-branch-async-remove: false #enable to asynchronous remove branchSession
- ratelimit:
- enable: false
- bucketTokenNumPerSecond: 999999
- bucketTokenMaxNum: 999999
- bucketTokenInitialNum: 999999
- store:
- # support: file
- mode: raft
- file:
- dir: sessionStore
- max-branch-session-size: 16384
- max-global-session-size: 512
- file-write-buffer-cache-size: 16384
- session-reload-read-size: 100
- flush-disk-mode: async
- metrics:
- enabled: false
- registry-type: compact
- exporter-list: prometheus
- exporter-prometheus-port: 9898
- transport:
- rpc-tc-request-timeout: 15000
- enable-tc-server-batch-send-response: false
- # HTTP thread pool
- min-http-pool-size: 10
- max-http-pool-size: 100
- max-http-task-queue-size: 1000
- http-pool-keep-alive-time: 500
- shutdown:
- wait: 3
- thread-factory:
- boss-thread-prefix: NettyBoss
- worker-thread-prefix: NettyServerNIOWorker
- boss-thread-size: 1
|