-
Notifications
You must be signed in to change notification settings - Fork 0
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
构建测试用例 , 能够进行功能测试和压力测试 。 #6
Comments
|
redis.exceptions.ConnectionError: Error 104 while writing to socket. Connection reset by peer. |
测试发现,一些worker 会失去连接:
而成功列表一直没有更新
|
可能是redis client 数量限制 : maxclients 4064 的问题 。 |
所以需要对worker 的状态 , Nodes 的状态进行监控 , 如果有问题的话得进行相应的处理。 |
[nscc-gz_jiangli@ln2%tianhe2-C ctest_m]$ /WORK/app/redis/3.2.4/bin/redis-cli -h cn5876 |
目前推测单任务的调度耗时为 4 s ; 可使用的节点规模在 50 ~ 100 之间 (24 worker / Nodes) |
通过复用 redis 连接, 减少连接数的占用,应该可以提高并发数量:
|
50(+1) 节点的测试 :
16:23:56 任务开始执行 可以看到,目前将任务推到队列花了比较多的时间,不知道是不是受到了消息流速的限制? |
默认没有 rate_limit .
看来主要还是调度开销。不过这部分开销应该可以被计算掩盖掉。后面测试下掩盖的效果即可。 |
解决了连接数的问题后,100(+1)节点的测试如下: 其他地方的优化没有效果,主要耗时还是在: |
性能损失 : |
头节点性能: 对于百万级任务。进度63%时, redis-server 占用 1.3 GB , python 占用 0.8 GB , 总约 2GB ;因后续程序还会有更复杂功能的添加,目测支持 千万级任务没有问题。 |
运行略大于 3s 的 task :
单任务耗时为 3.11s , 没有被掩盖的耗时大概只有 0.1s |
功能测试 , 能测试出核心功能的可用性,需要逐渐添加
- [ ] 批重算机制正常压力测试,能测试出系统的承压能力
- [ ] 测试节点规模 上千节点任务测试移到V2, Pack 模式之中性能测试
The text was updated successfully, but these errors were encountered: