-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
适合新手的任务列表,欢迎认领 #596
Comments
您好,我想试试第一个任务:并行压缩解压缩snapshot |
@fengjiachun 您好,我想试试第二个任务。 |
@LXPWing , could you please provide the design of your implementation? |
@hzh0425 could you please provide the design of your implementation? |
@SteNicholas 您好,我是这样考虑的.主要是基于common-compress这个工具包 1.对于压缩而言:
2.对于解压缩而言:
3.考虑到压缩和解压缩都用到了线程池,我想是否应该开辟一个专门的线程池用于压缩和解压缩呢? 4.最后,我已经尝试过上述的方法,比起单线程压缩更快更高效. |
@hzh0425 👍, 线程数可以作为一个 NodeOptions 的配置选项来提供给用户,建议给出测试对比报告,然后默认一个设置值。 |
@hzh0425 为了防止出现意料之外的 bug,并行压缩也可以整体作为一个选项是否开启,默认还是走目前的逻辑。 |
@killme2008 好的,十分感谢,那我开始尝试这个方案. |
@hzh0425 思路很清晰了,可以开始了,十分感谢 |
认领 #503。 设计说明需要断点续传的原因包括网络原因导致的:
因此,增加如下容错机制:
实现思路:
|
@312223105 欢迎尝试,目前缺少 snapshot 文件的分片逻辑,可能也需要搞下,分片理论上可以做并行下载,不过这是未来的优化方向,暂时可以放后面。 |
申请人条件不限,申请的话可以在留言里简单说下自己的设计~
参考资料:
SOFAJRaft文档
SOFAJRaft source/architecture materials from community
The text was updated successfully, but these errors were encountered: