| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- #For details about configuration items, see https://seata.io/zh-cn/docs/user/configurations.html
- #Transport configuration, for client and server
- transport.type=TCP
- transport.server=NIO
- transport.heartbeat=true
- transport.enableTmClientBatchSendRequest=false
- transport.enableRmClientBatchSendRequest=true
- transport.enableTcServerBatchSendResponse=false
- transport.rpcRmRequestTimeout=30000
- transport.rpcTmRequestTimeout=30000
- transport.rpcTcRequestTimeout=30000
- transport.threadFactory.bossThreadPrefix=NettyBoss
- transport.threadFactory.workerThreadPrefix=NettyServerNIOWorker
- transport.threadFactory.serverExecutorThreadPrefix=NettyServerBizHandler
- transport.threadFactory.shareBossWorker=false
- transport.threadFactory.clientSelectorThreadPrefix=NettyClientSelector
- transport.threadFactory.clientSelectorThreadSize=1
- transport.threadFactory.clientWorkerThreadPrefix=NettyClientWorkerThread
- transport.threadFactory.bossThreadSize=1
- transport.threadFactory.workerThreadSize=default
- transport.shutdown.wait=3
- transport.serialization=seata
- transport.compressor=none
- #Transaction routing rules configuration, only for the client
- # 此处的mygroup名字可以自定义,只修改这个值即可
- # 分布式事务涉及到的服务:注册名字为:service.vgroup_mapping.{namespace}-seata-service-group=default
- service.vgroupMapping.default_tx_group=default
- service.vgroup_mapping.default_tx_group=default
- service.vgroup_mapping.example-seata-service-group=default
- service.vgroup_mapping.file-seata-service-group=default
- service.vgroup_mapping.system-seata-service-group=default
- service.vgroup_mapping.message-seata-service-group=default
- #service.vgroup_mapping.example-seata-service-group=default
- #service.vgroup_mapping.example-seata-service-group=default
- # 分布式事务指定的tx群组
- #grouplist为访问seata服务器的地址和端口(仅注册中心为file时使用),8091是默认端口,
- #service.vgroupMapping.calvin_test_tx_group=default
- #If you use a registry, you can ignore it
- #service.default.grouplist=127.0.0.1:8091
- #service.default.grouplist=10.10.10.5:18091
- service.enableDegrade=false
- service.disableGlobalTransaction=false
- #Transaction rule configuration, only for the client
- client.rm.asyncCommitBufferLimit=10000
- client.rm.lock.retryInterval=10
- client.rm.lock.retryTimes=30
- client.rm.lock.retryPolicyBranchRollbackOnConflict=true
- client.rm.reportRetryCount=5
- client.rm.tableMetaCheckEnable=true
- client.rm.tableMetaCheckerInterval=60000
- client.rm.sqlParserType=druid
- client.rm.reportSuccessEnable=false
- client.rm.sagaBranchRegisterEnable=false
- client.rm.sagaJsonParser=fastjson
- client.rm.tccActionInterceptorOrder=-2147482648
- client.tm.commitRetryCount=5
- client.tm.rollbackRetryCount=5
- client.tm.defaultGlobalTransactionTimeout=60000
- client.tm.degradeCheck=false
- client.tm.degradeCheckAllowTimes=10
- client.tm.degradeCheckPeriod=2000
- client.tm.interceptorOrder=-2147482648
- client.undo.dataValidation=true
- client.undo.logSerialization=jackson
- client.undo.onlyCareUpdateColumns=true
- server.undo.logSaveDays=7
- server.undo.logDeletePeriod=86400000
- client.undo.logTable=undo_log
- client.undo.compress.enable=true
- client.undo.compress.type=zip
- client.undo.compress.threshold=64k
- #For TCC transaction mode
- tcc.fence.logTableName=tcc_fence_log
- tcc.fence.cleanPeriod=1h
- #Log rule configuration, for client and server
- log.exceptionRate=100
- #Transaction storage configuration, only for the server. The file, db, and redis configuration values are optional.
- # 默认为file,一定要改为db,我们自己的服务启动会连接不到seata
- store.mode=db
- store.lock.mode=db
- store.session.mode=db
- #Used for password encryption
- #These configurations are required if the `store mode` is `db`. If `store.mode,store.lock.mode,store.session.mode` are not equal to `db`, you can remove the configuration block.
- # 修改mysql的配置
- #mysql5.+使用 driverClassName = "com.mysql.jdbc.Driver"
- #mysql8使用 driverClassName = "com.mysql.cj.jdbc.Driver"
- store.db.datasource=druid
- store.db.dbType=mysql
- store.db.driverClassName=com.mysql.cj.jdbc.Driver
- # 指定seata的数据库,下面会提
- #store.db.url=jdbc:mysql://47.108.162.14:3306/seata?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- #store.db.user=root
- #store.db.password=Yy123...
- store.db.url=jdbc:mysql://10.10.10.230:3306/seata?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- store.db.user=sckw_dev
- store.db.password=Yy123...
- store.db.minConn=5
- store.db.maxConn=30
- store.db.globalTable=global_table
- store.db.branchTable=branch_table
- store.db.distributedLockTable=distributed_lock
- store.db.queryLimit=100
- store.db.lockTable=lock_table
- store.db.maxWait=5000
- #Transaction rule configuration, only for the server
- server.recovery.committingRetryPeriod=1000
- server.recovery.asynCommittingRetryPeriod=1000
- server.recovery.rollbackingRetryPeriod=1000
- server.recovery.timeoutRetryPeriod=1000
- server.maxCommitRetryTimeout=-1
- server.maxRollbackRetryTimeout=-1
- server.rollbackRetryTimeoutUnlockEnable=false
- server.distributedLockExpireTime=10000
- server.xaerNotaRetryTimeout=60000
- server.session.branchAsyncQueueSize=5000
- server.session.enableBranchAsyncRemove=false
- server.enableParallelRequestHandle=false
- #Metrics configuration, only for the server
- metrics.enabled=false
- metrics.registryType=compact
- metrics.exporterList=prometheus
- metrics.exporterPrometheusPort=9898
- registry.preferredNetworks=10.10.10.230
|