Weight changes for backends should not trigger a reload #3741
Replies: 4 comments
-
Could we have Support weights of 0 - 100 (1 - 99 is constraining) done first as reduced piece of work to have it as base to the other requirements? That will also facilitating testing as we can make sure that the new weights of 0 - 100 works as expected without the new reload capabilities. |
Beta Was this translation helpful? Give feedback.
-
Linking a few docs here that will be helpful when working on this: |
Beta Was this translation helpful? Give feedback.
-
Released with 3.5 when NGINX Plus is present. |
Beta Was this translation helpful? Give feedback.
-
When only the weight is changed for upstreams, such as performing a blue/green or canary - NGINX Plus should not be reloaded.
This is possible through the N+ API just like dynamic upstream configuration.
This idea is described here:
https://www.nginx.com/blog/dynamic-a-b-testing-with-nginx-plus/#Using-the-Key-Value-Store-with-Split-Clients
NGINX Ingress Controller already uses Split Clients to implement the weight feature.
This work should primarily be about using the NGINX Plus API to apply the weight changes when NGINX Plus is present.
If the deployment is using NGINX OSS then a soft reload should still be required.
This work can be split when delivered
Beta Was this translation helpful? Give feedback.
All reactions