I have an application run on an Azure Web App that is scaled out across multiple instances. Because we're self-hosting SignalR (I know, I know...), we have to set the ARR Affinity token.
I am unsure of how request routing is done with ARR Affinity set under the following scenarios:
- Slot Swap - In a slot swap, will server affinity remain unchanged, and requests will be routed to the same server after the slot swap, or are all ARR sessions trashed and it's a new assignment?
- Scale in - if we remove Web App instances, some ARR mappings will no longer be valid. Are these just re-assigned by the NLB?
I would just test this myself, but I can't figure out how to reliably perform a test since to my knowledge, there is not a definitive way to see what server instance you're on. Any answers to these questions or suggestions on how to perform this test are appreciated.