separation of reserved capacity and deployment contracts #482
muhamadazmy
started this conversation in
Ideas
Replies: 2 comments 13 replies
-
I see what kind of issues it solves and I do agree it can be a good idea. If we go this way, I think we can remove the concept of rent contracts, since you could create a capacity contract that spans the entire node's resources. |
Beta Was this translation helpful? Give feedback.
7 replies
-
How would this work across different nodes? I need to create capacity contract for each node? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now (still work in progress actually) a contract between a user and the node is sealed with a Deployment Contract:
In theory reservation goes like this
While this sounds straight forward, some issues arise because of the following:
To avoid all those issues and create a more "general" way to plan a complex deployment I suggest the following refactoring:
The scenario goes as follows:
This way a user can ask for capacity on multiple nodes. and plan their span in the network. Once all Capacity is reserved the user then can proceed by creating contracts. Contracts now has less attributes. It should include mainly the following:
Note: there is no policy since now contracts already know ahead what node ids they have (from their reserved capacity)
Visually (from the dashboard or the user perspective in general) The user sees his reserved capacity as dedicated "almost rented nodes" where he can use to put his workloads. He pays for the full rented capacity.
User then can choose to rent more, expand, shrink, or delete certain "sub-nodes" when needed.
I will try to add sequence diagrams and object diagrams to make it cleare
Beta Was this translation helpful? Give feedback.
All reactions