-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5muMEACgkQHPApP6U8 pFhNfw//c0JqDs7CQoCpc9u7eYZUU86yMr1Nlj/IXabIuyU0hfiwCWpmxpOgex+3 iPEXoO0qje0+lOW/D61FfzIJ+zZqIBJpq/e2MixLVntvfsDjfVpFZF7TpdHAwEfy rZx0k7ErNP3vNJT089sCyu7+XxPJocY5avk7b5va5z9TTOHNT136wqphRf4ka9yc AimmKhTNs3SsGiy7CJp47BXvyl5Nybhm5i1NkJF39oEXdiAVodUTThexjedTjwoi VESvX1K5A+ST5Zt8dw/teJmJPn3pV70LJz/JFnvTqIZ1aa0xB+niTqw/B4jTVW6W FUdnuRH9Z1choh7n9ipop62/suJpLaIwCXjm1n4iWKVhEDKntT1WtfUrp1BTr5UQ 3Z6BQX2TkAIVQ1rE3oMYbT7fSHCmEp86XQCg1tCm9cu9T2xlA4Ab09mpSrdEInQg +IPaUnvuHXmMghdULxjKuKGYGwdNTGfOTkLz9hMh3ghplZpZwg0lugba4+tN2z1y bp0pN+FaeSDTGwkF12xwSftr0+kt20WRO2l0MdbU9/xAQtf1tOgzH8CR1yxh1j0L YX3J8iHm7N6OzOL6vCbXDoYV0AL6KSbfeYboJu8fnvUEre6aw+ERz7RdWpaoGzYI uRO69QJpBE/fqoS7LIor4VTaFXU8khhO+KwwGObmfuYApT78Css= =jM3C -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org