Closed raokrutarth closed 4 years ago
assumes the leader is already known. e.g. lowest PID is the leader until leader election is complete
bootstrap stage from doc.
use/read the dict to make the worker nodes connect to the right nodes.
This is a prereq for @chuanqichen.
How does a node know that it should connect to another? i.e. why should node x connect to y?
Assumption: each node, when it starts, knows the one thing each of the other nodes produce.
i.e. the task becomes, read the ItemDependency per node (in the worker) and make requests (could be; that only the leader can create the edges) to add edges in to the leader and verify the edges are added.
100 nodes lying there -> create the adjacency list -> create initial flow -> maximum utilization of base product
.......
I know what the dependencies are -> I need to create a flow.
......
......
......
......
Basecase returns differen blueprints. Have all requirements that makes sense! -> A req b, C req b
Next Step: Create bootstrap -> Leader: this is what we are doing -> ask for ack -> if not an ack -> recompute
needs to be added to cluster wide flow using the flow APIs added in PR #41
Goal: Everyone is sending messages according to the flow
Make sure the correct edges are formed at the end of the phase 1 protocol where all nodes have agreed on what they consume and what they produce.