Forum Discussion

Robert_47833's avatar
Robert_47833
Icon for Altostratus rankAltostratus
Jul 21, 2011

will rand() cause performance issue

rand()

 

one question about rand

 

will rand cause performance issue?How to test it?

 

Can u give me an example

 

We want to put rand() in production

 

14 Replies

  • Hi,Ryan

     

    skewing is because I can't reset 3561 to 0 in the rule with rand()

     

    I can only set it to

     

     

    +-> HTTP_REQUEST 3563 total 0 fail 0 abort

     

    | | Cycles (min, avg, max) = (0, 0, 0)

     

    +-> HTTP_RESPONSE 168 total 0 fail 0 abort

     

    and get

     

     

    +-> HTTP_REQUEST 3563 total 0 fail 0 abort

     

    | | Cycles (min, avg, max) = (0, 466582, 1446128)

     

    +-> HTTP_RESPONSE 168 total 0 fail 0 abort

     

     

    1:the reason I can't use default profile is besides this pool,under this VS ,there are 10 other pools which don't need persist

     

    so I can only achieve this via irule,this VS dones't have default pool,only irule

     

     

    1:I don't know how to optimize rand()

     

    2:I don't know how to insert cookie and persist it in irule

     

     

    pls help me
  • under this VS,there are another 10 pools,so if I use Default Persistence Profile" "cookie"... ,it will affect other pools.
  • Follow Forum post http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/1180627/showtab/groupforums/Default.aspx. It's the same topic.

     

     

    Thanks,

     

    Bhattman