On 06.03.2009 19:41, Mohit Anchlia wrote:
Thanks ..I got following URL from the browser, which is different then
what you suggested. Does this look ok?

http://10.10.80.55/JkStatus?cmd=update&from=list&w=tc&sw=appfe1&wa=0&wf=1&wn=appfe1&wr=&wc=&wd=0

If it comes from the Browser, it is OK.

I guess you are using a version before 1.2.27. The arguments have changed with 1.2.27, but will now be kept stable.

My cmd=edit was wrong, of course it is cmd=update.

"wa" is the previous way instead of "vwa", value "0" should mean active, you need "2" or "s" for stopped (at least with 1.2.27, but simply check it out, you can view the result again in the status worker display). You don't need the from when used from a script, it is just for the GUI redirect.

wf, wn, wr, wc and wd you don't need, if you only want to edit activation.

so it look like when I want one node out of service I do the following:

Execute GET 
http://10.10.80.55/JkStatus?cmd=update&from=list&w=tc&sw=appfe1&wa=2&wf=1&wn=appfe1&wr=&wc=&wd=0

or shorter:

http://10.10.80.55/JkStatus?cmd=update&w=tc&sw=appfe1&wa=2

and when I want that node in service I do:

http://10.10.80.55/JkStatus?cmd=update&from=list&w=tc&sw=appfe1&wa=0&wf=1&wn=appfe1&wr=&wc=&wd=0

or shorter

http://10.10.80.55/JkStatus?cmd=update&w=tc&sw=appfe1&wa=0

I tried enabling JkLog to trace but couldn't see where the requests
are being forwarded too? I see something like :

[Fri Mar 06 10:20:25.377 2009] [673:4143913824] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0180    48 50
01 02 85 15 30 24 D1 3E 54 09 54 4C C1 A1  - HP....0$.>T.TL..
[Fri Mar 06 10:20:25.377 2009] [675:4143913824] [debug]
status_get_string::jk_status.c (702): retrieved string arg 'wd' as '0'
[Fri Mar 06 10:20:25.377 2009] [673:4143913824] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0190    7A 09
40 B8 B0 82 EA 4A 9F 00 46 2A E5 28 B5 02  - z...@....j..f*.(..
[Fri Mar 06 10:20:25.377 2009] [675:4143913824] [trace]
reset_lb_values::jk_lb_worker.c (257): enter
[Fri Mar 06 10:20:25.377 2009] [673:4143913824] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 01a0    15 08
40 09 2A A8 18 E2 09 47 28 01 62 C6 14 8A  - ....@.*....g(.b...
[Fri Mar 06 10:20:25.377 2009] [675:4143913824] [trace]
reset_lb_values::jk_lb_worker.c (263): exit
[Fri Mar 06 10:20:25.377 2009] [673:4143913824] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 01b0    22 49
01 CE CF 52 91 12 E4 48 49 A4 2A E0 82 00  - "I...R...HI.*...

Any change done by the status worker gets logged immediately with info log level.

But I can't tell if the requests to appfe1 are no longer being
directed to appfe1 node.

You can check that more easily by looking at the request counts in the status worker display, whether they stil go up or are kept stable. The display also shows you the actual activation status, which should change from ACT to STP and back.

You can also log the lb member which was chosen for a request in the Apache access log, by adding a log note to your LogFormat. Look for mod_log_config on the page

http://tomcat.apache.org/connectors-doc/reference/apache.html

Finally you can also activate the access log of your backend to track, whether they handle requests or not.

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to