Do clients connect to multiple virtual servers? If not, and you’re using only this rule, I don’t think you need to add ‘any’ to the persist command.
If you add logging to each condition and reproduce the issue, what do you see in the logs? Can you also check the ‘b persist all show all’ output as you test? This will show the persistence records LTM holds.
You can use also log the persistence record found for the token using ‘persist lookup uie $token’ in the rule. And it might help to log [LB::server] in LB_SELECTED and [IP::server_addr]:[TCP::server_port] in SERVER_CONNECTED.
the client make a request to the VIP then behind the vip the request is sent to the two servers. The goal is that if it has started on a server, it doesn’t change.
Ah, that’s helpful. So you’re on a platform and version which supports CMP. CMP and persistence don’t work so well in current versions. And there is a bug whereby CMP isn’t automatically disabled on virtual servers which use persistence (with an exception of cookie insert). See these solutions for details: