dream-lab / ElfStore

ElfStore: Edge local federated Store
Apache License 2.0
3 stars 2 forks source link

No need to pass client's edge information during replica identification, a boolean flag will suffice #4

Closed skmonga closed 5 years ago

skmonga commented 5 years ago

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.

skmonga commented 5 years ago

Need to change the method signature with replacement of the type EdgeInfoData with a boolean and handle it correspondingly.

skmonga commented 5 years ago

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.

skmonga commented 5 years ago

Closing for now, may need to reopen after discussion.