Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parallel reduce #2561

Merged
merged 2 commits into from
Jun 5, 2017
Merged

parallel reduce #2561

merged 2 commits into from
Jun 5, 2017

Conversation

rade
Copy link
Member

@rade rade commented Jun 5, 2017

Execute reducer branches in parallel.

This reduces the time it takes to fetch topologies. Using the same test methodology is as in #2559 (comment), running on my feeble laptop...

before after
processes 0.3 0.3
containers 1.8 1.6
pods 1.5 1.3
services 1.4 1.2
hosts 1.6 1.2

(all results in seconds)

@rade rade requested a review from 2opremio June 5, 2017 09:26
don't start the same piece of work twice
@rade rade force-pushed the parallel-reduce branch from d3aa5aa to 912c684 Compare June 5, 2017 09:30
for _, renderer := range *r {
result = result.Merge(renderer.Render(rpt, dct))
renderer := renderer // Pike!!

This comment was marked as abuse.

@2opremio
Copy link
Contributor

2opremio commented Jun 5, 2017

I am really curious as to how this performs in busy machines with many cores, merging reports from many probes.

@2opremio
Copy link
Contributor

2opremio commented Jun 5, 2017

Really small patch for such a performance improvement BTW.

@rade rade merged commit d1489d4 into master Jun 5, 2017
@rade rade deleted the parallel-reduce branch July 5, 2017 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants