Fetch the health check statistics to use as flow variables for decision making

Not applicable

Hello All,


I have designed my proxy based on two conditions.

Condition-1: New calls.

Here im using the load-balancing-across-backend-servers http://docs.apigee.com/api-services/content/load-balancing-across-backend-servers

also using the health monitor. Here my proxy performs a health check and removes the faulty target server after the threshold is met.

once the server is back it adds into rotation

Condition -2 : re-used calls.

For re-used call i'm using the concept of target url as per https://community.apigee.com/questions/31202/how-to-dynamically-set-target-url.html

in target url im taking the server IP from KVM and constructing the url. However the health monitor concept is not in picture here.

I would like to use the healthcheck monitor data like which target server is removed from rotation and which are active. If data is available as flow variable or central lookup then i can update my KVM so as to remove faulty server IP so that target url won't use that faulty server.

Regards,
Ch.Venkat

0 2 221
2 REPLIES 2

The healthcheck monitor data is not available yet as a flow variable to be used in further operations.

The Path in a HTTPTargetConnection can be dynamic and can come from a flow variable.

    <HTTPTargetConnection><LoadBalancer>
            <Server name="mytarget"/>
        </LoadBalancer>
        <Path>/sometoplevel/v1/resource/{flowvariable}</Path>
    </HTTPTargetConnection>