-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
During Pika pressure testing, there was a queue in the log #2882
Comments
是的队列阻塞了 thread-pool-size: 12 可以调整下 你是8核 调成8就行 |
尝试按照你说的调整了配置,还是会出现一样的问题。 port : 9221 |
355版本启动的时候,日志中有 Worker queue limit is 1766 ,这个可以说明 排队的队列最大是1766吗? 这个数值在哪儿可以修改,或者说怎么样获取的,我从你们 相关的文档 pika/docs/ops/SetUpDevEnvironment.md Line 65 in 4bfb5e7
|
When version 355 is started, there is Worker queue limit is 1766 in the log. Does this mean that the maximum queue is 1766? Where can this value be modified, or how to obtain it? I found it from your relevant document pika/docs/ops/SetUpDevEnvironment.md Line 65 in 4bfb5e7
|
您可以把您当前的配置在发下吗 |
Can you post your current configuration? |
提供一些可供参考的场景,同样的压测条件压测了 redis 6.26 和pika 3.5.5 ,发现pika hset命令的qps比较低,同时日志里面大量的出现了排队的情况,怀疑是hset命令大量的写入导致了排队 E20240902 16:19:23.452486 91162 pika_client_conn.cc:239] ip_port: 172.16.26.50:26136, db: db0, command: "HSET" "gamex:0:profile:conditionRecords:45:0:d53dbccd-6053-4802-a7c4-184cb4adb3df" "23" "\n\b\b\xca\x01\x12\x03\b\xe3\x0c", command_size: 93, arguments: 4, total_time(ms): 54, before_queue_time(ms): 0, queue_time(ms): 38, process_time(ms): 16, cmd_time(ms): 0
127.0.0.1:9221> config get *
|
Is this a regression?
Yes
Description
使用redis-cli进行压测
time /opt/redis/redis-src/src/redis-benchmark -a xxx -p 9221 -c 100 -r 500000 -n 1000000 -d 128 -t SET,GET,HSET -l --csv ,(redis-benchmark版本为6.26)此命令会持续进行压测,压测是想得到set、get、hset命令高iops的情况下,pika是否能支持较长时间,应对线上突发大流量,大约5分钟之后,pika日志里面会出现命令排队的情况,可以持续复现
E20240826 16:06:57.641274 2084 pika_client_conn.cc:239] ip_port: 172.16.186.22:23334, db: db0, command: "HSET" "myhash" "element:000000486796" "
=Jkf
E^5WSViF:VA1V>6fXU_jBXFe^EHMAfnRC^NN;5ak=ccRS^mW<cRegG;km;CCQQg9P9RkhR7FWUeEh:53OS9n5ed^CI930G5
Km;YG3DMJOCc4VY6oY=Q;;ii7", command_size: 161, arguments: 4, total_time(ms): 30, before_queue_time(ms): 0, queue_time(ms): 21, process_time(ms): 9, cmd_time(ms): 0偶尔排队时间会达到60ms,麻烦帮忙看下是否配置有可优化项,或者压测模型选择的有问题?
Please provide a link to a minimal reproduction of the bug
No response
Screenshots or videos
Please provide the version you discovered this bug in (check about page for version information)
Anything else?
No response
The text was updated successfully, but these errors were encountered: