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.
- hoolio
Cirrostratus
Hi Nik, - 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.
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