nginx-gateway-fabric
nginx-gateway-fabric copied to clipboard
Multiple Gateways - optimize reloading
trafficstars
As a followup to the multiple gateway support story, we need to optimize how many config reloads and messages we are sending to agent.
In the initial implementation, any change results in NGF updating and sending every config (even if it's irrelevant). We should only send configuration to agent if it's changed.
Acceptance
- Only send configuration to agent if changed
- Only call NGINX Plus API if upstreams have changed
Dev Notes
- Check the
updateNginxConf workflowsection in the internal design doc for details on how we can do this - Process() no longer needs to return the
ChangeTypevariable.