Forum Discussion
nik_65678
Nimbostratus
Nov 10, 2009maximum 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.
2 Replies
- hoolio
Cirrostratus
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 - nik_65678
Nimbostratus
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects