vkuznet / transfer2go

Distributed, loosely couple agent-based transferring system
MIT License
8 stars 2 forks source link

Add scheduling algorithm #48

Closed rishiloyola closed 7 years ago

rishiloyola commented 7 years ago

Algorithm:

- fetch data from agents and filter out agents which have given dataset(partially or fully).  
- Sort these filtered agents according to prediction values of ML model.
- Now, start serving the request from the highest prediction values to lowermost prediction values.
- Check if the source agent is up or not if it is up then submit that request to the destination.

NOTE: Do not merge this request.

rishiloyola commented 7 years ago

@vkuznet Can you review this pr? I implemented the same algorithm as discussed on email. NOTE: Do not merge this.

vkuznet commented 7 years ago

Looks good to me. Just adjust initial description on this ticket to first item, i.e. instead of getting from dasgoclient fetch data from agents and make an union.

rishiloyola commented 7 years ago

@vkuznet Done.

vkuznet commented 7 years ago

Should I merge this PR or wait for other changes?

rishiloyola commented 7 years ago

@vkuznet Yes, you can merge this. I tested the partial transfer locally. It is working fine.