LB commands
LB commands contain load balancing manipulating functions, with the most important function being LB:routing which allows you to select the backend:
-
LB:routing(value) — Routes the request to the content routing server.
-
LB:get_valid_routing() — Returns a list of backend names configured on the current Virtual Server in the form of a Lua table (number as key, string as value).
-
LB:get_current_routing() — Returns the currently allocated backend for this request.
-
LB:method_assign_server() — Returns the server through the current load balance method configured on current the Virtual Server.
-
LB:set_real_server() — Sets a real server from the configured pool directly.