spring.datasource.initialSize5
Init connection number
intspring.datasource.minIdle5
Min connection number
intspring.datasource.maxActive50
Max connection number
intspring.datasource.maxWait60000
Max wait time for get a connection in milliseconds.
If configuring maxWait, fair locks are enabled by default and concurrency efficiency decreases.
If necessary, unfair locks can be used by configuring the useUnfairLock attribute to true.
intspring.datasource.timeBetweenEvictionRunsMillis60000
Milliseconds for check to close free connections
intspring.datasource.timeBetweenConnectErrorMillis60000
The Destroy thread detects the connection interval and closes the physical connection in milliseconds
if the connection idle time is greater than or equal to minEvictableIdleTimeMillis.
intspring.datasource.minEvictableIdleTimeMillis300000
The longest time a connection remains idle without being evicted, in milliseconds
intspring.datasource.validationQuerySELECT 1
The SQL used to check whether the connection is valid requires a query statement.
If validation Query is null, testOnBorrow, testOnReturn, and testWhileIdle will not work.
spring.datasource.validationQueryTimeout3int
Check whether the connection is valid for timeout, in seconds
spring.datasource.testWhileIdletrueboolean
When applying for a connection,
if it is detected that the connection is idle longer than time Between Eviction Runs Millis,
validation Query is performed to check whether the connection is valid
spring.datasource.testOnBorrowtrueboolean
Execute validation to check if the connection is valid when applying for a connection
spring.datasource.testOnReturnfalseboolean
Execute validation to check if the connection is valid when the connection is returned
spring.datasource.defaultAutoCommittruebooleanspring.datasource.keepAlivefalsebooleanspring.datasource.poolPreparedStatementstrueboolean
Open PSCache, specify count PSCache for every connection
spring.datasource.maxPoolPreparedStatementPerConnectionSize20intspring.datasource.spring.datasource.filtersstat,wall,log4jspring.datasource.connectionPropertiesdruid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000mybatis-plus.mapper-locationsclasspath*:/org.apache.dolphinscheduler.dao.mapper/*.xmlmybatis-plus.typeEnumsPackageorg.apache.dolphinscheduler.*.enumsmybatis-plus.typeAliasesPackageorg.apache.dolphinscheduler.dao.entity
Entity scan, where multiple packages are separated by a comma or semicolon
mybatis-plus.global-config.db-config.id-typeAUTOvalue-listAUTOINPUTID_WORKERUUID1
Primary key type AUTO:" database ID AUTO ",
INPUT:" user INPUT ID",
ID_WORKER:" global unique ID (numeric type unique ID)",
UUID:" global unique ID UUID";
mybatis-plus.global-config.db-config.field-strategyNOT_NULLvalue-listIGNOREDNOT_NULLNOT_EMPTY1
Field policy IGNORED:" ignore judgment ",
NOT_NULL:" not NULL judgment "),
NOT_EMPTY:" not NULL judgment"
mybatis-plus.global-config.db-config.column-underlinetruebooleanmybatis-plus.global-config.db-config.logic-delete-value1intmybatis-plus.global-config.db-config.logic-not-delete-value0intmybatis-plus.global-config.db-config.bannertruebooleanmybatis-plus.configuration.map-underscore-to-camel-casetruebooleanmybatis-plus.configuration.cache-enabledfalsebooleanmybatis-plus.configuration.call-setters-on-nullstruebooleanmybatis-plus.configuration.jdbc-type-for-nullnullmaster.exec.threads100intmaster.exec.task.num20intmaster.heartbeat.interval10intmaster.task.commit.retryTimes5intmaster.task.commit.interval1000intmaster.max.cpuload.avg100intmaster.reserved.memory0.1floatworker.exec.threads100intworker.heartbeat.interval10intworker.fetch.task.num3intworker.max.cpuload.avg100intworker.reserved.memory0.1float