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

Make the parallelization factor dynamic #30

Open
gianarb opened this issue Mar 9, 2020 · 0 comments
Open

Make the parallelization factor dynamic #30

gianarb opened this issue Mar 9, 2020 · 0 comments
Labels
kprofefe It is in the continuous collector and kprofefe binary space

Comments

@gianarb
Copy link
Member

gianarb commented Mar 9, 2020

At the moment the number of goroutines kprofefe spin up is fixed to 10. We can do better.

First, we should look at GOMAXPROCS has to a limit. No more goroutines that what it specifies.

The GOMAXPROCS variable limits the number of operating system threads that can execute user-level Go code simultaneously. There is no limit to the number of threads that can be blocked in system calls on behalf of Go code; those do not count against the GOMAXPROCS limit. This package's GOMAXPROCS function queries and changes the limit.

In second based on the number of pods to gather, we can calculate the right number of goroutines.

@gianarb gianarb added the kprofefe It is in the continuous collector and kprofefe binary space label Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kprofefe It is in the continuous collector and kprofefe binary space
Development

No branches or pull requests

1 participant