当前位置:网站首页>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
边栏推荐
- el-table缓存数据
- The singleton pattern
- Word文件的只读模式没有密码怎么退出?
- [GO]、数组与切片
- C# 利用iTextSharp画PDF
- Gao Zelong, a famous digital collection expert and founder of the Digital Collection Conference, was interviewed by China Entrepreneur Magazine
- 【Feel】In the Unity Feel plugin, Camera cannot display CameraShake correctly
- 【Feel】Unity Feel插件中,Camera无法正确显示CameraShake
- SiO2 / KH550 modified ferroferric oxide nano magnetic particles | PDA package the ferromagnetic oxide nanoparticles (research)
- jdepend
猜你喜欢
【Feel】Unity Feel插件中,Camera无法正确显示CameraShake
治疗消化性溃疡—Toronto Research Chemicals 甘氨酸铝
按图搜索1688商品接口(item_search_img-按图搜索1688商品(拍立淘接口)代码对接教程
运放-运算放大器经典应用电路大全-应用电路大全
A test engineer with an annual salary of 35W was laid off. Personal experience: advice that you have to listen to
C语言实现顺序栈和链队列
Magnetic Core-Shell Fe3O4 Particles Supported Gold Nanostars | Magnetic Fe3O4-POSS-COOH | Superparamagnetic Fe3O4-Polydopamine Core-Shell Nanoparticles
qt send mail program
中英文说明书丨CalBioreagents ACTH N端单克隆抗体
中英文说明书丨TRC 交替醇(Catalogue NumberA575760)
随机推荐
Adds, deletes, searches, and changes the leading doubly circular linked list (implemented in C language)
推进产教融合 赋能教育创新发展 | 华云数据荣获“企业贡献奖”
[GO]、数组与切片
el-table缓存数据
中英文说明书丨CalBioreagents 山羊抗人白蛋白,IgG组分
PDF不能打印和复制的问题如何解决?
Unity五子棋游戏设计 和简单AI实现(1)
[MySQL] Second, the relationship between processes, MySQL password cracking, table building and database building related commands
程序性能分析 —— 复杂度分析
io.lettuce.core.RedisCommandTimeoutException Command timed out
static静态关键字和继承
Remember a nest.js route that matches all the path problems that follow
报错:FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disab
jdepend
Unity backgammon game design and simple AI implementation (1)
电学知识的疑问
Web APIs BOM- 操作浏览器:本地存储
Harbor Enterprise Mirror Warehouse Construction
Xilinx Zynq ZynqMP DNA
sql problem solving statement to create a table