Open authwork opened 5 years ago
on the server side, it will wait all workers' data to merge them before sending back ACK for workers' requests
on the server side, it will wait all workers' data to merge them before sending back ACK for workers' requests
Exactly, but this is the description of BSP model. (It means the server needs to wait all workers' data)
In the real implementation, we need to use the scheduler to manage the data synchronization (see here) without changing the KVServerDefaultHandle.
// WaitAllFinished();
for(int t : ts)
app.Wait(t); //wait all workers finish push
I have surveyed lots of projects using ps-lite to implement BSP model. Most of them simply behave like:
I do not think they are real BSP model because each worker only wait for the accomplishment of its own push (not other workers)
Based on the test_simple_app and docs/overview.md, the BSP way should be:
Scheduler
Server
Worker
I think the overall logic is similar to the BSP SGD described in the docs/overview