Closed skmonga closed 5 years ago
Need to change the method signature with replacement of the type EdgeInfoData
with a boolean
and handle it correspondingly.
In the previous implementation, EdgeInfoData
was passed which contained the storage and reliability information for the client in case the client was an Edge itself. Since the Edge can only contact its own Fog, so with EdgeInfoData
passed, this Edge can be picked for local write since we can check if it has storage available or if not possible, we try to pick another local Edge and the move to picking other remote replicas for writing. If only a boolean is passed to indicate if the client is an Edge, then also the flow remains the same, first try a local Edge then move to remote replicas. In fact, this boolean has no impact on the decision making of the contacted Fog as of now, so this can be totally removed. This issue thus requires a discussion thus the needinfo tag.
Closing for now, may need to reopen after discussion.
During replica identification for writing blocks, the current api takes the edge related information such as ip , port to make the Fog aware of it being an edge device. Instead pass a boolean flag to handle it.