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

Update: process monitor events all at once upon commit #283

Merged
merged 6 commits into from
Nov 9, 2024

Conversation

Ignatella
Copy link
Contributor

Hi!

While using nftables, we discovered it would be more efficient to process monitor events (changes) all at once upon commit, triggered by the event that caused the change, such as NFT_MSG_NEWGEN.

This PR modifies the way events are handled by grouping all changes together and processing them in response to the event that initiated the change. Additionally, the event header, which includes important information such as the PID, is now propagated. This allows us to identify the process responsible for the change.

@Ignatella Ignatella changed the title Update: process monitor events in batches Update: process monitor events all at once upon commit Oct 16, 2024
set.go Outdated Show resolved Hide resolved
monitor.go Outdated Show resolved Hide resolved
monitor.go Outdated Show resolved Hide resolved
monitor.go Outdated Show resolved Hide resolved
set.go Outdated Show resolved Hide resolved
@stapelberg
Copy link
Collaborator

cc @singchia who contributed the monitoring code

@Ignatella Ignatella requested a review from stapelberg November 4, 2024 16:26
monitor.go Outdated Show resolved Hide resolved
monitor.go Outdated Show resolved Hide resolved
monitor.go Outdated Show resolved Hide resolved
@Ignatella
Copy link
Contributor Author

Also added ProcComm check to TestMonitor

@Ignatella Ignatella requested a review from stapelberg November 4, 2024 17:51
Copy link
Collaborator

@stapelberg stapelberg left a comment

Choose a reason for hiding this comment

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

Almost ready to merge

monitor.go Outdated Show resolved Hide resolved
@Ignatella Ignatella requested a review from stapelberg November 9, 2024 10:10
@stapelberg stapelberg merged commit 51c44dc into google:main Nov 9, 2024
2 checks passed
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.

3 participants