HAProxy Enterprise Documentation 1.6r1

get weight

Display the initial and current weight of a server.


Use get weight to display the initial and current weight of a given server. This value may have been changed by the set weight command.


In the example below, the backend has two servers, each with an assigned weight of 100:

backend be_servers
   server server1 check weight 100
   server server2 check weight 100

The get weight command displays the current weight of a given server and its initial value in parentheses.

The current value may have changed if the set weight command was called:

$ echo "get weight be_servers/server1" | socat stdio tcp4-connect:
100 (initial 100)

See also

Next up