SpringCloud Alibaba Seata處理分散式事務
transport {
# tcp udt unix-domain-socket
type = "TCP"
#NIO NATIVE
server = "NIO"
#enable heartbeat
heartbeat = true
#thread factory for netty
thread-factory {
boss-thread-prefix = "NettyBoss"
worker-thread-prefix = "NettyServerNIOWorker"
server-executor-thread-prefix = "NettyServerBizHandler"
share-boss-worker = false
client-selector-thread-prefix = "NettyClientSelector"
client-selector-thread-size = 1
client-worker-thread-prefix = "NettyClientWorkerThread"
# netty boss thread size,will not be used for UDT
boss-thread-size = 1
#auto default pin or 8
worker-thread-size = 8
}
shutdown {
# when destroy server, wait seconds
wait = 3
}
serialization = "seata"
compressor = "none"
}
service {
vgroup_mapping.fsp_tx_group = "default"
default.grouplist = "127.0.0.1:8091"
enableDegrade = false
disable = false
max.commit.retry.timeout = "-1"
max.rollback.retry.timeout = "-1"
disableGlobalTransaction = false
}
client {
async.commit.buffer.limit = 10000
lock {
retry.internal = 10
retry.times = 30
}
report.retry.count = 5
tm.commit.retry.count = 1
tm.rollback.retry.count = 1
}
## transaction log store
store {
## store mode: file 、 db
mode = "db"
## file store
file {
dir = "sessionStore"
# branch session size , if exceeded first try compress lockkey, still exceeded throws exceptions
max-branch-session-size = 16384
# globe session size , if exceeded throws exceptions
max-global-session-size = 512
# file buffer size , if exceeded allocate new buffer
file-write-buffer-cache-size = 16384
# when recover batch read size
session.reload.read_size = 100
# async, sync
flush-disk-mode = async
}
## database store
db {
## the implement of javax.sql.DataSource, such as DruidDataSource(druid)/BasicDataSource(dbcp) etc.
datasource = "dbcp"
## mysql/oracle/h2/oceanbase etc.
db-type = "mysql"
driver-class-name = "com.mysql.jdbc.Driver"
url = "jdbc:mysql://127.0.0.1:3306/seata"
user = "root"
password = "123456"
min-conn = 1
max-conn = 3
global.table = "global_table"
branch.table = "branch_table"
lock-table = "lock_table"
query-limit = 100
}
}
lock {
## the lock store mode: local 、 remote
mode = "remote"
local {
## store locks in user's database
}
remote {
## store locks in the seata's server
}
}
recovery {
#schedule committing retry period in milliseconds
committing-retry-period = 1000
#schedule asyn 外匯跟單gendan5.comcommitting retry period in milliseconds
asyn-committing-retry-period = 1000
#schedule rollbacking retry period in milliseconds
rollbacking-retry-period = 1000
#schedule timeout retry period in milliseconds
timeout-retry-period = 1000
}
transaction {
undo.data.validation = true
undo.log.serialization = "jackson"
undo.log.save.days = 7
#schedule delete expired undo_log in milliseconds
undo.log.delete.period = 86400000
undo.log.table = "undo_log"
}
## metrics settings
metrics {
enabled = false
registry-type = "compact"
# multi exporters use comma divided
exporter-list = "prometheus"
exporter-prometheus-port = 9898
}
support {
## spring
spring {
# auto proxy the DataSource bean
datasource.autoproxy = false
}
}
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69946337/viewspace-2841995/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 分散式事務 —— SpringCloud Alibaba Seata分散式SpringGCCloud
- SpringCloud Alibaba(六) - Seata 分散式事務鎖SpringGCCloud分散式
- springcloud分散式事務處理 LCNSpringGCCloud分散式
- seata 分散式事務分散式
- Spring Cloud Alibaba 使用Seata解決分散式事務SpringCloud分散式
- SpringCloud系列之整合分散式事務Seata應用篇SpringGCCloud分散式
- 分散式事務處理方案,微服事務處理方案分散式
- 微服務分散式事務元件 Seata(一)微服務分散式元件
- Laravel 分散式事務處理Laravel分散式
- 分散式事務故障處理分散式
- 分散式事務~從seata例項來學習分散式事務分散式
- 分散式事務之Seata的AT模型分散式模型
- seata分散式事務AT模式介紹(二)分散式模式
- Seata搭建與分散式事務入門分散式
- 分散式事務(七)之Seata簡介分散式
- SpringCloud(六)分散式事務SpringGCCloud分散式
- Oracle分散式事務典型案例處理Oracle分散式
- 阿里是如何處理分散式事務的阿里分散式
- SQL Server分散式事務處理(MS DTC)SQLServer分散式
- Seata分散式事務TA模式原始碼解讀分散式模式原始碼
- Seata 分散式事務框架 TCC 模式原始碼分析分散式框架模式原始碼
- 分散式事務與Seate框架(2)——Seata實踐分散式框架
- SpringCloud 分散式事務解決方案SpringGCCloud分散式
- ORACLE懸疑分散式事務問題處理Oracle分散式
- SQL Server分散式事務處理(MS DTC)-續SQLServer分散式
- 分散式事務中介軟體Seata的設計原理分散式
- 分散式事務 SEATA-1.4.1 AT模式 配合NACOS 應用分散式模式
- 微服務痛點-基於Dubbo + Seata的分散式事務(AT)模式微服務分散式模式
- 微服務分散式事務解決方案-開源軟體seata微服務分散式
- Seata 無侵入式分散式事務服務的實現基石-JDBC篇分散式JDBC
- 分散式系列七: 分散式事務理論分散式
- SpringCloud+RocketMQ實現分散式事務SpringGCCloudMQ分散式
- 請教分散式事務的具體處理:急!!!!分散式
- Spring Boot 整合 Seata 解決分散式事務問題Spring Boot分散式
- 分散式事務框架 seata-golang 通訊模型詳解分散式框架Golang模型
- 基於Seata探尋分散式事務的實現方案分散式
- 微服務痛點-基於Dubbo + Seata的分散式事務(TCC模式)微服務分散式模式
- 微服務架構 | 11.1 整合 Seata AT 模式實現分散式事務微服務架構模式分散式