-
Notifications
You must be signed in to change notification settings - Fork 11
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
allow renting dedicated nodes if they're on standby status #923
Comments
ATM contracts (rent/node) cannot be created on nodes that have power state Power state Node contract creation:
Rent contract creation:
What is your suggestion here? |
From TFChain perspective and according to @LeeSmet inputs here #873 (comment) about how it was designed, it is all working as expected regarding rent contracts, assuming that this is client responsibility to cancel contract if node is down. Now the question is do we want to change the design and remove this rule? |
@renauter the goal is to have e.g 100 nodes in my farm available for renting, problem is the will cost too much power if they don't get rented right away. What I'm suggesting is allowing that to increase the ready/available capacity and save the power bill. I believe this should be relaxed (removing the condition) to allow the renting and maintain the power saving. The farmerbot is responsible start waking it up within 5 minutes (checking interval) We will also need in the tooling specially the UI some sort of notification of the user if the rented a standby node that didn't wake up (if we don't update the billing) |
The original design of this was that only nodes which are online can be rented. The user needs to contact the farmer bot so that the node to be rented can be brought online, after which the corresponding chain calls are done by the user.
This was a major reason to do things like this, since a "standby" node might not actually be standby. The user will have reserved a node, which is then paid for, even though said node might not come online at all. Additionally, even if it comes online, this might take a significant time which needs proper consideration in the UX |
OK
Are we OK with that ? In addition we need to prevent node from having |
Update: The elapsed time for billing a contract is calculated using the last contract lock timestamp as initial time (see here) and this timestamp is only updated thanks to a previous call to To fix this situation, an extra contract lock timestamp update was added outside of Even if not the most elegant way I don't see better at the moment and any suggestion is welcome. |
These PRs will be merged soon, thanks for @renauter , It is related to the power-saving feature and the farmer bot so better to have a look @xmonader @rawdaGastan and make sure that the new behavior will be in sync ..
To summarize the incoming changes in behavior:
Some concerns: Update: |
@A-Harby you can use the clients to rent this node. For the dashboard, there is an issue to allow that threefoldtech/tfgrid-sdk-ts#2143 |
allow renting dedicated nodes if they're on standby status if not done already
the goal for threefold, is to run a farm full of nodes power managed by farmerbot and be in power target off (managed by the farmerbot), and the farmerbot is supposed to bring these nodes online if they got rented (we need to make sure the are immediately usable for the user "before billing them" otherwise the user will be abused
The text was updated successfully, but these errors were encountered: