how can we configure unequal load balance between two servers

Sudqi_ImamSudqi_Imam Member

We have two servers, we need to do upgrade for them, in order to decrease the users that will disconnect we need to do unequal load balance between them, anybody can advice how to do this kind of configuration

thanks

Comments

  • mdunnmdunn Member ✭✭
    edited May 2021

    If you assign a weight to the real server and then change the service-group method to weighted-rr, this will accomplish your goals. Note that the default service-group method will not factor the slb server weight in the load balancing decision, so the method will need to be changed in all service-groups where unequal load balancing is desired.

    slb server server1 10.1.1.5
      weight 10
      port 80 tcp
    !
    slb server server2 10.1.1.6
      port 80 tcp
    !
    slb service-group web-servers tcp
      method weighted-rr
      member server1 80
      member server2 80
    !
    

    The above configuration should give server1 10x more connections than server2.

  • Sudqi_ImamSudqi_Imam Member

    thank you so much, we will try to apply this solution, on another hand, is there a need to disable the health check, if yes then why?

    and is there a need to define the connection number? please check below:


    slb server server1 10.1.1.5
      health-check PING-test
      conn-limit <number of connections server can handle>
      weight 10
      port 80 tcp
    !
    slb server server2 10.1.1.6
      health-check disable
      port 80 tcp
       health-check-disable
    !
    slb service-group web-servers tcp
      method weighted-rr
      health-check-disable
      member server1 80
      member server2 80
    


  • mdunnmdunn Member ✭✭

    I would not recommend disabling the health check unless you want the A10 to "blindly" send traffic to the slb server. The health check directly under the SLB server defaults to ping, and the health check under the TCP port will default to a 3-way handshake.

    Connection limit is optional, but it can be useful to prevent overloading the slb server.

    Hope that helps!

  • Sudqi_ImamSudqi_Imam Member

    thank you so much

Sign In or Register to comment.