8000 Fix analyzer worker metric assignment by languitar · Pull Request #94 · etsy/skyline · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 18, 2019. It is now read-only.

Fix analyzer worker metric assignment #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix analyzer worker metric assignment #94

wants to merge 1 commit into from

Conversation

languitar
Copy link

The existing formula for computing the fraction of the metrics to
process for each worker subprocess could result in situations where the
jobs of the last worker overlapped with the ones of the previous worker
or even worse, resulted in an index exception. This commit corrects this
issue.

To visualize the existing issue: With the existing calculations, having
11 metrics and 5 workers resulted in the following provisioning
scheme:

1: [0, 1, 2]
2: [3, 4, 5]
3: [6, 7, 8]
4: [9, 10, 11]
5: [8, 9, 10]

Worker 4 creates an index error and worker 5 overlaps.