ferdinandhubbard981 / GameOfLife-Distributed

Other
0 stars 0 forks source link

How do we test worker disconnect during execution? #16

Closed ferdinandhubbard981 closed 2 years ago

achan-css commented 2 years ago

Workers are added to a map, with incrementing global ID. Every turn, the unique worker keys are serialised and compared to the acknowledged workers. If they are not the same, then we reallocate work again so that it's evenly split

ferdinandhubbard981 commented 2 years ago

What i mean is: If a worker shuts down e.g. power loss to machine. Does the broker recognise the disconnection, or does it only recognise a disconnection if it receives a response saying the worker has disconnected 'cleanly'

achan-css commented 2 years ago

It doesn't recognise that kind of quitting. Only when the worker sends a 14 day resignation notice by virtue of WorkerQuit.

for workers, SIGINT or control c sends a worker disconnect request

ferdinandhubbard981 commented 2 years ago

crtl-c. then run it again. it works currently