This question has been asked before as AWS ALB - how to route existing sessions to Server A, and new sessions to Server B? but the answer is unsatisfactory and potentially out of date since the Load Balancer rules have become richer since 2021.
So, the question again, Given two identical servers, A and B, how can I use ALB to route new sessions to server B while I monitor sessions logging off server A over the course of several days, such that I can eventually turn off server A without disruption? I'm thinking of something like adding a querystring to the login URL and then forcing that onto a new target group which only includes server B. Once logged in, all of the inner URLs will be to the original two-server target group, such that existing sessions will continue in their sticky state but hopefully new sessions will be sticky to server B.
It seems a fairly standard use case so I'm hoping there is a canonical answer.