首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
性能测试问题,http->tcp->tcp三层结构
路过大神好! 我们在尝试用tcp做服务,用http做对外统一网关。 结构是这样的(从上往下调用): http(nginx+fpm)网关层 tcp A(swoole server)服务层 tcp B(swoole server)服务层 http测试接口http://localhost/test/callphp2.php ab测试:ab -n 1000000 -c 200 http://localhost/test/callphp2.php 现在压力全在http这台机器上,tcp服务的负载特别低。 [attach]179[/attach] [attach]178[/attach] 然后是在http请求tcp和B上都有超时。 请问有遇到过这种情况的没?请求压力没有转移呢?
发布于7年前 · 0 次浏览 · 来自
提问
阿
阿伟
路过大神好! 我们在尝试用tcp做服务,用http做对外统一网关。 结构是这样的(从上往下调用): http(nginx+fpm)网关层 tcp A(swoole server)服务层 tcp B(swoole server)服务层 http测试接口http://localhost/test/callphp2.php ab测试:ab -n 1000000 -c 200 http://localhost/test/callphp2.php 现在压力全在http这台机器上,tcp服务的负载特别低。 [attach]179[/attach] [attach]178[/attach] 然后是在http请求tcp和B上都有超时。 请问有遇到过这种情况的没?请求压力没有转移呢?
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2019-01-16
俺
俺村俺最傻
备注:sysctl.conf和nginx.conf已按博客配置 http://blog.csdn.net/lijinqi1987/article/details/73743914
赞
0
回复
2019-01-16
小
小祖宗
备注2:Linux最大线程数限制已按 文章配置 http://blog.csdn.net/u013673976/article/details/51788566
赞
0
回复
2019-01-17
c
c123
压力在`php-fpm`上吗?建议使用长连接`KeepAlive`进行压测。
赞
0
回复