当前位置:网站首页>io.lettuce.core。RedisCommandTimeoutException命令超时
io.lettuce.core。RedisCommandTimeoutException命令超时
2022-08-09 06:28:00 【Koala Rice Bowl】
Environment Configuration
redis 3 master 3 slaves, the client is lettuce
development environment cpu 12 cores, test environment cpu 2 cores
spring:redis:timeout: 5000 # in milliseconds#database: 0ssl: falsecluster:password: *************nodes: 172.18.226.82:7001,172.18.226.82:7002,172.18.226.82:7003,172.18.226.82:7004,172.18.226.82:7005,172.18.226.82:7006max-redirects: 3 # Get the maximum number of failed redirectslettuce:pool:max-active: 500 #The maximum number of connections in the connection pool (use a negative value to indicate no limit)max-idle: 100 # The maximum idle connection in the connection poolmin-idle: 50 # The minimum idle connection in the connection poolmax-wait: -1 # The maximum blocking waiting time of the connection pool (use a negative value to indicate no limit)
The timeout is set to 5 seconds, because of business requirements, there is a time-consuming between 15-20 for the cache refresh time;
Time:
Development environment: about 10s, no RedisCommandTimeoutException exception was generatedTest environment: io.lettuce.core.RedisCommandTimeoutException: Command timed out exception occurs in about 20s
Cause analysis:
All netty threads are busy causing delays in decoding and sending commands from Redis response
All connections are busy
The Redis server took too long to respond to the request.
Solution:
- timeout time adjustment (can be solved in most cases)
- Improve server hardware performance
- Reduce cache refresh method
The data processing efficiency of the test environment is low, and the exception disappears after setting the timeout to 50000ms
边栏推荐
猜你喜欢
Getting started with kubernetes apparmor
Gao Zelong, a famous digital collection expert and founder of the Digital Collection Conference, was interviewed by China Entrepreneur Magazine
Bismuth sulfide nanorods with CT imaging function | Bismuth sulfide-zinc protoporphyrin composites (PAMAM/Bi2S3 composite nanoparticles)
GNNExplainer applied to node classification task
flask创建数据库失败未报错
输入框最前面添加放大镜&&background-image和background-color冲突问题
[MySQL]二、进程的关系、MySQL密码破解、建表和建库相关命令
Fe3O4/SiO2 Composite Magnetic Nanoparticles Aminated on SiO2-NH2/Fe3O4 Surface (Qiyue Reagent)
中英文说明书丨CalBioreagents 醛固酮单克隆抗体
Cysteine/Galactose/Perylenediimide Functionalized Fe3O4 Fe3O4 Nanomaterials | Scientific Research Reagents
随机推荐
redis 运行lua 脚本 出现Invalid argument(s)
如何操作数据库
C语言实现顺序栈和链队列
默默重新开始,第一页也是新的一页
golang xml 处理动态属性
CalBioreagents超全Id 蛋白兔单克隆抗体,助力科研
05 多线程与高并发 - ThreadPoolExecutor 源码解析
Harbor Enterprise Mirror Warehouse Construction
Word文件的只读模式没有密码怎么退出?
Silently start over, the first page is also a new page
The singleton pattern
线程的6种状态
【R语言】对文件进行归一化整理到各文件类型文件夹
Gao Zelong, a famous digital collection expert and founder of the Digital Collection Conference, was interviewed by China Entrepreneur Magazine
vs番茄助手的方便功能和便捷快捷键介绍
Introduction of convenient functions and convenient shortcut keys of vs tomato assistant
pdf加密、找回密码
Cysteine/Galactose/Perylenediimide Functionalized Fe3O4 Fe3O4 Nanomaterials | Scientific Research Reagents
DevNet: Deviation Aware Networkfor Lane Detection
[MySQL] Second, the relationship between processes, MySQL password cracking, table building and database building related commands