当前位置:网站首页>The remote connection to redis is disconnected and reconnected after a while
The remote connection to redis is disconnected and reconnected after a while
2022-06-11 22:36:00 【Shan Xiaofeng】
1. problem
You will be prompted without operating the console
[ioEventLoop-4-3] i.l.core.protocol.ReconnectionHandler : Reconnected to *****:6379
Slow reconnection response , The experience is terrible
2. It uses lettuce Connection pool , This thing has bug, So replace it with jedis
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<exclusions>
<exclusion>
<groupId>io.lettuce</groupId>
<artifactId>lettuce-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency>
spring.redis.jedis.pool.max-active=20
spring.redis.jedis.pool.max-wait=-1
# Maximum blocking waiting time ( A negative number means no limit )
spring.redis.jedis.pool.max-idle=5
spring.redis.jedis.pool.min-idle=0
Replace as above , I solved the reconnection problem
边栏推荐
- Bit operation in leetcode
- Is it safe for qiniu business school to send Huatai account? Really?
- 論文閱讀《Dense Visual SLAM for RGB-D Cameras》
- 机器学习之Logistic回归简单实例
- 判断链表是否为回文结构
- Exercise 11-2 find week (15 points)
- Exercise 11-3 calculate the longest string length (15 points)
- [uniapp native plug-in] shangmi cashbox plug-in
- Exercise 8-5 using functions to realize partial copying of strings (20 points)
- STM32 Development Notes 112:ads1258 driver design - read register
猜你喜欢

图的基本操作(C语言)

NLP - fastText

Simple example of logistic regression for machine learning

学1个月爬虫就月赚6000?别被骗了,老师傅告诉你爬虫的真实情况

Inner join execution plan changed

Only three steps are needed to learn how to use low code thingjs to connect with Sen data Dix data

leetcode 257. Binary Tree Paths 二叉树的所有路径(简单)

If I take the college entrance examination again, I will study mathematics well!

Computer forced shutdown Oracle login failed

Zhanrui IOT chip 8910dm is certified by Deutsche Telekom
随机推荐
想做钢铁侠?听说很多大佬都是用它入门的
Exercise 11-2 find week (15 points)
STM32 development note 113:ads1258 drive design - reading temperature value
启牛推荐开通的证券账户安全吗?靠谱吗
【JS】1347- localStorage 的高阶用法
完好性简要介绍
NLP - fastText
Point cloud read / write (2): read / write TXT point cloud (space separated | comma separated)
Use the securecrtportable script function to read data from network devices
Using the command line to call shell in unity
Matlab point cloud processing (XXV): point cloud generation DEM (pc2dem)
一款开源的Markdown转富文本编辑器的实现原理剖析
【数据挖掘时间序列分析】餐厅销量预测
Tkinter学习笔记(四)
[Chongqing Guangdong education] college physics of Xiangtan University: mechanical and thermal reference materials
Introduction to MySQL transactions
Solution to page locking caused by xshell accidentally pressing ctrl+s
Svn deploys servers and cleints locally and uses alicloud disks for automatic backup
还在直接用 localStorage 么?该提升下逼格了
习题9-1 时间换算 (15 分)