Skip to content

Commit f0a803d

Browse files
committed
【Doe_V1.1.0】 修改配置
1 parent 4587f06 commit f0a803d

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

mmc-dubbo-doe/src/main/resources/application-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spring:
1919
# 最大空闲
2020
max-idle: 8
2121
# 最小空闲
22-
min-idle: 0
22+
min-idle: 4
2323
# 连接超时时间
2424
timeout: 10000
2525

mmc-dubbo-doe/src/main/resources/application-prd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spring:
1212
redis:
1313
# 数据库索引
1414
database: 0
15-
host: 10.204.52.154
15+
host: 10.204.52.155
1616
port: 8080
1717
password: K6CJDjjnE9d0OxRjYNKZ
1818
jedis:
@@ -22,7 +22,7 @@ spring:
2222
# 最大空闲
2323
max-idle: 8
2424
# 最小空闲
25-
min-idle: 0
25+
min-idle: 4
2626
# 连接超时时间
2727
timeout: 10000
2828

mmc-dubbo-doe/src/main/resources/logback-spring.xml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
<file>${LOG_PATH}/info.log</file>
1717
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
1818
<!--日志文件输出的文件名-->
19-
<FileNamePattern>${LOG_PATH}/info.%d{yyyy-MM-dd}.log</FileNamePattern>
19+
<FileNamePattern>${LOG_PATH}/info.%d{yyyy-MM-dd}.%i.log.zip</FileNamePattern>
2020
<!--日志文件保留天数-->
2121
<maxHistory>60</maxHistory>
2222
<totalSizeCap>30GB</totalSizeCap>
23+
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
24+
<!--文件达到 最大128MB时会被压缩和切割 -->
25+
<maxFileSize>128MB</maxFileSize>
26+
</timeBasedFileNamingAndTriggeringPolicy>
2327
</rollingPolicy>
2428
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
2529
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
2630
</encoder>
27-
<!--日志文件最大的大小-->
28-
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
29-
<MaxFileSize>30MB</MaxFileSize>
30-
</triggeringPolicy>
3131
<filter class="ch.qos.logback.classic.filter.LevelFilter">
3232
<level>INFO</level>
3333
<onMatch>ACCEPT</onMatch>
@@ -38,18 +38,18 @@
3838
<file>${LOG_PATH}/warn.log</file>
3939
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
4040
<!--日志文件输出的文件名-->
41-
<FileNamePattern>${LOG_PATH}/warn.%d{yyyy-MM-dd}.log</FileNamePattern>
41+
<FileNamePattern>${LOG_PATH}/warn.%d{yyyy-MM-dd}.%i.log.zip</FileNamePattern>
4242
<!--日志文件保留天数-->
4343
<maxHistory>60</maxHistory>
4444
<totalSizeCap>30GB</totalSizeCap>
45+
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
46+
<!--文件达到 最大128MB时会被压缩和切割 -->
47+
<maxFileSize>128MB</maxFileSize>
48+
</timeBasedFileNamingAndTriggeringPolicy>
4549
</rollingPolicy>
4650
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
4751
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
4852
</encoder>
49-
<!--日志文件最大的大小-->
50-
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
51-
<MaxFileSize>32MB</MaxFileSize>
52-
</triggeringPolicy>
5353
<filter class="ch.qos.logback.classic.filter.LevelFilter">
5454
<level>WARN</level>
5555
<onMatch>ACCEPT</onMatch>
@@ -60,18 +60,18 @@
6060
<file>${LOG_PATH}/error.log</file>
6161
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
6262
<!--日志文件输出的文件名-->
63-
<FileNamePattern>${LOG_PATH}/error.%d{yyyy-MM-dd}.log</FileNamePattern>
63+
<FileNamePattern>${LOG_PATH}/error.%d{yyyy-MM-dd}.%i.log.zip</FileNamePattern>
6464
<!--日志文件保留天数-->
6565
<maxHistory>60</maxHistory>
6666
<totalSizeCap>30GB</totalSizeCap>
67+
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
68+
<!--文件达到 最大128MB时会被压缩和切割 -->
69+
<maxFileSize>128MB</maxFileSize>
70+
</timeBasedFileNamingAndTriggeringPolicy>
6771
</rollingPolicy>
6872
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
6973
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
7074
</encoder>
71-
<!--日志文件最大的大小-->
72-
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
73-
<MaxFileSize>32MB</MaxFileSize>
74-
</triggeringPolicy>
7575
<filter class="ch.qos.logback.classic.filter.LevelFilter">
7676
<level>ERROR</level>
7777
<onMatch>ACCEPT</onMatch>
@@ -80,10 +80,11 @@
8080
</appender>
8181
<appender name="asyncFileAppender" class="ch.qos.logback.classic.AsyncAppender">
8282
<discardingThreshold>0</discardingThreshold>
83-
<queueSize>500</queueSize>
83+
<queueSize>512</queueSize>
8484
<appender-ref ref="INFO" />
8585
</appender>
8686

87+
8788
<!-- 单独文件 -->
8889
<!--<appender></appender>-->
8990

0 commit comments

Comments
 (0)