Forum Discussion
Multiple Pools on Single Virtual Server
Have a user with several SharePoint Apps, which were hosted on a single server. Trying to add LTM Load-Balancing, between two servers. Currently, we have added the two hosts, with a Monitor for each, ensuring that IIS is running. They are in a single pool, with a Virtual Server pointing to that pool, and DNS CNames for each application URL pointing to it. However, the user wants each Web Application Monitored and routed separately. They can put up pages that I can write monitors for. I know I can create a separate pool for each application, and set up the monitors and apply them to the hosts at the pool level. I could then add a separate Virtual Server for each pool, and changeue to firewall rules, they would prefer to not have more than one IP for the whole thing. Is there a way to set up a single Virtual Server and send traffic to different pools, based on the Original CName URL?
4 Replies
- giltjr
Nimbostratus
You can do this using an iRule and checking for the unique uri for each application.
when HTTP_REQUEST { switch -glob [HTTP::uri] { "/App01/"{pool App01_Servers } "/App02/"{pool App02_Servers } "/App03/*"{pool App03_Servers } default{pool SharPoint } } }
- Arie
Altostratus
Keep in mind that the VIP gets its uptime status from the default pool. This may lead to undesirable results.
- Kevin_Stewart
Employee
Your "Original CName URL" statement makes me think you're talking about separate DNS-based host names, in which case a variation of giltjr's iRule might be fitting:
when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "sitea.domain.com" { pool sitea_pool } "siteb.domain.com" { pool siteb_pool } "sitec.domain.com" { pool sitec_pool } } }
- Michael_Sproul1
Nimbostratus
That is correct. They are separate DNS CNAME records pointing to my F5 Virtual Server (A DNS A Record). The iRule has been written and applied, and it works. Thank you.
Recent Discussions
Related Content
* 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