using haproxy possible load balance based on output of request specific url? use case load balancing between set of jenkins machines , routing next automated job least busy server.
for example can hit url server-1/computer/api/json?pretty&tree=busyexecutors
which gives output like:
{ "busyexecutors" : 5 }
in case have 5 busy executors. id haproxy hit url , assess server least busy , route next job there. sound possible? output , busyexecutors irrelevant here im looking way kind of information jenkins servers , load balance off of info.
i've looked balance url_param , balance uri neither seem im looking for. i've tested balance leastconn , not im looking for.
if im off base here let me know, , if there better way go im ears.
thanks
Comments
Post a Comment