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

扩展订单填充策略 #70

Closed
2 tasks done
Tracked by #149
dtynn opened this issue Mar 11, 2022 · 6 comments
Closed
2 tasks done
Tracked by #149

扩展订单填充策略 #70

dtynn opened this issue Mar 11, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request P3 Low - not important right now
Milestone

Comments

@dtynn
Copy link
Contributor

dtynn commented Mar 11, 2022

可以考虑的方向:

  • 允许 sealing_thread 等待订单,直到满足条件
  • 允许设定最小填充Piece量/数据量
@ly82505129
Copy link

是否可以设置为等待多久的数据量,理论来说等待一段时间就应该可以开始处理deal了,正常来说看起来是连续的deal

@dtynn dtynn added enhancement New feature or request P3 Low - not important right now labels Mar 11, 2022
@dtynn
Copy link
Contributor Author

dtynn commented Mar 11, 2022

是否可以设置为等待多久的数据量,理论来说等待一段时间就应该可以开始处理deal了,正常来说看起来是连续的deal

嗯,这是一种常见的策略,实现起来也不复杂。
但是,可能还包含一些额外的决策,比如:

  • 如果等不到订单,是开启 CC 流程,还是如何
  • 如果等到的数据量不足(考虑成本,很有可能未来会存在成本平衡线,比如一个扇区内存储多大的有效数据量才不亏),如何决策

这个issue 会是一个较长期的讨论,你有什么想法随时可以提到这边 @ly82505129

@ly82505129
Copy link

正常一个扇区理论来说肯定存储满足32G的Datacap比较合理,但是往往有时候没办法凑的特别刚好,所以在一定周期内尽可能大,如果在5个小时之内只有18G那也要开始封装了

@dtynn
Copy link
Contributor Author

dtynn commented Mar 11, 2022

正常一个扇区理论来说肯定存储满足32G的Datacap比较合理,但是往往有时候没办法凑的特别刚好,所以在一定周期内尽可能大,如果在5个小时之内只有18G那也要开始封装了

没错,这个也是现在 lotus 的算力组件体系中的策略。
我们还想看看有没有其他的策略,比如类似 必须首先满足80%的填充率,接下来 1) 继续等待30min; 2) 达成90%填充率; 任一条件达成立即启动

@ly82505129
Copy link

正常一个扇区理论来说肯定存储满足32G的Datacap比较合理,但是往往有时候没办法凑的特别刚好,所以在一定周期内尽可能大,如果在5个小时之内只有18G那也要开始封装了

没错,这个也是现在 lotus 的算力组件体系中的策略。 我们还想看看有没有其他的策略,比如类似 必须首先满足80%的填充率,接下来 1) 继续等待30min; 2) 达成90%填充率; 任一条件达成立即启动

看起来是个不错的策略

@dtynn dtynn added this to the v0.3.0 milestone May 9, 2022
@dtynn dtynn moved this to Todo in venus-cluster May 9, 2022
@dtynn dtynn mentioned this issue May 9, 2022
22 tasks
@dtynn dtynn self-assigned this May 13, 2022
@dtynn dtynn moved this from Todo to In Progress in venus-cluster May 13, 2022
@dtynn
Copy link
Contributor Author

dtynn commented May 13, 2022

@dtynn dtynn closed this as completed May 24, 2022
Repository owner moved this from In Progress to Done in venus-cluster May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3 Low - not important right now
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants