tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Scripting mod_jk load-balancer member changes
Date Mon, 12 Jan 2015 19:01:19 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

I'm running into a bit of difficulty scripting updates for
load-balancer members and thought I'd ask here before slogging through
the code to see if there are any requirements I'm missing.

Long story short, I'd like to script setting the "activation" status
for a particular load-balanced worker to something, like ACT or DIS.

I've written a python script to do this for me and I can confirm with
Wireshark that it's sending what I expect. Here is the HTTP request
that is being sent:

"
POST /jk-status HTTP/1.1
Accept-Encoding: identity
Content-Length: 43
Host: localhost
Content-Type: application/x-www-form-urlencoded
Connection: close
User-Agent: mod_jk.py / Python-urllib


from=list&cmd=update&sw=myworker&vwa=1&w=lb
"

That's the whole request. The response I get is a 200 response, but
it's got the form content in it again, and not the "you will be
redirected in 3 seconds" response that I get from the web UI.

I can think of a few things that I just wanted to sanity check:

1. I need to provide all of the various values and not just the "vwa"
value (which is the short-code request parameter value for the
"activation" status).

2. The status worker can't handle POST requests (the web interface
uses GET).

3. I've broken something else.

Can anyone confirm either 2 or 3 above, or both?

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUtBn/AAoJEBzwKT+lPKRYZHgP/2PKZ2A10R1F8vF/j8YxxQln
OR6viUv3iHmGpk9O4LUR/Hd1tUprT+txpoiB0Tyi9xBCtEaAhgGvgrTdg4pAvp/v
e4ZT+hygPJL73W7vzxuFMXJrE7iEfVIJJs2rnwsRt0XN73y6olP6WdAHOjcAwVBl
raIISv+5icFD0gdvBqDuCUXb7Kc9tJu/xddsMjGA7GENMqv/nFT/IRRqbgrVe6D8
Q2d9X854X0qnHECE/o5Y0EPBbdF7cicCWlt1IFE3Hm4QG5bnsV8av6hVqOlOYLsz
0PfqgCYvDqfDDXPYbTRBztvgIzYMslISmravwF/75ZEZ7L9kp9IFQJBV56Qf+feN
43ZBptSaD5K5jqXyFvRytOXxN6RXPd54//95jatLIW/nI9PSg1Tg4FsSMSmxTFqC
oe9IbqR2A6g2GR2qQ2h3HCOy0H3kUaxk9MYQcSsHxzVJcyYUDt3zYrNpPzIPE9LV
khvETO5lgWbJOAHOpjoCwDl6eJpVhfN/omLh0MOqFHTxcF7eSAx6e3ZLlS3YJvb9
qudbwtRz5ypiCJtkaAgxEKQ0ApWCqdDTd+U7ce2Qa8ztI8Pl9oHQQxpXEqGxFzb4
rl71bRZCJq0IwtmVMsiEqHlgOM0q5YGvKX57460ii/l3T5eS7KSKXPKf1wEHTweb
IPD3CiKaS2MGxzrVYr6q
=u2yZ
-----END PGP SIGNATURE-----

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


Mime
View raw message