Forum Discussion

nik_65678's avatar
nik_65678
Icon for Nimbostratus rankNimbostratus
Nov 10, 2009

maximum array size

hi, i'm using one of our load balancers to test a new downtime page for some of our sites.. example:

switch -glob [string tolower [HTTP::uri]] { 
   "/" { HTTP::respond 200 content [b64decode [class element -value 0 maint_class]] "Content-Type" "text/html" } 
   "/logo.gif" { HTTP::respond 200 content [b64decode [class element -value 1 maint_class]] "Content-Type" "image/gif" } 
   "/banner.jpg" { HTTP::respond 200 content [b64decode [class element -value 2 maint_class]] "Content-Type" "image/jpeg" } 
   default { HTTP::redirect "/" } 
 }

i have a class called maint_class - in this class i have one line for each element (image, html, etc). i base64 encode each element before entering it into the file (is this the best way?).

i've been looking for the answer but am unable to find it - anyone know the max size that each element in the class can be? i need to tell our web designers the maximum size for any file that they'd like on a downtime page.
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi Nik,

     

     

    I haven't seen anything posted about this for v10 with external classes. Here are a few older related posts:

     

     

    Large classes in iRules

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=15598

     

     

    Max Sizes of iRules Class

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=19650

     

     

    Anything you do add takes up LTM memory, so it would be good to keep the objects as small as possible. But I guess the best option might be to test it with your configuration and expected load.

     

     

    Aaron
  • i'll experiment a bit more with that information but it seems that it's all based at how large a single external class can be - i'm looking to have no more than 10 elements per class. each element, however, could be up to two three after base64 encoding. when i try adding a few megs of base64-encoded data to an element bigip complains about the element being too large.

     

     

    i'm just looking for the cleanest way to serve a few files to a client, some of which are up to three megs.