Forum Discussion

DarioGB_339840's avatar
DarioGB_339840
Icon for Altostratus rankAltostratus
Nov 07, 2018

Loadbalancing Virtual Server as Nodes

Hello.

 

I'm trying to configure a complex solution of loadbalancing.

 

One part of this solution needs to loadbalance virtual servers which reside in the same F5.

 

VS1 -> Pool1 -> Member1, Member2 VS2 -> Pool2 -> Member3, Member4 VS3 -> Pool3 -> VS1, VS2

 

Using GUI, this is perfectly configurable, but it's not running yet.

 

Do you know if there exist some limitation to perform this kind of scenario?

 

KR, Dario.

 

  • This senerio called as VIP calling VIP. Can you enable snat automap.. Configured this senerio with different lb but ur case on same LB..

     

    Is your individual VIP is responding?

     

  • I write again the solution:

    VS1 -> Pool1 -> Member1, Member2
    VS2 -> Pool2 -> Member3, Member4
    VS3 -> Pool3 -> VS1, VS2
    
  • This senerio called as VIP calling VIP. Can you enable snat automap.. Configured this senerio with different lb but ur case on same LB..

     

    Is your individual VIP is responding?

     

    • DarioGB_339840's avatar
      DarioGB_339840
      Icon for Altostratus rankAltostratus

      Hello f5_rock.

      Thanks for your answer!

      As I read here VIP-targeting-VIP is not possible using Loadbalancing resolution (Configuring several Local VS as members of a pool). The only way is to configure an iRule with a command called virtual.

      https://support.f5.com/csp/article/K10379

      I have tried to use this command inside the LB_SELECTED event, but it's not working at all 😞

      when LB_SELECTED {
          virtual mytestingVS
      }
      

      Using this command in a previous event is unuseful for me, because I'm losing the point of LB selection.

      By the way, my final goal is to configure Active-Passive Loadbalancing between two cluster (2 nodes by cluster) with no preempt

      Cluster1 (Node1, Node2) with Round Robin
      Cluster2 (node3, Node4) with Round Robin
      

      Each cluster is loadbalanced using active-passive but I need to avoid peempt (no switch back to active cluster after recovering).

      Any help would be appreciated

      KR, Dario.

    • DarioGB_339840's avatar
      DarioGB_339840
      Icon for Altostratus rankAltostratus

      Great!

       

      I have recently detected that the expression "VIP-targeting-VIP is not possible using Loadbalancing resolution" in my last comment is not true 🙂

       

      To do so, it's necessary to use the expression "

      LB::reselect
      " before "
      virtual {VS_name}
      "

       

      when LB_SELECTED {
          if { [LB::server addr] eq '10.1.1.1' } {
              LB::reselect virtual vs-local-traffic-handler
          }
      }
      

      REF - https://clouddocs.f5.com/api/irules/virtual.html

       

      KR, Dario.