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

Manage templates per session instead of globally #386

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

antoninbas
Copy link
Member

As per the IPFIX specification, a template is specific to a transport session. Observation domains are not guaranteed to be unique across transport sessions.

When a transport session is closed (TCP connection closed or UDP session timeout), all associated templates are removed. Note that prior to this change, templates associated to a TCP connection were never cleaned up, causing a memory leak.

As per the IPFIX specification, a template is specific to a transport
session. Observation domains are not guaranteed to be unique across
transport sessions.

When a transport session is closed (TCP connection closed or UDP session
timeout), all associated templates are removed. Note that prior to this
change, templates associated to a TCP connection were never cleaned up,
causing a memory leak.

Signed-off-by: Antonin Bas <[email protected]>
pkg/collector/clock.go Outdated Show resolved Hide resolved
pkg/collector/clock.go Show resolved Hide resolved
pkg/collector/clock.go Show resolved Hide resolved
pkg/collector/clock.go Show resolved Hide resolved
pkg/collector/clock.go Show resolved Hide resolved
pkg/collector/clock.go Show resolved Hide resolved
Signed-off-by: Antonin Bas <[email protected]>
Copy link
Contributor

@yuntanghsu yuntanghsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

pkg/collector/clock.go Show resolved Hide resolved
@antoninbas
Copy link
Member Author

Thanks for the review @yuntanghsu !

@antoninbas antoninbas merged commit fcda437 into vmware:main Dec 10, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants