Skip to content
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

Add Backup worker to handle PUTCHUNK messages #21

Closed
fabiodrg opened this issue Apr 9, 2019 · 0 comments
Closed

Add Backup worker to handle PUTCHUNK messages #21

fabiodrg opened this issue Apr 9, 2019 · 0 comments
Assignees
Labels
High Priority

Comments

@fabiodrg
Copy link
Collaborator

fabiodrg commented Apr 9, 2019

The client requests the backup service. This splits the file in chunks each will be sent, one by one, to all the peers. Considering #17, the process of listening for STORED messages and ensuring the desired replication degree may take a while (5 retries, up to ~31 seconds). It makes sense to dispatch the service requests, like backup requests, to workers. I.e, the Peer splits the file in chunks as it is, it's a fast operation, but then launches a worker (thread) responsible for creating the message, await for responses and ensuring the replication degree. Then it's ready for incoming backup or other service requests.

@fabiodrg fabiodrg added the High Priority label Apr 9, 2019
@fabiodrg fabiodrg self-assigned this Apr 9, 2019
@fabiodrg fabiodrg added this to To do in TP1: Backup service via automation Apr 9, 2019
@fabiodrg fabiodrg moved this from To do to In progress in TP1: Backup service Apr 10, 2019
TP1: Backup service automation moved this from In progress to Done Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High Priority
Projects
Development

No branches or pull requests

1 participant