From 879cf97cc382ea19aeabcd80b9e543130681dc06 Mon Sep 17 00:00:00 2001 From: xingfudeshi Date: Thu, 27 Feb 2025 12:55:31 +0800 Subject: [PATCH] Update docs for keepalive-related configuration for Druid, Hikari, and DBCP (#940) --- .../current/user/configurations.md | 15 +- .../current/user/configurations.md | 167 ++++++++++-------- 2 files changed, 104 insertions(+), 78 deletions(-) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/user/configurations.md b/i18n/en/docusaurus-plugin-content-docs/current/user/configurations.md index a417257aa7c..54256ce52d2 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/user/configurations.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/user/configurations.md @@ -115,7 +115,7 @@ transport.enable-client-batch-send-request、client.log.exceptionRate | 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 | Default 600 seconds | 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 | Default 600 seconds | 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 | @@ -152,6 +152,19 @@ transport.enable-client-batch-send-request、client.log.exceptionRate | store.db.LockTable | db mode global lock table name | default lock\_ table | | store.db.queryLimit | the maximum number of global transactions queried in db mode at one time | 100 by default | | store.db.distributedLockTable | db mode Sever side transaction management global lock storage table name | default distributed\_ Lock. Under multiple server clusters, only one server is guaranteed to handle the submission or rollback at the same time | New in 1.5.1 | +| store.db.druid.time-between-eviction-runs-millis | Druid's config time-between-eviction-runs-millis | 120000 by default | New in 2.3 | +| store.db.druid.min-evictable-idle-time-millis | Druid's config min-evictable-idle-time-millis | 300000 by default | New in 2.3 | +| store.db.druid.test-while-idle | Druid's config test-while-idle | true by default | New in 2.3 | +| store.db.druid.test-on-borrow | Druid's config test-on-borrow | false by default | New in 2.3 | +| store.db.druid.keep-alive | Druid's config keep-alive | false by default | New in 2.3 | +| store.db.hikari.idle-timeout | Hikari's config idle-timeout | 600000 by default | New in 2.3 | +| store.db.hikari.keepalive-time | Hikari's config keepalive-time | 120000 by default | New in 2.3 | +| store.db.hikari.max-lifetime | Hikari's config max-lifetime | 1800000 by default | New in 2.3 | +| store.db.hikari.validation-timeout | Hikari's config validation-timeout | 5000 by default | New in 2.3 | +| store.db.dbcp.time-between-eviction-runs-millis | Dbcp's config time-between-eviction-runs-millis | 120000 by default | New in 2.3 | +| store.db.dbcp.min-evictable-idle-time-millis | Dbcp's config min-evictable-idle-time-millis | 300000 by default | New in 2.3 | +| store.db.dbcp.test-while-idle | Dbcp's config test-while-idle | true by default | New in 2.3 | +| store.db.dbcp.test-on-borrow | Dbcp's config test-on-borrow | false by default | New in 2.3 | | store.redis.mode | redis mode | default single, optional sentinel | New sentinel mode in 1.4.2 | | store.redis.single.host | The Redis host in stand-alone mode is compatible with versions earlier than 1.4.2. If this configuration is empty, select store.redis Host as a configuration item | New in 1.4.2 | | store.redis.single.port | The port of Redis in stand-alone mode is compatible with versions earlier than 1.4.2. If this configuration is empty, select store.redis Port as a configuration item | New in 1.4.2 | diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configurations.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configurations.md index 1cf718eb1e7..51a594fd56c 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configurations.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configurations.md @@ -47,83 +47,96 @@ description: Seata 参数配置。 ### server 端 -| key | desc | remark | change record | -| ----------------------------------------- |-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------| ------------------------------------------------------------ | -| transport.enableTcServerBatchSendResponse | TC 批量发送回复消息开关 | 默认 false | 1.5.1 版本新增,建议为 true,可解决 client 批量消息时的线头阻塞问题 | -| transport.rpcRmRequestTimeout | RM 二阶段下发请求超时时间 | 默认 15 秒 | | -| transport.rpcTmRequestTimeout | TM 二阶段下发请求超时时间 | 默认 30 秒 | | -| transport.rpcTcRequestTimeout | TC 二阶段下发请求超时时间 | 默认 15 秒 | 1.5.1 版本新增 | -| server.undo.logSaveDays | undo 保留天数 | 默认 7 天,log_status=1(附录 3)和未正常清理的 undo | | -| server.undo.logDeletePeriod | undo 清理线程间隔时间 | 默认 86400000,单位毫秒 | | -| server.maxCommitRetryTimeout | 二阶段提交重试超时时长 | 单位 ms,s,m,h,d,对应毫秒,秒,分,小时,天,默认毫秒。默认值-1 表示无限重试。公式: timeout>=now-globalTransactionBeginTime,true 表示超时则不再重试(注: 达到超时时间后将不会做任何重试,有数据不一致风险,除非业务自行可校准数据,否者慎用) | | -| server.maxRollbackRetryTimeout | 二阶段回滚重试超时时长 | 同 commit | | -| server.recovery.committingRetryPeriod | 二阶段提交未完成状态全局事务重试提交线程间隔时间 | 默认 1000,单位毫秒 | | -| server.recovery.asynCommittingRetryPeriod | 二阶段异步提交状态重试提交线程间隔时间 | 默认 1000,单位毫秒 | | -| server.recovery.rollbackingRetryPeriod | 二阶段回滚状态重试回滚线程间隔时间 | 默认 1000,单位毫秒 | | -| server.recovery.timeoutRetryPeriod | 超时状态检测重试线程间隔时间 | 默认 1000,单位毫秒,检测出超时将全局事务置入回滚会话管理器 | | -| server.rollbackRetryTimeoutUnlockEnable | 二阶段回滚超时后是否释放锁 | 默认 false | | -| server.distributedLockExpireTime | Sever 端事务管理全局锁超时时间 | 默认 10000,单位毫秒 | 1.5.1 版本新增 | -| server.server.xaerNotaRetryTimeout | 防止 XA 分支事务悬挂的重试超时时间 | 默认 60000,单位毫秒 | 1.5.1 版本新增 | -| server.session.branchAsyncQueueSize | 分支事务 Session 异步删除线程池队列大小 | 默认 5000 | 1.5.1 版本新增 | -| server.session.enableBranchAsyncRemove | 分支事务 Session 异步删除开关 | 默认 false | 1.5.1 版本新增 | -| server.enableParallelRequestHandle | 对于批量请求消息的并行处理开关 | 默认 true | 1.5.2 版本新增 | -| server.enableParallelHandleBranch | 二阶段并行下发开关 | 默认 false | 2.0.0 版本新增 | -| server.applicationDataLimitCheck | 是否开启应用数据大小检查 | 默认 false | | -| server.applicationDataLimit | 应用数据大小限制 | 默认 64000 | | -| 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 版本新增 | -| server.raft.apply-batch | 任务累积批次后提交至 leader | 默认 32 | 2.0.0 版本新增 | -| server.raft.max-append-bufferSize | raft 日志存储缓冲区最大大小 | 默认 256K | 2.0.0 版本新增 | -| server.raft.max-replicator-inflight-msgs | 在启用 pipeline 请求情况下,最大 in-flight 请求数 | 默认 256 | 2.0.0 版本新增 | -| server.raft.disruptor-buffer-size | 内部 disruptor buffer 大小,如果是写入吞吐量较高场景,需要适当调高该值, | 默认 16384 | 2.0.0 版本新增 | -| server.raft.election-timeout-ms | 超过多久没有 leader 的心跳开始重选举 | 默认 1000 毫秒 | 2.0.0 版本新增 | -| server.raft.reporter-enabled | raft 自身的监控是否开启 | 默认 false | 2.0.0 版本新增 | -| server.raft.reporter-initial-delay | 监控输出间隔 | 默认 60 秒 | 2.0.0 版本新增 | -| 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、raft 支持 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 版本支持 | -| store.file.dir | file 模式文件存储文件夹名 | 默认 sessionStore | | -| store.file.maxBranchSessionSize | file 模式文件存储分支 session 最大字节数 | 默认 16384(16kb),单位 byte | | -| store.file.maxGlobalSessionSize | file 模式文件存储全局 session 最大字节数 | 默认 512b,单位 byte | | -| store.file.fileWriteBufferCacheSize | file 模式文件存储 buffer 最大缓存大小 | 默认 16384(16kb),单位 byte,写入 session 等数据量大于该值时会抛出异常 | | -| store.file.flushDiskMode | file 模式文件存储刷盘策略 | 默认 async,可选 sync | | -| store.file.sessionReloadReadSize | file 模式文件存储 Server 节点重启后从备份文件中恢复的 session 或 lock key 上限个数 | 默认 100 | | -| store.db.datasource | db 模式数据源类型 | dbcp、druid、hikari;无默认值,store.mode=db 时必须指定 | | -| store.db.dbType | db 模式数据库类型 | mysql、oracle、db2、sqlserver、sybaee、h2、sqlite、access、postgresql、oceanbase;无默认值,store.mode=db 时必须指定。 | | -| store.db.driverClassName | db 模式数据库驱动 | store.mode=db 时必须指定 | | -| store.db.url | db 模式数据库 url | store.mode=db 时必须指定,在使用 mysql 作为数据源时,建议在连接参数中加上`rewriteBatchedStatements=true`(详细原因请阅读附录 7) | | -| store.db.user | db 模式数据库账户 | store.mode=db 时必须指定 | | -| store.db.password | db 模式数据库账户密码 | store.mode=db 时必须指定 | | -| store.db.minConn | db 模式数据库初始连接数 | 默认 1 | | -| store.db.maxConn | db 模式数据库最大连接数 | 默认 20 | | -| store.db.maxWait | db 模式获取连接时最大等待时间 | 默认 5000,单位毫秒 | | -| store.db.globalTable | db 模式全局事务表名 | 默认 global_table | | -| store.db.branchTable | db 模式分支事务表名 | 默认 branch_table | | -| store.db.lockTable | db 模式全局锁表名 | 默认 lock_table | | -| store.db.queryLimit | db 模式查询全局事务一次的最大条数 | 默认 100 | | -| store.db.distributedLockTable | db 模式 Sever 端事务管理全局锁存储表名 | 默认 distributed_lock,多 Sever 集群下保证同时只有一个 Sever 处理提交或回滚 | 1.5.1 版本新增 | -| store.redis.mode | redis 模式 | 默认 single,可选 sentinel | 1.4.2 版本新增 sentinel 模式 | -| store.redis.single.host | 单机模式下 redis 的 host,兼容 1.4.2 之前的版本,该配置为空时选取 store.redis.host 作为配置项 | 1.4.2 版本新增 | | -| store.redis.single.port | 单机模式下 redis 的 port,兼容 1.4.2 之前的版本,该配置为空时选取 store.redis.port 作为配置项 | 1.4.2 版本新增 | | -| store.redis.sentinel.masterName | sentinel 模式下 redis 的主库名称 | | 1.4.2 版本新增 | -| store.redis.sentinel.sentinelHosts | sentinel 模式下 sentinel 的 hosts | 多 hosts 以逗号分隔 | 1.4.2 版本新增 | -| store.redis.host | redis 模式 ip | 默认 127.0.0.1 | 1.4.2 版本弃用 | -| store.redis.port | redis 模式端口 | 默认 6379 | 1.4.2 版本弃用 | -| store.redis.maxConn | redis 模式最大连接数 | 默认 10 | | -| store.redis.minConn | redis 模式最小连接数 | 默认 1 | | -| store.redis.database | redis 模式默认库 | 默认 0 | | -| store.redis.password | redis 模式密码(无可不填) | 默认 null | | -| store.redis.queryLimit | redis 模式一次查询最大条数 | 默认 100 | | -| store.redis.type | redis 模式主要使用的方式: lua, pippline | pippline | | -| metrics.enabled | 是否启用 Metrics | 默认 true 开启,在 False 状态下,所有与 Metrics 相关的组件将不会被初始化,使得性能损耗最低 | | -| metrics.registryType | 指标注册器类型 | Metrics 使用的指标注册器类型,默认为内置的 compact(简易)实现,这个实现中的 Meter 仅使用有限内存计数,性能高足够满足大多数场景;目前只能设置一个指标注册器实现 | | -| metrics.exporterList | 指标结果 Measurement 数据输出器列表 | 默认 prometheus,多个输出器使用英文逗号分割,例如"prometheus,jmx",目前仅实现了对接 prometheus 的输出器 | | -| metrics.exporterPrometheusPort | prometheus 输出器 Client 端口号 | 默认 9898 | | +| key | desc | remark | change record | +| ----------------------------------------- |-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|--| +| transport.enableTcServerBatchSendResponse | TC 批量发送回复消息开关 | 默认 false | 1.5.1 版本新增,建议为 true,可解决 client 批量消息时的线头阻塞问题 | +| transport.rpcRmRequestTimeout | RM 二阶段下发请求超时时间 | 默认 15 秒 | | +| transport.rpcTmRequestTimeout | TM 二阶段下发请求超时时间 | 默认 30 秒 | | +| transport.rpcTcRequestTimeout | TC 二阶段下发请求超时时间 | 默认 15 秒 | 1.5.1 版本新增 | +| server.undo.logSaveDays | undo 保留天数 | 默认 7 天,log_status=1(附录 3)和未正常清理的 undo | | +| server.undo.logDeletePeriod | undo 清理线程间隔时间 | 默认 86400000,单位毫秒 | | +| server.maxCommitRetryTimeout | 二阶段提交重试超时时长 | 单位 ms,s,m,h,d,对应毫秒,秒,分,小时,天,默认毫秒。默认值-1 表示无限重试。公式: timeout>=now-globalTransactionBeginTime,true 表示超时则不再重试(注: 达到超时时间后将不会做任何重试,有数据不一致风险,除非业务自行可校准数据,否者慎用) | | +| server.maxRollbackRetryTimeout | 二阶段回滚重试超时时长 | 同 commit | | +| server.recovery.committingRetryPeriod | 二阶段提交未完成状态全局事务重试提交线程间隔时间 | 默认 1000,单位毫秒 | | +| server.recovery.asynCommittingRetryPeriod | 二阶段异步提交状态重试提交线程间隔时间 | 默认 1000,单位毫秒 | | +| server.recovery.rollbackingRetryPeriod | 二阶段回滚状态重试回滚线程间隔时间 | 默认 1000,单位毫秒 | | +| server.recovery.timeoutRetryPeriod | 超时状态检测重试线程间隔时间 | 默认 1000,单位毫秒,检测出超时将全局事务置入回滚会话管理器 | | +| server.rollbackRetryTimeoutUnlockEnable | 二阶段回滚超时后是否释放锁 | 默认 false | | +| server.distributedLockExpireTime | Sever 端事务管理全局锁超时时间 | 默认 10000,单位毫秒 | 1.5.1 版本新增 | +| server.server.xaerNotaRetryTimeout | 防止 XA 分支事务悬挂的重试超时时间 | 默认 60000,单位毫秒 | 1.5.1 版本新增 | +| server.session.branchAsyncQueueSize | 分支事务 Session 异步删除线程池队列大小 | 默认 5000 | 1.5.1 版本新增 | +| server.session.enableBranchAsyncRemove | 分支事务 Session 异步删除开关 | 默认 false | 1.5.1 版本新增 | +| server.enableParallelRequestHandle | 对于批量请求消息的并行处理开关 | 默认 true | 1.5.2 版本新增 | +| server.enableParallelHandleBranch | 二阶段并行下发开关 | 默认 false | 2.0.0 版本新增 | +| server.applicationDataLimitCheck | 是否开启应用数据大小检查 | 默认 false | | +| server.applicationDataLimit | 应用数据大小限制 | 默认 64000 | | +| 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 版本新增 | +| server.raft.apply-batch | 任务累积批次后提交至 leader | 默认 32 | 2.0.0 版本新增 | +| server.raft.max-append-bufferSize | raft 日志存储缓冲区最大大小 | 默认 256K | 2.0.0 版本新增 | +| server.raft.max-replicator-inflight-msgs | 在启用 pipeline 请求情况下,最大 in-flight 请求数 | 默认 256 | 2.0.0 版本新增 | +| server.raft.disruptor-buffer-size | 内部 disruptor buffer 大小,如果是写入吞吐量较高场景,需要适当调高该值, | 默认 16384 | 2.0.0 版本新增 | +| server.raft.election-timeout-ms | 超过多久没有 leader 的心跳开始重选举 | 默认 1000 毫秒 | 2.0.0 版本新增 | +| server.raft.reporter-enabled | raft 自身的监控是否开启 | 默认 false | 2.0.0 版本新增 | +| server.raft.reporter-initial-delay | 监控输出间隔 | 默认 60 秒 | 2.0.0 版本新增 | +| 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、raft 支持 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 版本支持 | +| store.file.dir | file 模式文件存储文件夹名 | 默认 sessionStore | | +| store.file.maxBranchSessionSize | file 模式文件存储分支 session 最大字节数 | 默认 16384(16kb),单位 byte | | +| store.file.maxGlobalSessionSize | file 模式文件存储全局 session 最大字节数 | 默认 512b,单位 byte | | +| store.file.fileWriteBufferCacheSize | file 模式文件存储 buffer 最大缓存大小 | 默认 16384(16kb),单位 byte,写入 session 等数据量大于该值时会抛出异常 | | +| store.file.flushDiskMode | file 模式文件存储刷盘策略 | 默认 async,可选 sync | | +| store.file.sessionReloadReadSize | file 模式文件存储 Server 节点重启后从备份文件中恢复的 session 或 lock key 上限个数 | 默认 100 | | +| store.db.datasource | db 模式数据源类型 | dbcp、druid、hikari;无默认值,store.mode=db 时必须指定 | | +| store.db.dbType | db 模式数据库类型 | mysql、oracle、db2、sqlserver、sybaee、h2、sqlite、access、postgresql、oceanbase;无默认值,store.mode=db 时必须指定。 | | +| store.db.driverClassName | db 模式数据库驱动 | store.mode=db 时必须指定 | | +| store.db.url | db 模式数据库 url | store.mode=db 时必须指定,在使用 mysql 作为数据源时,建议在连接参数中加上`rewriteBatchedStatements=true`(详细原因请阅读附录 7) | | +| store.db.user | db 模式数据库账户 | store.mode=db 时必须指定 | | +| store.db.password | db 模式数据库账户密码 | store.mode=db 时必须指定 | | +| store.db.minConn | db 模式数据库初始连接数 | 默认 1 | | +| store.db.maxConn | db 模式数据库最大连接数 | 默认 20 | | +| store.db.maxWait | db 模式获取连接时最大等待时间 | 默认 5000,单位毫秒 | | +| store.db.globalTable | db 模式全局事务表名 | 默认 global_table | | +| store.db.branchTable | db 模式分支事务表名 | 默认 branch_table | | +| store.db.lockTable | db 模式全局锁表名 | 默认 lock_table | | +| store.db.queryLimit | db 模式查询全局事务一次的最大条数 | 默认 100 | | +| store.db.distributedLockTable | db 模式 Sever 端事务管理全局锁存储表名 | 默认 distributed_lock,多 Sever 集群下保证同时只有一个 Sever 处理提交或回滚 | 1.5.1 版本新增 | +| store.db.druid.time-between-eviction-runs-millis | Druid 配置项 time-between-eviction-runs-millis | 默认 120000 | 2.3 版本新增 | +| store.db.druid.min-evictable-idle-time-millis | Druid 配置项 min-evictable-idle-time-millis | 默认 300000 | 2.3 版本新增 | +| store.db.druid.test-while-idle | Druid 配置项 test-while-idle | 默认 true | 2.3 版本新增 | +| store.db.druid.test-on-borrow | Druid 配置项 test-on-borrow | 默认 false | 2.3 版本新增 | +| store.db.druid.keep-alive | Druid 配置项 keep-alive | 默认 false | 2.3 版本新增 | +| store.db.hikari.idle-timeout | Hikari 配置项 idle-timeout | 默认 600000 | 2.3 版本新增 | +| store.db.hikari.keepalive-time | Hikari 配置项 keepalive-time | 默认 120000 | 2.3 版本新增 | +| store.db.hikari.max-lifetime | Hikari 配置项 max-lifetime | 默认 1800000 | 2.3 版本新增 | +| store.db.hikari.validation-timeout | Hikari 配置项 validation-timeout | 默认 5000 | 2.3 版本新增 | +| store.db.dbcp.time-between-eviction-runs-millis | Dbcp 配置项 time-between-eviction-runs-millis | 默认 120000 | 2.3 版本新增 | +| store.db.dbcp.min-evictable-idle-time-millis | Dbcp 配置项 min-evictable-idle-time-millis | 默认 300000 | 2.3 版本新增 | +| store.db.dbcp.test-while-idle | Dbcp 配置项 test-while-idle | 默认 true | 2.3 版本新增 | +| store.db.dbcp.test-on-borrow | Dbcp 配置项 test-on-borrow | 默认 false | 2.3 版本新增 | +| store.redis.mode | redis 模式 | 默认 single,可选 sentinel | 1.4.2 版本新增 sentinel 模式 | +| store.redis.single.host | 单机模式下 redis 的 host,兼容 1.4.2 之前的版本,该配置为空时选取 store.redis.host 作为配置项 | 1.4.2 版本新增 | | +| store.redis.single.port | 单机模式下 redis 的 port,兼容 1.4.2 之前的版本,该配置为空时选取 store.redis.port 作为配置项 | 1.4.2 版本新增 | | +| store.redis.sentinel.masterName | sentinel 模式下 redis 的主库名称 | | 1.4.2 版本新增 | +| store.redis.sentinel.sentinelHosts | sentinel 模式下 sentinel 的 hosts | 多 hosts 以逗号分隔 | 1.4.2 版本新增 | +| store.redis.host | redis 模式 ip | 默认 127.0.0.1 | 1.4.2 版本弃用 | +| store.redis.port | redis 模式端口 | 默认 6379 | 1.4.2 版本弃用 | +| store.redis.maxConn | redis 模式最大连接数 | 默认 10 | | +| store.redis.minConn | redis 模式最小连接数 | 默认 1 | | +| store.redis.database | redis 模式默认库 | 默认 0 | | +| store.redis.password | redis 模式密码(无可不填) | 默认 null | | +| store.redis.queryLimit | redis 模式一次查询最大条数 | 默认 100 | | +| store.redis.type | redis 模式主要使用的方式: lua, pippline | pippline | | +| metrics.enabled | 是否启用 Metrics | 默认 true 开启,在 False 状态下,所有与 Metrics 相关的组件将不会被初始化,使得性能损耗最低 | | +| metrics.registryType | 指标注册器类型 | Metrics 使用的指标注册器类型,默认为内置的 compact(简易)实现,这个实现中的 Meter 仅使用有限内存计数,性能高足够满足大多数场景;目前只能设置一个指标注册器实现 | | +| metrics.exporterList | 指标结果 Measurement 数据输出器列表 | 默认 prometheus,多个输出器使用英文逗号分割,例如"prometheus,jmx",目前仅实现了对接 prometheus 的输出器 | | +| metrics.exporterPrometheusPort | prometheus 输出器 Client 端口号 | 默认 9898 | | ### client 端