Forum Discussion

Alan_63492's avatar
Alan_63492
Icon for Nimbostratus rankNimbostratus
Jul 14, 2009

Load Testing Tool on One Workstation

I'm trying to create an iRule that will load balance between pool members for a single workstation that is running LoadRunner (load testing tool). The tool is set to simulate 50 concurrent connections. Initially, they were only going to one node due to persistency. I created the following iRule, but with no persistency their losing the session state with the App servers in the pool and getting session timeout errors.

 

 

when CLIENT_ACCEPTED {

 

if { [IP::addr [IP::remote_addr] equals "10.100.x.x"] } {

 

log local0.info "Changing persistence to none for [IP::remote_addr] -> [IP::local_addr]"

 

set value [persist none]

 

}

 

}
  • Other IT members within my company had the same problem. They got around by adding around 15 IP aliases to the workstation and basically running their test sourcing from different IP addresses. It allowed the test to work because persistance was based on host ip addresses.

     

     

    Hope that helps,

     

     

    CB

     

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    cmbhatt's suggestion makes good sense. If you can configure LoadRunner to submit cookies that LTM sets, you could use cookie insert persistence with a OneConnect profile (Click here) to give more granular load balancing than source IP address persistence.

     

     

    Aaron