Forum Discussion

Squeaky's avatar
Squeaky
Icon for Nimbostratus rankNimbostratus
Nov 27, 2017

Presistence profile

Hi, I have a CRM deployment in progress. From a client perspective all looks good, but the app team have another ask whereby there will run a batch job (multi threads) against the CRM VS and they require this to be load balanced across all four CRM servers. Cookie persistence’s cannot be used as the script client is cookie-less. Source persistence they prefer not to use as they would the load to spread across the nodes. The issue I’m encountering is that the script is calling the CRM VS(backend end servers) there is a token shared in the payload and when the script calling the CRM we see errors that indicate a security token error. This I believe to be related to the fact that normal load balancing without persistence is sending the request to a server that never issue the token and thus the communication breaks down. I was thinking of using a universal persistence profile and writing an iRule to check for a certain value in the payload. The issue is how I can create this iRule, look for a string and look for a changeable token value/length. This token value under “urn-uuid” would change for each session, so it might be a good candidate for checking and persisting session. -http://schemas.xmlsoap.org/ws/2005/02/sc/sct"; URI="urn:uuid:02bf7f6d-7655-49c4-b2fb-da9ece2ba364"/>

 

Any thoughts of recommendations on how to address this issue, Thanks in advance, Squeaky

 

  • Would something like this work. Would it persist if the token remains the same? and if this value was to change would it create a new persistence record?

     

    when HTTP_REQUEST { collect the payload containing the POST data HTTP::collect [HTTP::header SecurityTokenReference] } when HTTP_REQUEST_DATA { persist on data from 11th character following 'URI=' up to "<" and follow existing persistence record or create a new one persist uie [findstr [HTTP::payload] "URI=" 11 "<"] }

     

    Any assistance would be greatly appreciated.