Skip to content
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

节点间同步TX慢 #441

Open
cchanm opened this issue Mar 26, 2020 · 1 comment
Open

节点间同步TX慢 #441

cchanm opened this issue Mar 26, 2020 · 1 comment
Assignees

Comments

@cchanm
Copy link
Contributor

cchanm commented Mar 26, 2020

当前节点之间同步TX较慢,当有大量BLOCK需要同步时(如有较多的子链子块),由于同步BLOCK优化,并且BLOCK及TX在同一个通道,同一个线程在同步,所以在同步BLOCK时,TX会暂停,等BLOCK同步完后,再同步TX。
当前测试,如果只有较少的BLOCK同步时,TPS大概在1200左右,如果有较多BLOCK同步时,TPS会降到几十到几百。

@cchanm cchanm self-assigned this May 27, 2020
@cchanm
Copy link
Contributor Author

cchanm commented May 27, 2020

第一阶段的优化采用重叠IO方式来实现BLOCK和TX同时同步(当前是在同步BLOCK时,不能同步TX),同时将较验与同步分离,提高较验并行度。
第二阶段的优化采用BLOCK和TX的TCP连接分离方式,使用TX同步可以与BLOCK完全同时同步。
第三阶段可以考虑采用多TCP连接方式,提高BLOCK和TX同步效率。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant