Skip to content

Conversation

@kate-osborn
Copy link
Contributor

Proposed changes

Problem: NGF updates the status of resources even when the status has not changed.
When there are a large number of HTTPRoutes this can significantly decrease processing time.

Solution: Modify the status updater to only update status when it has changed.

Testing: Added unit tests, manually tested changes, and re-ran the scale tests.
The scale test performance numbers significantly improved with this change.

Closes #1013

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@kate-osborn kate-osborn requested a review from a team as a code owner October 17, 2023 19:42
@github-actions github-actions bot added bug Something isn't working documentation Improvements or additions to documentation labels Oct 17, 2023
@kate-osborn kate-osborn changed the title Fix/status update Only update a resource's status if it has changed Oct 17, 2023
@kate-osborn kate-osborn merged commit 7cff184 into nginx:main Oct 19, 2023
miledxz added a commit to miledxz/nginx-gateway-fabric that referenced this pull request Jan 14, 2025
Problem: NGF updates the status of resources even when the
status has not changed. When there are a large number of 
HTTPRoutes this can significantly decrease processing time.

Solution: Modify the status updater to only update status 
when it has changed.

Testing: Re-ran the scale tests. The scale test performance numbers 
significantly improved with this change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update the status of a resource only if the status changes

3 participants