erp-java/seata/client/seata.yml

81 lines
2.0 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# =========================================
# Seata Client 全局配置
# 所有微服务通用配置
# =========================================
seata:
enabled: true
# Seata事务组名称用于TC集群识别
tx-service-group: default_tx_group
# 服务配置块
service:
# 虚拟组和集群映射
vgroup-mapping:
# key: 事务组名, value: TC集群名
default_tx_group: default
# 全局事务超时时间(毫秒)
global-session-timeout: 60000
# 分支事务异步提交阈值
async-commit-timeout: 10000
# 锁重试间隔(毫秒)
lock-retry-interval: 30
# 锁重试次数
lock-retry-times: 100
# 锁重试策略
lock-retry-policy-branch-rollback-on-conflict: true
# 客户端配置
client:
rm:
# 异步提交重试次数
async-commit-retry-count: 5
# 锁查询重试次数
lock-retry-count: 10
# TCC模式Fence隔离级别
tcc fence isolation level: READ_COMMITTED
# 是否上报成功事务
report-success-enable: false
# 事务信息上报间隔
report-retry-count: 5
# 表结构检查
table-meta-check-enable: false
tm:
# 提交重试次数
commit-retry-count: 5
# 回滚重试次数
rollback-retry-count: 5
# 降级检查
degrade-check: false
degrade-check-period: 2000
degrade-check-rpc-timeout: 3000
degrade-max-rpc-timeout: 5000
undo:
# 数据校验
data-validation: true
# 日志序列化
log-serialization: jackson
# Undo Log表名
log-table: undo_log
# Undo Log保留天数
log-retention-days: 7
# 注册中心配置
registry:
type: file
file:
name: file.conf
# 配置中心配置
config:
type: file
file:
name: file.conf
# 压缩配置
compression:
enable: true
type: zip
threshold: 64k
# 故障恢复
failover:
# 降级策略
degrade-strategy: auto
# 恢复重试次数
recovery-retry-count: 3