weighted lease
- Vorherrschende Sprache
- Go
- Sterne
- 19
- Forks
- 3
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
for example:
| **leaseKey** | **leaseOwner** | **leaseWeight** | **leaseCounter** |
| --- | --- | --- | --- |
| task 1 | worker 1 | 1 (default) | x |
| task 2 | worker 2 | 3 | x |
| task 3 | worker 1 | 1 (default) | x |
| task 4 | worker 1 | 1 (default) | x |
comments:
- the default weight of a lease(or task) is 1
- we expect the leaser to partition the work according to the total weight of the tasks.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Look at the existing lease implementation in the repository to understand how leases are currently assigned and tracked. The change involves adding a weight field to lease structures and modifying the partitioning logic to consider total weight. Check for any existing tests around lease assignment to see how to validate the new weighted behavior.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go
- Bereich
- databases, distributed-systems
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100