Re: Bouncing Tomcat from HTTPD?
On 05.12.2019 19:56, Jerry Malcolm wrote: I was stuck in traffic an hour from the office when I got a text that one of my sites had gone down. If I'd been in the office, I'd try bouncing TC first just to try to get the client back online, then dig into the logs to figure out what happened. But while driving on the freeway, there's no way to access ssh into the server and key in the command to restart tomcat. httpd was working fine. It would have been nice to bring up a non-tomcat web page on my phone and press a button to cause the tomcat service to restart. I know I could probably write something in php or perl or something. But I don't want to reinvent the wheel. Are there some packages available that already do something like this? Sorry, but since using one's mobile phone while driving is known as dangerous and even against the law in many places, the security-conscious and law-abiding Tomcat support team does not think it can answer the question as phrased above. Now if you were to rephrase it, leaving off the "while driving" bit, we might tell you that some such things probably exist already, but that you would have to look at admin-like utilities or packages belonging to your OS distribution, as there is nothing in Tomcat itself which provides such a capability.(*) We may also then warn you about the security aspect of such things, because one would probably not want to allow the general public to restart one's Tomcat server through an open webpage. (*) (If there was such a capability, there would also be the interesting philosophical question of how to use it, if the Tomcat server is down). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Bouncing Tomcat from HTTPD?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 12/5/19 13:56, Jerry Malcolm wrote: > I was stuck in traffic an hour from the office when I got a text > that one of my sites had gone down. If I'd been in the office, I'd > try bouncing TC first just to try to get the client back online, > then dig into the logs to figure out what happened. But while > driving on the freeway, there's no way to access ssh into the > server and key in the command to restart tomcat. You can do it, but you do kind of have to have your attention on the screen. I have an ssh client on my smartphone for this purpose, but it's of limited use because sudo requires a password I do *not* have. You can also tether your laptop to your phone and do just about anything . > httpd was working fine. It would have been nice to bring up a > non-tomcat web page on my phone and press a button to cause the > tomcat service to restart. I know I could probably write > something in php or perl or something. But I don't want to > reinvent the wheel. Are there some packages available that already > do something like this? I don't think of anything specific that does this kind of thing, but it does sound a little dangerous and also a little fragile. Do you have just a single Tomcat instance? Perhaps a better use of your time would be to re-work your environment so that you have some redundancy at the Tomcat level. You don't even need any additional hosts if you have enough resources (e.g. memory). Just split your Tomcat installation into CATALINA_HOME and a pair of CATALINA_BASE structures and run the applications concurrently, side-by-side. You will need distinct port numbers for each instance. Configure the reverse proxy to load-balance between the two instances. It's up to you to decide if you want to set up clustering and that other stuff. But simple sticky-sessions (the default) should get you a lot of mileage. - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl3pffkACgkQHPApP6U8 pFgy/g/+PmyIPgrrL8u/sWUOoJX11iBPj4w0M83SQxwpqUo6n7LJRVy3K1d5CW+l eCxRHZOKEjIW7utsZCR7FpXY/xeuimQiuPhBz5KvVxO7egVWTNGSRt63jwD2IivW klGZAzVWbLYsvvKLYwOeYJ4iUF99YFv60Mz+i2v0Unc1WWxUbxSo4fS7KFVM++8r RllSDiOsL59gzeGani75TqGE0fr+D3Lk83abf7hCCxicX8VilwoOlkJZS7pAujOd e9GKpW92tDIddLfjla/IqeNJDmHz8SBHmiy1fXNzasvP9tBFLCRXM+Lh2TF4Es7q 1piD7aBYFjcsct94e77usy+1rv+gAie5TJK23m1o76ehzQa3hqvbUldEj+SFjR/f D6ebd6BD8jsxAulN2Jl+C4dBbBey/exKmmg0xSiX0D5a5sFV9xUsOqGcJRlR/W1e gYWW1E6SeOzPbqO63npDxldzA5XlOHDfU3x4qnuoiGFfh5gRzqczCi5Snxc+VLRF NxE59Acfwk59yb8m9BJGiXKjVNzgPvPHd4YE0FFc1k0EmiSsEEkNpeiWy4zONg4q Or8QVJGuQJK41GBDoT7wqipU/hhM+vQqICcYRg3pXpmZtQ3HtXX+TeDFUw3tmlYy ANkzomPk+meCvaj6WixXSH0vLBTk4b/09JBF8Bwt+CAeSpsn8rg= =WSs4 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Bouncing Tomcat from HTTPD?
I was stuck in traffic an hour from the office when I got a text that one of my sites had gone down. If I'd been in the office, I'd try bouncing TC first just to try to get the client back online, then dig into the logs to figure out what happened. But while driving on the freeway, there's no way to access ssh into the server and key in the command to restart tomcat. httpd was working fine. It would have been nice to bring up a non-tomcat web page on my phone and press a button to cause the tomcat service to restart. I know I could probably write something in php or perl or something. But I don't want to reinvent the wheel. Are there some packages available that already do something like this? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org