当前位置:网站首页>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
边栏推荐
- [R language] Normalize and organize files into folders of various file types
- [R language] Extract all files under a folder to a specific folder
- 直接用的zip包 缺少很多依赖,pip没有,感觉用anaconda create一个环境会方便点
- Data center project preliminary summary
- 2022-08-08: Given an array arr, it represents the height of the missiles that will appear in order from morning to night.When the cannon shoots missiles, once the cannon is set to shoot at a certain h
- Adds, deletes, searches, and changes the leading doubly circular linked list (implemented in C language)
- VB.net程序关闭后后台还在与SQL连接
- 报错:flask: TypeError: ‘function‘ object is not iterable
- Gao Zelong, a famous digital collection expert and founder of the Digital Collection Conference, was interviewed by China Entrepreneur Magazine
- 使用百度EasyDL实现智能垃圾箱
猜你喜欢
The solution that does not work and does not take effect after VScode installs ESlint
phpstudy 安装 flarum论坛
phpstudy install flarum forum
Use of PlantUML plugin in idea
Deep Learning - Principles of Neural Networks 2
Redis 2 - 高级
C# 利用iTextSharp画PDF
Gao Zelong, a famous digital collection expert and founder of the Digital Collection Conference, was interviewed by China Entrepreneur Magazine
报错jinja2.exceptions.UndefinedError: ‘form‘ is undefined
Import the pycharm environment package into another environment
随机推荐
输入框最前面添加放大镜&&background-image和background-color冲突问题
阿里巴巴官方技术号
sql problem solving statement to create a table
Initials-Letter Query Tool-Word Abbreviation Query Online Tool
安装flask
中英文说明书丨CalBioreagents ACTH N端单克隆抗体
带头双向循环链表的增删查改(C语言实现)
[HNOI2002]营业额统计
工控设备的系统如何进行加固
Output method of list string print(*a) print(““.join(str(c) for c in a) )
DDD 领域驱动设计
INSTALL_RPATH and BUILD_RPATH problem in CMake
MYSQLg advanced ------ batch insert millions of data
Error jinja2.exceptions.UndefinedError: 'form' is undefined
声母-字母查询工具-词语缩写查询在线工具
untiy countdown
治疗消化性溃疡—Toronto Research Chemicals 甘氨酸铝
22 high mid term paper topics forecast
XxlJobConfig分布式定时器任务管理XxlJob配置类,替代
Error: flask: TypeError: 'function' object is not iterable