Faster recovery after disk failure with concurrent job scheduling
When a disk fails mid-maintenance, the wait for a worker can be part of your recovery time. SeaweedFS Enterprise can start an eligible repair in a free worker slot while a balance job runs on another volume. Starting the rebuild earlier shortens the time your data depends on its surviving copies.
When a second disk fails during recovery
Suppose a volume has two replicas on different servers. A disk fails and takes one replica with it. Clients can still read the volume from the surviving disk. If that disk also fails permanently before repair finishes copying the data, the cluster loses the volume. Every hour the repair waits behind unrelated maintenance extends the time that one disk holds the only copy.
Each volume regains its protection as soon as its replacement copy finishes. Recovery time still depends on readable source data, room for a replacement and copy bandwidth.
How a vacuum backlog can last four days
On one production cluster, the admin scheduler handled one maintenance job type at a time. For hours the scheduler ran about 225 repair attempts followed by seven vacuum jobs, then returned to repair.
Consider what that pattern would mean after a large cleanup. Suppose 700 volumes are ready for vacuum, each with 10 GB to reclaim. If seven vacuums finish per hour while the repair queue stays busy, it takes 100 hours to reclaim the full 7 TB.
| Time after cleanup | Volumes vacuumed | Space reclaimed |
|---|---|---|
| After one day | 168 of 700 | 1.68 TB |
| After two days | 336 of 700 | 3.36 TB |
| After four days and four hours | 700 of 700 | 7 TB |
The hourly rate and volume sizes are assumptions for this example. By the second day, more than half the reclaimable space is still tied up on disk. An operator may have to find room for incoming writes even as the cluster holds terabytes of deleted data.
What Enterprise changes during recovery
The same policy gives vacuum a turn while hundreds of repairs are still queued. Workers can compact eligible volumes and return space for writes and replacement copies during the rebuild. If repair and vacuum both need to change the same volume, one waits. Jobs on other volumes can proceed as capacity allows.
If you use the open-source admin to schedule vacuum and volume balance, those worker jobs take turns by type in the default maintenance lane. The master also has a built-in automatic vacuum. Enterprise adds concurrent scheduling across worker job types, including automatic EC shard repair. If your batches usually finish before other work piles up, the difference may be small. If under-replicated volumes sit waiting behind other maintenance, or free space runs low during a rebuild, consider testing the two workloads together.
Try concurrent scheduling on a test cluster. Enterprise is free for development and testing under 25 TB.
For worker-slot rules, cluster locking and the layout API, see the scheduling technical reference.