Forum Discussion

sandiksk_35282's avatar
sandiksk_35282
Icon for Altostratus rankAltostratus
Aug 21, 2015

how to loadbalancer urls

how to configure a VIP to loadbalancer urls.Please let me know as I am trying to get familair with f5s.

 

match http url .* match http url /*

 

6 Replies

  • Hey Sandiksk!

     

    Could you please provide some more information? Do you want to choose pools based on uri, host name or something completely different?

     

    /Patrik

     

  • when the client access the vip http://192.168.1.10 tcp eq www. class map should match match http url .* match http url /*

     

    the request need to be fwded to the pool which will load balance to either of the meber ( 2 pool members) predector : least connections persistence: source IP

     

  • Hi,

     

    Patrick, I Think he talks with another product words...

     

    Sandiksk, If I understand, you want to load balance every requests (/* contains all URI) sent to 192.168.1.10 port 80 to 2 pool members...

     

    to do that:

     

    • create a Virtual server with
      • IP 192.168.1.10
      • Port : 80
      • HTTP profile http
      • Source Address Translation : automap (if Pool members's default route is not the F5 self IP)
      • Default Pool : Pool predector
      • default persistence : source_addr
  • thanks for your response ,so i dont have to create an iurle to balance /* contains all URI. R the requests will be balanced by default. Do i need to specify anything in the http profile

     

  • Hi,

     

    When you create a VS, you define default behavior:

     

    • Pool
    • HTTP profile
    • SSL Profiles
    • Persistence profile
    • Source address translation

    An irule is often used to change the default behavior based on some conditions.

     

    if you want all traffic is load balance to the same pool, no need to create an irule.

     

    In HTTP profile, you can add X-forwarding-For header if you configure Source address translation. Do not modify the default http profile but create a new one.