Forum Discussion

Ivan_38381's avatar
Ivan_38381
Icon for Nimbostratus rankNimbostratus
Aug 13, 2009

Weight on node

How to configure weight on a memeber ..

 

 

web1 100

 

 

web2 0

 

 

if web1 fails .. then it should fail to web 2 ..

 

 

Please guide..
  • You are on the right track. It sounds like you want Active/Passive scenerio.

     

     

    In priority load balancing you need to remember that the highest number is the winner (albeit the member needs to be healthy). In your case you are doing well, however, I would set Web2 to a slightly higher number say 30. Only because you want to have some room to squeeze any future web servers in the priority.

     

     

    Now the real important part is to answer this question "What is the minimum of members in each priority to be active". In your case you have 1 member in each priority. When you set that to 1 it means the highest (available) priority is active, while the lowest is inactive and ready to take over to meet that condition of a failure.

     

     

    To further along this discussion what if you had 3 servers where you want Web 1 to be active and Web 2 to take over for Web 1 and Web 3 to take over if Web 1 and 2 dies. Then your priority could be Web1 (Priority 100) Web2 (Priority 50) Web3 (Priority 30). The minimum of members in each priority to be active is 1.

     

     

    It get's even better what if you want 2 Webservers that need to be active and if one of them dies another one replaces it so that there always 2 servers active.

     

    You then set Web1 (priority 100), Web2 (priority 100), Web3 (Priority 50). The minimum of members would be set to 2. If one of the higher priorities dies, the lowest will become active to satisfy the condition that a minimum of 2 members are needed.

     

     

    I hope this helps

     

    CB