diff --git a/udf-api/udf-api-common/src/main/resources/mapper/ITraceInfoRepository.xml b/udf-api/udf-api-common/src/main/resources/mapper/ITraceInfoRepository.xml index f26edc6..7d70085 100644 --- a/udf-api/udf-api-common/src/main/resources/mapper/ITraceInfoRepository.xml +++ b/udf-api/udf-api-common/src/main/resources/mapper/ITraceInfoRepository.xml @@ -4,6 +4,6 @@ DELETE FROM TM_COMMON_TRACE_INFO A - WHERE A.CREATE_DATE date_sub(now(), INTERVAL #{traceLogKeepDays} day) + WHERE A.CREATE_DATE date_sub(current_timestamp, INTERVAL #{traceLogKeepDays} day) diff --git a/udf-api/udf-api-server/src/main/resources/application-dev.properties b/udf-api/udf-api-server/src/main/resources/application-dev.properties index 912072b..cb84e0d 100644 --- a/udf-api/udf-api-server/src/main/resources/application-dev.properties +++ b/udf-api/udf-api-server/src/main/resources/application-dev.properties @@ -20,9 +20,9 @@ org.itkk.udf.starter.datasource.dynamic.properties.map.udf.url=jdbc:mysql://web. org.itkk.udf.starter.datasource.dynamic.properties.map.udf.username=udf_dev org.itkk.udf.starter.datasource.dynamic.properties.map.udf.password=123456 org.itkk.udf.starter.datasource.dynamic.properties.map.udf.driverClassName=com.mysql.cj.jdbc.Driver -org.itkk.udf.starter.datasource.dynamic.properties.map.udf.initialSize=1 -org.itkk.udf.starter.datasource.dynamic.properties.map.udf.minIdle=1 -org.itkk.udf.starter.datasource.dynamic.properties.map.udf.maxActive=2 +org.itkk.udf.starter.datasource.dynamic.properties.map.udf.initialSize=5 +org.itkk.udf.starter.datasource.dynamic.properties.map.udf.minIdle=5 +org.itkk.udf.starter.datasource.dynamic.properties.map.udf.maxActive=5 org.itkk.udf.starter.datasource.dynamic.properties.map.udf.maxWait=5000 org.itkk.udf.starter.datasource.dynamic.properties.map.udf.timeBetweenEvictionRunsMillis=60000 org.itkk.udf.starter.datasource.dynamic.properties.map.udf.minEvictableIdleTimeMillis=30000 diff --git a/udf-api/udf-api-server/src/main/resources/application-prod.properties b/udf-api/udf-api-server/src/main/resources/application-prod.properties index 487eee8..3b1982b 100644 --- a/udf-api/udf-api-server/src/main/resources/application-prod.properties +++ b/udf-api/udf-api-server/src/main/resources/application-prod.properties @@ -20,9 +20,9 @@ org.itkk.udf.starter.datasource.dynamic.properties.map.udf.url=jdbc:mysql://192. org.itkk.udf.starter.datasource.dynamic.properties.map.udf.username=udf_prod org.itkk.udf.starter.datasource.dynamic.properties.map.udf.password=5ds2c6de54t1fd36e5f org.itkk.udf.starter.datasource.dynamic.properties.map.udf.driverClassName=com.mysql.cj.jdbc.Driver -org.itkk.udf.starter.datasource.dynamic.properties.map.udf.initialSize=1 -org.itkk.udf.starter.datasource.dynamic.properties.map.udf.minIdle=1 -org.itkk.udf.starter.datasource.dynamic.properties.map.udf.maxActive=2 +org.itkk.udf.starter.datasource.dynamic.properties.map.udf.initialSize=20 +org.itkk.udf.starter.datasource.dynamic.properties.map.udf.minIdle=20 +org.itkk.udf.starter.datasource.dynamic.properties.map.udf.maxActive=20 org.itkk.udf.starter.datasource.dynamic.properties.map.udf.maxWait=5000 org.itkk.udf.starter.datasource.dynamic.properties.map.udf.timeBetweenEvictionRunsMillis=60000 org.itkk.udf.starter.datasource.dynamic.properties.map.udf.minEvictableIdleTimeMillis=30000 diff --git a/udf-starter/udf-starter-cache-db/src/main/java/org/itkk/udf/starter/cache/db/DbCacheServiceRegistration.java b/udf-starter/udf-starter-cache-db/src/main/java/org/itkk/udf/starter/cache/db/DbCacheServiceRegistration.java index d3d2c44..57df046 100644 --- a/udf-starter/udf-starter-cache-db/src/main/java/org/itkk/udf/starter/cache/db/DbCacheServiceRegistration.java +++ b/udf-starter/udf-starter-cache-db/src/main/java/org/itkk/udf/starter/cache/db/DbCacheServiceRegistration.java @@ -123,7 +123,7 @@ public class DbCacheServiceRegistration implements IServiceRegistration { public void refresh() throws JsonProcessingException { //更新缓存 dbCacheService.set(getKey(), internalObjectMapper.writeValueAsString(new ServiceDto().setApplicationName(this.applicationName).setIp(this.ip).setPort(this.port).setManagementPort(this.managementPort)), DbCacheServiceRegistration.EXPIRE); - log.debug("续订服务状态:{}", getKey()); + log.info("续订服务状态:{}", getKey()); } @Override