seata-config.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. seata:
  2. enabled: true
  3. tx-service-group: pig_tx_group # 事务群组(可以每个应用独立取名,也可以使用相同的名字)
  4. client:
  5. rm-report-success-enable: true
  6. rm-table-meta-check-enable: false # 自动刷新缓存中的表结构(默认false)
  7. rm-report-retry-count: 5 # 一阶段结果上报TC重试次数(默认5)
  8. rm-async-commit-buffer-limit: 10000 # 异步提交缓存队列长度(默认10000)
  9. rm:
  10. lock:
  11. lock-retry-internal: 10 # 校验或占用全局锁重试间隔(默认10ms)
  12. lock-retry-times: 30 # 校验或占用全局锁重试次数(默认30)
  13. lock-retry-policy-branch-rollback-on-conflict: true # 分支事务与其它全局回滚事务冲突时锁策略(优先释放本地锁让回滚成功)
  14. tm-commit-retry-count: 3 # 一阶段全局提交结果上报TC重试次数(默认1次,建议大于1)
  15. tm-rollback-retry-count: 3 # 一阶段全局回滚结果上报TC重试次数(默认1次,建议大于1)
  16. undo:
  17. data-validation: true # 二阶段回滚镜像校验(默认true开启)
  18. log-serialization: jackson # undo序列化方式(默认jackson 不支持 LocalDateTime)
  19. log-table: undo_log # 自定义undo表名(默认undo_log)
  20. log:
  21. exceptionRate: 100 # 日志异常输出概率(默认100)
  22. support:
  23. spring:
  24. datasource-autoproxy: true
  25. service:
  26. vgroup-mapping:
  27. pig_tx_group: default # TC 集群(必须与seata-server保持一致)
  28. enable-degrade: false # 降级开关
  29. disable-global-transaction: false # 禁用全局事务(默认false)
  30. grouplist:
  31. default: pig-seata:8091
  32. transport:
  33. shutdown:
  34. wait: 3
  35. thread-factory:
  36. boss-thread-prefix: NettyBoss
  37. worker-thread-prefix: NettyServerNIOWorker
  38. server-executor-thread-prefix: NettyServerBizHandler
  39. share-boss-worker: false
  40. client-selector-thread-prefix: NettyClientSelector
  41. client-selector-thread-size: 1
  42. client-worker-thread-prefix: NettyClientWorkerThread
  43. type: TCP
  44. server: NIO
  45. heartbeat: true
  46. serialization: seata
  47. compressor: none
  48. enable-client-batch-send-request: true # 客户端事务消息请求是否批量合并发送(默认true)
  49. registry:
  50. file:
  51. name: file.conf
  52. type: file
  53. config:
  54. file:
  55. name: file.conf
  56. type: file