-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fix performance tool non throttle #1378
Conversation
@chia7712 再麻煩學長看一下會不會影響到 release 的時程,謝謝 |
請問這個有包含在此PR中嗎 |
沒有,要現在放上去嗎 |
|
1 similar comment
|
是的,跟效能有關的話麻煩先上,要包含在 0.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
已新增 TODO,再麻煩學長 review ,謝謝 |
記得開議題 |
此 PR 為 Performance tool 新增一個判斷式,用來判斷有沒有開啟 throttle
突然想到當初沒有測到沒加入 throttle 功能的打資料效果,發現會影響到 performance tool producers 的吞吐量,如下圖
實作throttle前
與實作throttle後
的差異實作throttle前
的 Revision number: 3123a22測試指令:
經過確認後發現是修改 partition selector 的問題,需要加上一個判斷式來判斷有無 throttle
下圖為此 PR 修正後的測試 throttle 功能的數據

下次會在更細心的檢查,不好意思
不過在修改此 PR 時,發現新增完 throttle 功能後,throughput 會下降,如上圖
新增 throttle 前
與未 throttle
造成吞吐量下降的原因應該是 queue 的影響,我把目前 producers 共享一個 queue 的作法改成每個 producer 使用一個 queue 和 把目前 size 為 1000 的 queue 加大到 3000 後,發現 throughput 上升了兩倍,如下圖吞吐量數據