-
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
Depreciate some lotus-worker
commands?
#10210
Comments
You're spot on, this is exactly why I use the |
spot on. the original idea i had about it was that i run this and then the worker runs out of tasks and i can restart/stop it safely. reading the help thou made me think that it is just not accepting new tasks until the running ones finish. a command to "on the fly" add or remove sealing tasks from a worker is needed. it allows to fine tune sealing pipelines that naturally might not be balance'able. we sometimes get pc2 piled up, then 5h later c2s - instead of using workers that do both tasks it would be great (possibly this works already, never tried thou - traditionalist i would say...) to have one flipping between them on command! i am not sure if that even would allow to enable the "run out of jobs" option. disable all tasks should lead to an idle worker that can be stopped, right? |
It would also be great to have a command that "forces" the clean out of the a worker for emergency shutdowns. |
Posting this thread from Slack, which also showcases a users confusion with some of these commands. I think based on this thread it is rather safe to at least start the work on an eventual deprecation of:
Historical Slack threads about the wait-quiet command, and user confusion about what it does/"not working":
I will leave the other two commands up for debate a bit longer, but for now it seems like |
Checklist
Ideas
.Lotus component
Improvement Suggestion
The
lotus-worker
currently has a couple of commands that tries to do somewhat the same thing:lotus-worker set
- gives the ability to enable/disable new task processing on a workerlotus-worker wait-quiet
- Using this command when you have a sealing task running, blocks the command from finishing until the sealing task is done.lotus-worker tasks enable/disable
- Allows you to enable or disable a single sealing tasks/ (and soon all sealing tasks), apart from those that are non-configurable (FUS FIN GET FRU C1 PR1).lotus-worker set
command, apart from that it will not block the non-configurable tasks. So in contrast to thelotus-worker set
cmd, it will allow other workers will be able to fetch/get sealing tasks/sector from the lotus-worker storage when all sealing tasks are disabled.Usage of these cmds from an storage providers standpoint:
Based on previous issue reports and Slack threads I think most SPs are looking for a command that gives them the ability to “gracefully shutdown” a worker for maintenance:
lotus-worker stop
to detach it and do maintenance/upgrades.Looking for peoples point of view on these commands, and which of these command(s) is actually useful/unuseful. Depreciating some of these seems desirable to prevent user confusion - given that the command(s) remaining has the desired feature(s).
The text was updated successfully, but these errors were encountered: