https://issues.apache.org/bugzilla/show_bug.cgi?id=52264

             Bug #: 52264
           Summary: Update and complete balancer-manager XML output
           Product: Apache httpd-2
           Version: 2.4-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_proxy_balancer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 28004
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28004
Full patch

As discussed in
http://www.mail-archive.com/dev%40httpd.apache.org/msg53026.html, here is a 2.4
patch that provides more complete XML output for balancer-manager. I have been
using a 2.2 version of this patch in production for probably 2.5 years or more
now. Having more complete XML output allows for much better/simpler automated
monitoring of mod_proxy balancers.

What it does:

* Removes the nonce requirement for XML output (which is read-only anyway).
* Provides all (useful) fields of the proxy_balancer_shared struct.
* Provides all (useful) fields of the proxy_worker_shared struct.
* Can limit the output to a specific balancer (bsel) and worker (wsel) via the
same b and w params used by html. This is useful for monitoring.

Notes:

* I tried to use the configuration names for the struct fields in the XML (e.g.
stickysession vs. sticky, nofailover vs. sticky_force).
* I tried to output the configuration units for the struct fields in the XML
(e.g. seconds vs. microseconds for timeout).
* I'm not sure what people will think of the code style, but the big
ap_rprintf() calls seemed to give the most readable code.
* Can anyone find a better way to create the worker status field string?
* Admittedly, I'm not sure what all of the struct fields are, so it may not
make sense to include all of them. I cut some out, but what about others (e.g.
flusher, is_address_reusable)?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to