The lock with a token

Quorum 22
Users0 req/sCron schedu…1 vCPU · 1 GBCron schedu…1 vCPU · 1 GBWorker2 vCPU · 4 GB
Users0 req/sCron schedu…1 vCPU · 1 GBCron schedu…1 vCPU · 1 GBWorker2 vCPU · 4 GB

Turn every goal green.

Limit
Worker answers about 6,700 req/s
Bill
  • Cron scheduler × 28 USD/mo
  • Worker16 USD/mo
24 of 60 USD/mo

Goals

Not tested yet

Work that ran twice.Writes accepted by two leaders at the same time.Saved data that was lost later.Time until all the work is done.Time until all the work is done.What the servers and services cost each month.

Connect both job runners. Archive jobs: 100 due at 1 s, each takes 10 s. Check jobs: 20 due at 4 s, each takes 1 s. Runner A loses lease contact from 2 to 14 s; its sent work can still finish. Meet both deadlines with no repeated or stale-token effects.

A lease with a fencing tokenTap to turn the fencing tokens on or off

Fencing tokens · lease 30 s · late write with token 33: rejected