-
Notifications
You must be signed in to change notification settings - Fork 245
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
Reduce resource consumption of discovery components #1999
Comments
@mattdurham I've re-purposed this issue for the work we've planned earlier this week. |
This issue has not had any activity in the past 30 days, so the |
Some low-hanging fruit fix that can be done with less effort for now: #2350 |
Another PR that will help reduce by 50% another allocation hotspot in Alloy: #2405 |
Reduce resource consumption of discovery components
Address high allocs in creation of targets lists
Targets/Discovery are represented as
list(map[string])
, with discovery running every 5 seconds in very large clusters the garbage collector can spike due to creating these labels. The names especially are repeated. The hard part is implementing the capsule value so hard coded targets still work. This is because in the alloy runtime there is a bug where you cannot convert from list/map to a capsule value.In reviewing profiles this code was by far the largest allocator.
alloy/internal/component/discovery/discovery.go
Line 212 in 5845b2c
Use case
Reduce memory and cpu consumption
The text was updated successfully, but these errors were encountered: