https://bz.apache.org/bugzilla/show_bug.cgi?id=64338
Bug ID: 64338
Summary: Expose balancer member state to origin server
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: mod_proxy_balancer
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
In preparation to migrate from mod_jk to mod_proxy_http, I looked for a way to
detect worker state in order to detect whether a node had been disabled and
should be draining.
mod_jk does this by sending a value which can be checked by the Java
application in the request's "JK_LB_ACTIVATION" attribute.
I don't see anything like this in mod_proxy_balancer, and it would be of great
help to have it.
>From [1] it looks like mod_proxy_ajp will forward any environment variable
called AJP_* through the connection as a request attribute (slight different
than a request parameter or request a header), but I'd prefer to use
mod_proxy_http so that leaves basically headers as an option for transport.
I could use "Header set X-lb-activation-state ${state}e", but the worker state
isn't available for this kind of thing.
It sounds "simple" to me to add this, but I have no idea what I'm talking
about. If this value were available via environment variable, I'd be able to
build similar capabilities with the other existing building-blocks to achieve
feature-parity with mod_jk.
[1]
https://lists.apache.org/thread.html/rfa741b0b2d0a53a9a4ae4bca26eaaccb57280392224348381e080376%40%3Cusers.tomcat.apache.org%3E
--
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]