predixy
predixy copied to clipboard
predixy mget 压测性能
连接predixy 进行mget 200key压测时,耗时要几十毫秒,这个时间有点久,而且还有一定的错误率,能建议一下压测时的predixy配置吗
你是怎么压测的呢,什么都不说我也没法给你建议啊
接口开了500线程压测,服务有6台,每台机器连接predixy有64个线程,predixy会是在一台8核8G的机器。报错如下: 2019-01-16 11:10:06.814611 W Handler.cpp:759 h 6 c 172.31.1.6:45562 75 will be close req 606272 direct response 12 excp Alloc.h:96 maxmemory used 2019-01-16 11:10:06.814653 N Handler.cpp:212 h 6 remove c 172.31.1.6:45562 75 with status 101 Custom 2019-01-16 11:10:06.814826 E Handler.cpp:428 h 6 s 127.0.0.1:7000 236 handle event 1 exception Alloc.h:96 maxmemory used 2019-01-16 11:10:06.814842 E Handler.cpp:434 h 6 s 127.0.0.1:7000 236 will be close with status 5 ExceptError 2019-01-16 11:10:06.814872 E Handler.cpp:434 h 6 s 172.31.1.130:7000 100 will be close with status 5 ExceptError 2019-01-16 11:10:06.814895 E Handler.cpp:428 h 4 s 127.0.0.1:7000 157 handle event 1 exception Alloc.h:96 maxmemory used 2019-01-16 11:10:06.814899 E Handler.cpp:428 h 6 s 172.31.1.130:7002 110 handle event 1 exception Alloc.h:96 maxmemory used 2019-01-16 11:10:06.814942 N Logger.cpp:152 MissLog count 3 2019-01-16 11:10:06.814905 E Handler.cpp:434 h 4 s 127.0.0.1:7000 157 will be close with status 5 ExceptError 2019-01-16 11:10:06.814905 E Handler.cpp:434 h 6 s 172.31.1.130:7002 110 will be close with status 5 ExceptError 2019-01-16 11:10:06.814920 E Handler.cpp:428 h 4 s 172.31.1.130:7000 168 handle event 1 exception Alloc.h:96 maxmemory used 2019-01-16 11:10:06.814926 E Handler.cpp:434 h 4 s 172.31.1.130:7000 168 will be close with status 5 ExceptError 2019-01-16 11:10:06.814914 N Handler.cpp:276 h 6 close s 127.0.0.1:7000 236 and c None -1 with status 5 ExceptError 2019-01-16 11:10:06.814931 N Handler.cpp:276 h 4 close s 172.31.1.130:7002 31 and c None -1 with status 5 ExceptError 2019-01-16 11:10:06.814950 W Handler.cpp:759 h 4 c 172.31.1.5:43804 25 will be close req 494432 direct response 12 excp Alloc.h:96 maxmemory used
日志报错是predixy内存使用到上限了,你配置的MaxMemory是多少
MaxMemory是0
后台看内存并没有用满
MaxMemory是0的话不会报这个错误,再检查一下配置
调用predixy的服务端会报连接失败异常错误
达到内存使用限制了,肯定连不上了
又调整了参数,内存并没有满,还是会有少数连接失败
日志里报的并不是机器内容使用满里,而是你启动predixy的配置里设置了MaxMemory,predixy自身使用内存达到了这个MaxMemory值