Canary Deployments, Weighted Round Robin and Stickiness
Lets test a canary deployment using nginx weighted round robin strategy. Canary deployment is a pattern where a new version of a service is rolled out to a subset of users to make sure that the new version works as intended. Lets say we have an exisiting deployment and we would like to route about 20% of the requests to a canary while the existing deployment gets 80% of the requests. We can specify the weights in the nginx reverse proxy config. See highlighted lines below. ...