Forum Discussion
James_Richter_1
Nimbostratus
Jul 16, 2009iRule or HTTP Profile
We have about 80 sites (and growing) that will be run through our 6900. We use a single IP address and route to Pools based on host headers. We're currently using http profiles, but as the number of sites grows, I'm wondering if it wouldn't be better to use an iRule to redirect instead.
Any recommendations on performance/ease of administration? It seems like using an iRule would be easier to admin instead of creating all of those profiles, but I've heard that profiles performance is better than processing something through an iRule.
- hoolio
Cirrostratus
It's my understanding that the difference between using a simple iRule versus an HTTP class would be minimal. But maybe someone who has more concrete info can respond.when CLIENT_ACCEPTED { Save the VIP's default pool name set default_pool [LB::server pool] } when HTTP_REQUEST { Try to select a pool based on the requested host header (www.example1.com -> www.example1.com_http_pool) Use catch to trap the error and select the VIP's default pool if {[catch { pool [string tolower [HTTP::host]]_http_pool }]}{ We only get here if there was an error in trying to assign the pool from the host header pool $default_pool } }
- James_Richter_1
Nimbostratus
That is awesome suggestion, I will definately give that a try. I'm a little concerned about the amount of processing that happens every time someone hits those since this is for a high volume application, but I'll do some testing. Thanks again!
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