_examples

command
v0.0.0-...-a89a509 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL