-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Feature request] Do not batch/aggregate when basefee is lower than "BatchPreCommitAboveBaseFee/AggregateAboveBaseFee" #7839
Comments
without having restarted the
|
without having restarted the before:
changed to:
at the same 100aFIL baseFee leads to commit aggregation. |
manual
and
|
|
Hello again @f8-ptrk Thanks for taking the time to find this bug and creating a the report. |
@magik6k suggested maybe another thing we can do is, add a new configuration variable to say, if the base fee is below it, auto disable batching & aggregation. |
I´m not entirely sure the suggest logic here takes into account scenarioes when the BaseFee is consistently above 0.32nFIL and falls under 0.32nFIL for a short period of time (xx-minutes / xx-hours). It´s potentially uneconomically to send the messages in these scenarios, especially for larger amounts of sectors in aggregation/batching (needs further investigation and calculation). What would the wanted behaviour when you have:
|
can the basefee be below the threshhold? yes. #7002 this is a direct consequence of this issue here. it needs to be fixed or it stays a gamble to do batching/aggregation |
I was rather trying to get to the bottom of what the wanted behaviour from your point of view would be when the baseFee falls below the threshold when you already have sectors that are in currently in batching/aggregation. And that is totally a seperate question from #7002 which is a bug, which should be resolved. This is a feature request/enhacement. |
glad you asked: a config flag that changes between always batch and never batch below threshold |
https://lotus.filecoin.io/storage-providers/advanced-configurations/sealing/#provecommitaggregate you're right - this is a feature request. i cannot find any specification documents for lotus that would describe the feature so i use the docs.
|
That sounds possible to implement. What would you believe is the ideal feature when you have started batching/agreggating some sectors, but then then Basfee drops below the threshold? |
That seems to stem from an old config-file yes, and should be fixed.
Thanks! As an open source software you always more then welcome to add PRs for fixing this. For the Lotus docs I would recommend keeping the issues to the relevant repo: https://github.com/filecoin-project/lotus-docs/issues. There is also a very convenient "edit this page on Github" link at the bottom of each docs page that makes it very easy to make easy PRs for fixing c+p errors when you find them |
then behave as before, now.
fun story. the github logo on the docs page leads me to the lotus repo. and then you loose me as finding the docs repo needs 2-3 clicks and even typing. |
Again, please add these as issues in https://github.com/filecoin-project/lotus-docs/issues whenever you find them. |
Checklist
Latest release
, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Describe the Bug
We have the following settings in the
config.toml
for thelotus-miner
The calibnet baseFee is at 100 aFIL - the minimal possible value.
Now we start sealing sectors and the lotus-miner gathers 16 precommits before trying to submit the batch - with the baseFee being way below the configured
#BatchPreCommitAboveBaseFee = "0.00000000032 FIL"
(assuming this defaults to the default value) it sends 16 individual messages.This comes unexpected. We expected the
lotus-miner
to send the message on the spot if the baseFee is below the baseFee threshold and not gather them untilMaxPreCommitBatch
is reached.We are not sure if this is actually intended behavior - the expectations out there seem to be that the messages get send on the spot (see minerX3 chan on slack: https://filecoinproject.slack.com/archives/C02G9S9T91Q/p1640215123223200). If this is intended what is the reasoning behind it? We doubt it will be cheaper to wait until the batch is full instead of sending the precommit messages on the spot as soon as the precommit finished.
We are testing the commit aggregation now. Will update this issue if the same thing occurs there.
Logging Information
Repo Steps
See bug description.
The text was updated successfully, but these errors were encountered: