Comments (3)
请 @xmtsui 帮忙回答一下。
from sofa-bolt.
- 请求失败的问题,目前我们线上是这样在用的,没有碰到过这样的问题,不知道是否方便贴一下代码,我也来看下你的实现,分析下是不是我们有什么定制或者抽象不好的地方,导致你们直接使用有问题。
- 性能这块当时压测的数据我找不到了,在高并发下的优化很明显(印象有20%以上),低并发不明显,不过没有未知异常的失败情况。我回头整理下bolt-benchmark,也把压测工程开出来,到时也把具体数据提供出来。
from sofa-bolt.
内部做了一些压测,当前结论是
对于bolt在Epoll和Decoder上的优化性能,测试的反馈如下:
在Epoll方面,Epoll带来的性能提升比较明显,整体在10%左右,不论是消息还是rpc调用上都有优秀的发挥,消息收发上来说对于高连接数的高并发的场景,性能会提高至10%以上,在低连接数时的性能提升较低;在RPC调用这块,Epoll的提升比较全面,低连接数时的性能在6%~8%左右,在高连接数时能达到10%。
在Decoder方面,AbstractBatchDecoder和ByteToMessageDecoder在低并发的情况下,不论是消息还是rpc调用两者的性能相当。但是AbstractBatchDecoder相比ByteToMessageDecoder来说,其批量处理的特性使得它在
高并发的情况下能够获得显著的性能提升,经过反复测试,在10%以上,且请求的大小越小性能提升越大。
在两者都开启的情况下进行测试,可以发现整体性能有着显著的提升,在消息收发方面,平均提升在10%左右,最高可达20%,与消息的大小成反比;在RPC调用方面,整体的提升可达20%以上,与并发数连接数的增加成正比,最高可达33%。
测试工程准备ok后再开放,本issue先关闭了
from sofa-bolt.
Related Issues (20)
- DefaultInvokeFuture Why need to switch class loaders? HOT 2
- Bug: Missing version number causes project to fail to compile
- 有概率无法获取连接吗? HOT 1
- 多线程环境下添加EventProcessor报错 HOT 3
- com.alipay.remoting.rpc.exception.InvokeTimeoutException: Rpc invocation timeout[responseCommand TIMEOUT] HOT 4
- 客户端请求超时 HOT 1
- SyncUserProcessor和AsyncUserProcessor保持相同的业务抛异常语义。即服务端异步处理请求时,如果AsyncUserProcessor处理过程中遭遇exception,调用端可以通过catch exception进行处理,而不是通过instance of判断响应的类型。 HOT 3
- AbstractBatchDecoder 中的判断换种写法是不是更好理解? HOT 1
- Bolt can not run without hessian HOT 1
- How does SOFABolt ensure machine performance issues? HOT 1
- RpcClient 的 oneway 方法可以设置发送时的顺序吗 HOT 2
- Bolt是否支持JDK17 LTS版本? HOT 6
- RpcClient发送大size的请求会返回CLIENT_SEND_ERROR HOT 1
- Diffrent thread send heartbeat to server at the same time HOT 5
- debug日志报出Please check your pipeline configuration HOT 7
- Why "Unknown protocol code: [ProtocolVersion{version=[3]}] while decode in ProtocolDecoder.]" warning message reported in connection-event log file? HOT 2
- Add closed check in Connection's isFine HOT 2
- hessian dependency conflict HOT 6
- heartbeat HOT 1
- wirshark bolt.lua 怎么支持识别多个端口的 bolt 协议 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sofa-bolt.