Forum Discussion

Michael_Sproul1's avatar
Michael_Sproul1
Icon for Nimbostratus rankNimbostratus
Jan 06, 2014

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's avatar
    giltjr
    Icon for Nimbostratus rankNimbostratus

    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's avatar
    Arie
    Icon for Altostratus rankAltostratus

    Keep in mind that the VIP gets its uptime status from the default pool. This may lead to undesirable results.

     

  • 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 }
        }
    }
    
  • 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.