Forum Discussion

slk_85772's avatar
slk_85772
Icon for Nimbostratus rankNimbostratus
Apr 08, 2008

switch network's traffic beetwen pools

Hello everybody,

 

 

I'm am writting small app in C to switch network traffic between pools.

 

I've seen posts with informations such as:

 

"set_default_pool_name" (for vservers), diabling all pool members in selected pool ("set_monitor_state").

 

 

My question is can I use "set_fallback_lb_method". Perhaps I missuderstuded manual.

 

 

In General I want send whole traffic from FIRST to SECOND pool in C.

 

 

Thanks for any help.

 

3 Replies

  • Great - Hopefully you are using the iControl Assembly for .Net!

     

     

    As for your question regarding the pool, the easiest solution is to use the set_default_pool_name() method in the LocalLB.VirtualServer interface. this is equivalent to setting the default pool for the Virtual in the GUI.

     

     

    From what I can tell from your post, there is no reason to enable/disable individual pool members if you have two pools defined. The reason to do that would be if you have one pool and want to shift pool members in/out of rotation. But, if you have two pools, the easiest approach is just changing the default pool on the virtual.

     

     

    As for set_fallback_lb_method(), I don't know what that method is. There is set_fallback_persistence_method() in the VirtualServer interface, but it doesn't look like that's what you were going for.

     

     

    Stick with the set_default_pool_name() and that should work for you.

     

     

    -Joe
  • Hallo once again,

     

     

    Thank you for answer. When i'm going to finish app i will paste it in. C U.
  • Great, glad to help. If you could post your code when you are finished, I'd be glad to take a look and see if there are any optimizations I can pick out for you.

     

     

    Cheers!

     

     

    -Joe