Documentation ¶
Overview ¶
simulate distributed system that uses leases to partition work across a fleet of workers.
Each worker resonsible to 'create', 'delete' and 'handle' leases.
simple worker that loops forever and ask for a tasks each time it finish a task, it updates 4 extra fields: runtime - time taken to finish the task success - indicates if the last task finished successfully last_update - last time this task updated; timestamp in unix seconds results - set or list contains the last task result.
simulate distributed system that uses leases to partition work across a fleet of workers.
Work tasks should distribute evenly between workers.
When worker stops holding a lease, another worker will take and hold it.
simple worker implementation that loop "forever" and ask for jobs/tasks to handle