The problem seen is that agent will get the initial authentication from node 1, then perform the authentication against node 2 due to lb round robin
Create toggleable rest one-stage login to address this.
To use this set environment variable AM_AGENT_REST_LOGIN. If the value is 5 then the new 5 and later rest version of the json authenticate end point will be used. If it is a different value then the pre 5 version will be used.
The default will remain to login via PLL in A4.