From bb62196bc1f5b2020e6a7467e25322fac3d39f51 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期三, 14 九月 2022 01:49:08 +0800
Subject: [PATCH] 优化 Redis 连接数
---
springboot/src/main/resources/application-dev.yml | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/springboot/src/main/resources/application-dev.yml b/springboot/src/main/resources/application-dev.yml
index c01a531..a22bb70 100644
--- a/springboot/src/main/resources/application-dev.yml
+++ b/springboot/src/main/resources/application-dev.yml
@@ -1,9 +1,10 @@
jedis:
pool:
config:
- maxTotal: 100
- maxIdle: 20
- maxWaitMillis: 20000
+ maxTotal: 300
+ maxIdle: 50
+ minIdle: 20
+ maxWaitMillis: 3000
host: dev.redis.java110.com
port: 6379
timeout: 3000
@@ -43,9 +44,9 @@
password: hc
pool:
max-active: 300
- max-wait: 10000
- max-idle: 100
- min-idle: 0
+ max-wait: 3000
+ max-idle: 50
+ min-idle: 20
timeout: 0
feign:
--
Gitblit v1.8.0