You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/11/30 20:51:42 UTC

DO NOT REPLY [Bug 52264] New: Update and complete balancer-manager XML output

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: bugs@httpd.apache.org
        ReportedBy: jim@riggs.me
    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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 52264] Update and complete balancer-manager XML output

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52264

--- Comment #4 from Jim Riggs <ji...@riggs.me> 2011-11-30 19:55:33 UTC ---
Created attachment 28008
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28008
Sample specified balancer and worker output (?xml&b=...&w=...)

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 52264] Update and complete balancer-manager XML output

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52264

--- Comment #2 from Jim Riggs <ji...@riggs.me> 2011-11-30 19:54:22 UTC ---
Created attachment 28006
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28006
Sample full output (?xml)

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 52264] Update and complete balancer-manager XML output

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52264

--- Comment #3 from Jim Riggs <ji...@riggs.me> 2011-11-30 19:55:02 UTC ---
Created attachment 28007
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28007
Sample specified balancer output (?xml&b=...)

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 52264] Update and complete balancer-manager XML output

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52264

Jim Riggs <ji...@riggs.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #28004|0                           |1
           is patch|                            |
  Attachment #28004|application/octet-stream    |text/plain
          mime type|                            |

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 52264] Update and complete balancer-manager XML output

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52264

--- Comment #1 from Jim Riggs <ji...@riggs.me> 2011-11-30 19:52:42 UTC ---
Created attachment 28005
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28005
Patch ignoring whitespace for those who want to take a quick look

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org