-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 All,
https://bz.apache.org/bugzilla/show_bug.cgi?id=64338 For anyone who likes beer. Or whatever you like to drink (within reason) . - -chris On 3/9/20 17:44, Christopher Schultz wrote: > Rainer, > > On 3/6/20 13:44, Rainer Jung wrote: >> Hi Chris, > >> no, the status unfortunately is not available as an Apache env >> var. > >> mod_proxy_ajp has a builtin provision for automatic env var >> forwarding: alle env vars named AJP_SOMETHING will be forwarded >> as request attribute SOMETHING. But I see no easy way of >> detecting drain mode and setting an env var and there seems to be >> nothing builtin. I remember having added the forwarding for the >> LB activation to mod_jk many years ago but well after >> mod_proxy_ajp was done by Mladen. It seems to be one of the >> missing features in mod_proxy_ajp. > > I'd of course want this to be available in mod_proxy_balancer so > any protocol would get it. > >> But of course it could be added ... > > :) > > I'll happily buy a round of drinks at ApacheCon if someone would > look into this. Without it, my "how to easily move from mod_jk to > mod_proxy_http" presentation is going to have a bit of a hole in > it. :( > > Thanks, -chris > >> Am 06.03.2020 um 16:34 schrieb Christopher Schultz: >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 >>> >>> All, >>> >>> At $work, we use mod_jk for proxying and I'd like to move to >>> mod_proxy_ajp with an eye toward moving to mod_proxy_http >>> eventually. >>> >>> We use the JK_LB_ACTIVATION state to perform load-balanced >>> node-draining[1] for maintenance and I'm trying to find out >>> how to get mod_proxy to give me its current status. >>> >>> I don't see anything in the documentation for >>> mod_proxy_balancer or mod_proxy_ajp. >>> >>> - From the balancer-manager, I can see that there are several >>> items of status metadata that might be useful: >>> >>> - - worker "draining mode" - - worker "disabled" state - - >>> worker "hot standby" state - - worker "stopped" state >>> >>> Each worker has a "status" value, which can be any of >>> D/S/I/R/H/E/N but it also looks like each of those can be set >>> independently. So the worker can be in "hot standby" + "error" >>> states. Hmm. >>> >>> Is that state available in an environment variable I can >>> forward-over to the origin node? >>> >>> - -chris > >> --------------------------------------------------------------------- > >> > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org > > -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6QrhIACgkQHPApP6U8 pFgBahAAhXGUNBAobLyBRgT3BtY+x9OrFVS5DnG1sMzJSej9V6wEm003Q83GSlB1 eTrC9wcJM2vuqiC+eZc2u5ruWDpsUnt/FxiU16URAjtXqwbbSg+LZ1qmtqkX7l6J eSE2NuEKHxeB0JoqFwxfpDI5uaulVJCb71bQzh/xQEbCbKLwt0uQVJ8h/z2XmfEh nYhhmY2spmfCsdMl0l+pnqjXAjQ70qK36JRNlGGlIkHD111BsOtN41vlg3WlCQ/v jpHqmB0b2Y7VwiQjXBDCXuwZxQ69+1FGoo7TQ1TAmb5YQzL8iSJ45Pzz9DSiVO+j 3lSfDJG8pCGQIFSuX/FagMWWJHOR9ZF+11/n8B/iOLv3RAWsKfEJwTS1y+Xxurzw M/64nQyXmfAqladkLXAFwTWqtFeuLFKmN3taBvVgX73SQ89HXLiUpOjOyG6U1HO8 rvn7E/lIMPFGPUZGFUWXMKMns9lXaDsfI5T/DfPhSjLxO2fX6W4LpJpe2OAd3uhA LgPsCZENLxOpe5J9DKpeMygV9MwSZ3TJgyXTtOBmXs9nWJeY83dy7PHNGad/Jpcp hpINTVMDp4cxvFSNz46dJ5Wkh9v3ss5esH8XglueaYUFzsf+/KqOvn3zrNKWdAqJ pgtAK0azSieW4oU7Ukn8nWUAwNl9LXastgzwKBuoJAMXAb7iIvw= =hiGB -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org