-
Notifications
You must be signed in to change notification settings - Fork 9
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
Set timer to reduce load #424
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good start, but there's a potential concurrency issue. Check out my comment.
Also, don't forget to update the changelog and ship unit tests once the implemenation is working as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done @Alopalao, it's looking great, very neat how it ended up not even needing a deque at this time, I asked trivial implementation detail changes though, check them out. Did you also have a chance to also run a stress link flap test with this last code while monitoring with the APM? (the chart with 1 flap / sec are looking great)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Alopalao, excellent PR. It's great to see simple and elegant solutions like this one here. Consider it approved.
I'm just waiting these things before approving and merging it:
- Fix linter errors
- Make sure e2e mef eline tests are passing
- Update changelog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving it pre-approved. It'll get merged once changelog is updated.
@Alopalao, in the last e2e you posted here there was a RRF on topology, it's probably unrelated, but investigate it and open an issue on e2e repo if needed. Thanks.
E2E test results. The previous result was from an outdated e2e repo.
|
Cool. Regarding the changelog though, there's a git conflict if you can solve it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done. This PR will land by tomorrow.
Close #373
Summary
Set a timer to reduce load to database.
The timer will stop first event, while updating last received interface event. When timer ends, the last event will be applied.
Example in used:
End-To-End Tests