Skip to content

Commit

Permalink
Supplement Missing Configurations (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
funky-eyes committed Nov 22, 2023
1 parent 7a979ab commit cc0284f
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ transport.enable-client-batch-send-request、client.log.exceptionRate
| server.session.branchAsyncQueueSize | Branch transaction session asynchronously deletes the thread pool queue size | 5000 by default | new in 1.5.1 version|
| server.session.enableBranchAsyncRemove | Asynchronous deletion switch of branch transaction session | Default false | new in 1.5.1 version|
| server.enableParallelRequestHandle | Parallel processing switch for batch request messages | Default false | new in 1.5.2 version|
| server.enableParallelHandleBranch | Two-phase Parallel Deployment Switch| false | new in 2.0.0 version |
| server.raft.group | In the Raft storage mode, the transaction group corresponding to the group and client should be matched with the value. For example, service.vgroup-mapping.default_tx_group=default.| New in 2.0.0 version |
| server.raft.server-addr | The Raft cluster list is as follows: 192.168.0.111:9091, 192.168.0.112:9091, 192.168.0.113:9091 | | New in 2.0.0 version |
| server.raft.snapshot-interval | How often to take a memory snapshot? The state machine is paused every time a snapshot is taken, but this can improve recovery speed when stopping | 默认600秒 | New in 2.0.0 version |
Expand All @@ -136,7 +137,7 @@ transport.enable-client-batch-send-request、client.log.exceptionRate
| server.raft.serialization | raft log serialization type | jackson | New in 2.0.0 version |
| server.raft.compressor | The compression methods supported for Raft log and snapshot are gzip, zstd, and lz4 | none | New in 2.0.0 version |
| server.raft.sync | Synchronous flushing of Raft log to disk | true | New in 2.0.0 version |
| store.mode | Transaction session information storage mode | file Local file (HA is not supported), db database, redis (HA is supported) | The 1.5.1 version uses lock and session for separate storage|
| store.mode | Transaction session information storage mode | file Local file (HA is not supported), db database, redis, raft (HA is supported) | The 1.5.1 version uses lock and session for separate storage|
| store.lock.mode | Transaction lock information storage method | file Local file (HA is not supported), db database, Redis (HA is supported); When the configuration is empty, take the store Mode configuration item value. It is not allowed to specify separately in Raft mode | New in 1.5.1 version, and session and lock can be stored separately|
| store.session.mode | Transaction echo information storage method | file Local file (HA is not supported), db database, Redis (HA is supported); When the configuration is empty, take the store Mode configuration item value. It is not allowed to specify separately in Raft mode | New in 1.5.1 version, and session and lock can be stored separately|
| store.publicKey | Public key for storing and decrypting passwords in db or Redis | | supported in version 1.4.2|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,35 @@ transport.enable-client-batch-send-request、client.log.exceptionRate
| server.session.branchAsyncQueueSize | Branch transaction session asynchronously deletes the thread pool queue size | 5000 by default | new in 1.5.1 version|
| server.session.enableBranchAsyncRemove | Asynchronous deletion switch of branch transaction session | Default false | new in 1.5.1 version|
| server.enableParallelRequestHandle | Parallel processing switch for batch request messages | Default false | new in 1.5.2 version|
| store.mode | Transaction session information storage mode | file Local file (HA is not supported), db database, redis (HA is supported) | The 1.5.1 version uses lock and session for separate storage|
| server.enableParallelHandleBranch | Two-phase Parallel Deployment Switch| false | new in 2.0.0 version |
| server.raft.group | In the Raft storage mode, the transaction group corresponding to the group and client should be matched with the value. For example, service.vgroup-mapping.default_tx_group=default.| New in 2.0.0 version |
| server.raft.server-addr | The Raft cluster list is as follows: 192.168.0.111:9091, 192.168.0.112:9091, 192.168.0.113:9091 | | New in 2.0.0 version |
| server.raft.snapshot-interval | How often to take a memory snapshot? The state machine is paused every time a snapshot is taken, but this can improve recovery speed when stopping | 默认600秒 | New in 2.0.0 version |
| server.raft.apply-batch | Accumulate batches of tasks and submit them to the leader. | 32 | New in 2.0.0 version |
| server.raft.max-append-bufferSize | Maximum size of the Raft log storage buffer | 262144 | New in 2.0.0 version |
| server.raft.max-replicator-inflight-msgs | The maximum number of in-flight requests when pipeline requests are enabled | 256 | New in 2.0.0 version |
| server.raft.disruptor-buffer-size | The size of the internal disruptor buffer may need to be increased appropriately in scenarios with high write throughput | 16384 | New in 2.0.0 version |
| server.raft.election-timeout-ms | How long does it take to start a new election when there is no leader heartbeat for a long time | 1000 | New in 2.0.0 version |
| server.raft.reporter-enabled | Raft monitor enable | false | New in 2.0.0 version |
| server.raft.reporter-initial-delay | Monitor output interval | 60 | New in 2.0.0 version |
| server.raft.serialization | raft log serialization type | jackson | New in 2.0.0 version |
| server.raft.compressor | The compression methods supported for Raft log and snapshot are gzip, zstd, and lz4 | none | New in 2.0.0 version |
| server.raft.sync | Synchronous flushing of Raft log to disk | true | New in 2.0.0 version |
| store.mode | Transaction session information storage mode | file Local file (HA is not supported), db database, redis, raft (HA is supported) | The 1.5.1 version uses lock and session for separate storage|
| store.lock.mode | Transaction lock information storage method | file Local file (HA is not supported), db database, Redis (HA is supported); When the configuration is empty, take the store Mode configuration item value | New in 1.5.1 version, and session and lock can be stored separately|
| server.raft.group | In the Raft storage mode, the transaction group corresponding to the group and client should be matched with the value. For example, service.vgroup-mapping.default_tx_group=default.| New in 2.0.0 version |
| server.raft.server-addr | The Raft cluster list is as follows: 192.168.0.111:9091, 192.168.0.112:9091, 192.168.0.113:9091 | | New in 2.0.0 version |
| server.raft.snapshot-interval | How often to take a memory snapshot? The state machine is paused every time a snapshot is taken, but this can improve recovery speed when stopping | 默认600秒 | New in 2.0.0 version |
| server.raft.apply-batch | Accumulate batches of tasks and submit them to the leader. | 32 | New in 2.0.0 version |
| server.raft.max-append-bufferSize | Maximum size of the Raft log storage buffer | 262144 | New in 2.0.0 version |
| server.raft.max-replicator-inflight-msgs | The maximum number of in-flight requests when pipeline requests are enabled | 256 | New in 2.0.0 version |
| server.raft.disruptor-buffer-size | The size of the internal disruptor buffer may need to be increased appropriately in scenarios with high write throughput | 16384 | New in 2.0.0 version |
| server.raft.election-timeout-ms | How long does it take to start a new election when there is no leader heartbeat for a long time | 1000 | New in 2.0.0 version |
| server.raft.reporter-enabled | Raft monitor enable | false | New in 2.0.0 version |
| server.raft.reporter-initial-delay | Monitor output interval | 60 | New in 2.0.0 version |
| server.raft.serialization | raft log serialization type | jackson | New in 2.0.0 version |
| server.raft.compressor | The compression methods supported for Raft log and snapshot are gzip, zstd, and lz4 | none | New in 2.0.0 version |
| server.raft.sync | Synchronous flushing of Raft log to disk | true | New in 2.0.0 version |
| store.session.mode | Transaction echo information storage method | file Local file (HA is not supported), db database, Redis (HA is supported); When the configuration is empty, take the store Mode configuration item value | New in 1.5.1 version, and session and lock can be stored separately|
| store.publicKey | Public key for storing and decrypting passwords in db or Redis | | supported in version 1.4.2|
| store.file.dir | file mode file storage folder name | default sessionStore|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ TC: 4c8g*3 Client: 4c*8G*1 数据库为阿里云rds 4c16g


## 5.总结
在Seata未来的发展中,性能,入门门槛,部署运维成本都是我们需要关注和不断优化的方向,在raft模式退出后有以下几个特点
在Seata未来的发展中,性能、入门门槛、部署运维成本,都是我们需要关注和不断优化的方向,在raft模式推出后有以下几个特点:

1. 如存储方面,存算分离后Seata对其优化的上限被拔高,自主可控
2. 部署成本更低,无需额外的注册中心,存储中间件
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ transport.enable-client-batch-send-request、client.log.exceptionRate
| server.session.branchAsyncQueueSize | 分支事务Session异步删除线程池队列大小 | 默认5000 | 1.5.1版本新增 |
| server.session.enableBranchAsyncRemove | 分支事务Session异步删除开关 | 默认false | 1.5.1版本新增 |
| server.enableParallelRequestHandle | 对于批量请求消息的并行处理开关 | 默认false | 1.5.2版本新增 |
| server.enableParallelHandleBranch | 二阶段并行下发开关 | 默认false | 2.0.0版本新增 |
| server.raft.group | raft存储模式下的group,client的事务分组对应的值要与之对应,如service.vgroup-mapping.default_tx_group=default | default | 2.0.0版本新增 |
| server.raft.server-addr | raft集群列表如192.168.0.111:9091,192.168.0.112:9091,192.168.0.113:9091 | | 2.0.0版本新增 |
| server.raft.snapshot-interval | 间隔多久做一次内存快照,每做一次快照将暂停状态机,但是能提高停机恢复速度 | 默认600秒 | 2.0.0版本新增 |
Expand All @@ -110,7 +111,7 @@ transport.enable-client-batch-send-request、client.log.exceptionRate
| server.raft.serialization | 序列化方式,目前仅支持jackson | 默认jackson | 2.0.0版本新增 |
| server.raft.compressor | raftlog和snapshot的压缩方式,支持gzip, zstd, lz4 | none | 2.0.0版本新增 |
| server.raft.sync | raftlog同步刷盘 | true | 2.0.0版本新增 |
| store.mode | 事务会话信息存储方式 |file本地文件(不支持HA),db数据库redis(支持HA),raft | 1.5.1版本改用lock和session分离存储,2.0.0开始支持raft模式 |
| store.mode | 事务会话信息存储方式 |file本地文件(不支持HA),db数据库redisraft 支持HA | 1.5.1版本改用lock和session分离存储,2.0.0开始支持raft模式 |
| store.lock.mode | 事务锁信息存储方式 | file本地文件(不支持HA),db数据库,redis(支持HA);配置为空时,取store.mode配置项值,raft模式不允许指定 | 1.5.1版本新增,session和lock可分离存储 |
| store.session.mode | 事务回话信息存储方式 | file本地文件(不支持HA),db数据库,redis(支持HA);配置为空时,取store.mode配置项值。raft模式不允许单独指定 | 1.5.1版本新增,session和lock可分离存储 |
| store.publicKey | db或redis存储密码解密公钥 | | 1.4.2版本支持 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ transport.enable-client-batch-send-request、client.log.exceptionRate
| server.session.branchAsyncQueueSize | 分支事务Session异步删除线程池队列大小 | 默认5000 | 1.5.1版本新增 |
| server.session.enableBranchAsyncRemove | 分支事务Session异步删除开关 | 默认false | 1.5.1版本新增 |
| server.enableParallelRequestHandle | 对于批量请求消息的并行处理开关 | 默认false | 1.5.2版本新增 |
| server.enableParallelHandleBranch | 二阶段并行下发开关 | 默认false | 2.0.0版本新增 |
| server.raft.group | raft存储模式下的group,client的事务分组对应的值要与之对应,如service.vgroup-mapping.default_tx_group=default | default | 2.0.0版本新增 |
| server.raft.server-addr | raft集群列表如192.168.0.111:9091,192.168.0.112:9091,192.168.0.113:9091 | | 2.0.0版本新增 |
| server.raft.snapshot-interval | 间隔多久做一次内存快照,每做一次快照将暂停状态机,但是能提高停机恢复速度 | 默认600秒 | 2.0.0版本新增 |
Expand All @@ -110,7 +111,7 @@ transport.enable-client-batch-send-request、client.log.exceptionRate
| server.raft.serialization | 序列化方式,目前仅支持jackson | 默认jackson | 2.0.0版本新增 |
| server.raft.compressor | raftlog和snapshot的压缩方式,支持gzip, zstd, lz4 | none | 2.0.0版本新增 |
| server.raft.sync | raftlog同步刷盘 | true | 2.0.0版本新增 |
| store.mode | 事务会话信息存储方式 |file本地文件(不支持HA),db数据库redis(支持HA),raft | 1.5.1版本改用lock和session分离存储,2.0.0开始支持raft模式 |
| store.mode | 事务会话信息存储方式 |file本地文件(不支持HA),db数据库redisraft 支持HA | 1.5.1版本改用lock和session分离存储,2.0.0开始支持raft模式 |
| store.lock.mode | 事务锁信息存储方式 | file本地文件(不支持HA),db数据库,redis(支持HA);配置为空时,取store.mode配置项值,raft模式不允许指定 | 1.5.1版本新增,session和lock可分离存储 |
| store.session.mode | 事务回话信息存储方式 | file本地文件(不支持HA),db数据库,redis(支持HA);配置为空时,取store.mode配置项值。raft模式不允许单独指定 | 1.5.1版本新增,session和lock可分离存储 |
| store.publicKey | db或redis存储密码解密公钥 | | 1.4.2版本支持 |
Expand Down

0 comments on commit cc0284f

Please sign in to comment.