spring cloud seata 参数配置

拜拜、爱过 提交于 2020-02-28 18:43:46

spring cloud seata 参数配置

 

*****************************

公共配置

 

transport.serialization:cleint、server通信编解码方式,可为:seata(默认)、protobuf、kryo、hession

transport.compressor:cleint、server数据压缩方式,可为:none(默认)、gzip

transport.heartbeat:client、server心跳检测开关,默认为true

 

registry.type:注册中心类型,可为:file、consul、nacos、zookeeper等

config.type:配置中心类型,可为:file、consul、nacos、zookeeper等

 

 

*****************************

server 端配置

 

registry.type:注册中心类型,可为:file、consul、nacos、zookeeper等

config.type:配置中心类型,可为:file、consul、nacos、zookeeper等

 

store.mode:事务存储模式,可为:file、db

store.db.driverClassName:存储模式为db时,使用的数据库驱动类

store.db.url:数据库连接url

store.db.user:数据库用户名

store.db.password:数据库密码

 

server.undo.logSaveDays:undo保存天数,默认为7天

server.undo.logDeletePeriod:undo清理线程间隔时间,默认为86400000毫秒(1天)

 

server.maxCommitRetryTimeout:二阶段提交重试超时时长,单位ms、s、m、h、d,默认为-1,可无限重试

server.maxRollbackRetryTimeout:二阶段回滚超时时间,单位ms、s、m、h、d,默认为-1,可无限重试

 

server.recovery.committingRetryPeriod:二阶段提交未完成全局事务重试间隔,默认为1000毫秒

server.recovery.asynCommittingRetryPeriod:二阶段异步提交未完成全局事务重试间隔,默认为1000毫秒

server.recovery.rollbackingRetryPeriod:二阶段回滚重试间隔,默认为1000毫秒

server.recovery.timeoutRetryPeriod:超时状态检测重试线程间隔时间,默认为1000毫秒

 

store.mode:事务存储模式,可为file、db

store.file.dir:存储模式为file时,指定存储路径

 

store.db.datasource:存储模式为db时,数据库连接池,默认为dbcp

store.db.dbType:数据类型,默认为mysql

store.db.driverClassName:数据库驱动,默认为com.mysql.jdbc.Driver

store.db.url:数据库连接地址

store.db.user:数据库用户名

store.db.password:数据库密码

store.db.minConn:数据库最小连接数

store.db.maxConn:数据库最大连接数

store.db.globalTable:全局事务表名,默认为global_table

store.db.branchTable:分支事务表名,默认为branch_table

store.db.lockTable:全局锁表名,默认为lock_table

store.db.queryLimit:全局事务最大查询数,默认为100

 

metrics.enabled

metrics.registryType

metrics.exporterList

metrics.exporterPrometheusPort

 

 

*****************************

client 端配置

 

registry.type:注册中心类型,可为:file、consul、nacos、zookeeper等

config.type:配置中心类型,可为:file、consul、nacos、zookeeper等

 

seata.enabled

seata.enableAutoDataSourceProxy

seata.useJdkProxy

transport.enableClientBatchSendRequest

client.log.exceptionRate

 

service.vgroupMapping.my_test_tx_group

service.default.grouplist

 

service.disableGlobalTransaction

service.enableDegrade

 

client.rm.reportSuccessEnable

client.rm.asynCommitBufferLimit

client.rm.lock.retryInterval

client.rm.lock.retryTimes

client.rm.lock.retryPolicyBranchRollbackOnConflict

client.rm.reportRetryCount

client.rm.tableMetaCheckEnable

client.tm.commitRetryCount

client.tm.rollbackRetryCount

 

client.undo.dataValidation

client.undo.logSerialization

client.undo.logTable

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!