mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-05 10:43:09 +02:00
MINOR: hlua_fcn: add Proxy.get_srv_act() and Proxy.get_srv_bck()
Proxy.get_srv_act: number of active servers that are eligible for LB Proxy.get_srv_bck: number of backup servers that are eligible for LB
This commit is contained in:
committed by
Christopher Faulet
parent
fc759b4ac2
commit
fc84553df8
@@ -1097,6 +1097,24 @@ Proxy class
|
||||
proxy.
|
||||
:returns: a string "tcp", "http", "health" or "unknown"
|
||||
|
||||
.. js:function:: Proxy.get_srv_act(px)
|
||||
|
||||
Returns the number of current active servers for the current proxy that are
|
||||
eligible for LB.
|
||||
|
||||
:param class_proxy px: A :ref:`proxy_class` which indicates the manipulated
|
||||
proxy.
|
||||
:returns: an integer
|
||||
|
||||
.. js:function:: Proxy.get_srv_bck(px)
|
||||
|
||||
Returns the number backup servers for the current proxy that are eligible
|
||||
for LB.
|
||||
|
||||
:param class_proxy px: A :ref:`proxy_class` which indicates the manipulated
|
||||
proxy.
|
||||
:returns: an integer
|
||||
|
||||
.. js:function:: Proxy.get_stats(px)
|
||||
|
||||
Returns a table containing the proxy statistics. The statistics returned are
|
||||
|
||||
Reference in New Issue
Block a user