-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Giuseppe,
On 5/29/20 11:57, Giuseppe Sacco wrote: > Hello,I have an apache httpd with mod_jk that load balance > requests among two different tomcat servers.Today, one of the > tomcat servers has been rebooted and tomcat could not deploy the > application since it failed to find a configuration file. Please > note that tomcat was running correctly, only the application deploy > failed. The balancer could not understand that one of the servers > was not to be used: half of the requests were going to the > misconfigured machines and failed with 404 errors. From what I > understood, the mod_jk protocol only allows to check it tomcat is > alive. Is it possibile to also check if an application is deployed > (giving a dedicated URL in the application context)? Thank > you,Giuseppe One way to do this would be to create a ROOT context which returns something other than 404 for all requests. Maybe return 500 status for example. If /myapp/ isn't deployed, the ROOT web application will respond with 500 and mod_jk will mark the node as degraded. - -chris -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl7RT/EACgkQHPApP6U8 pFj54RAAqkYbZTloR0qMqcgB9THgj8OvE9+6CIq3Ls7LngeFbgkdjxQzO/vtJOgF HkGYxjsSidA+N/58VN3ZFuRro+IwkrxWHzmXr8wMQKnOaDnr1oAYFWiOIZ8v5inh 5FHM3Wk0Nqb7YUP5D/PVrR4IQcC7DGRU8X21kRB1+3YZJpaf/HHzr0P1j8up7DTj 3qPhf5gvkNDa5/vnGqgoj6RjYGtVtUsE2VqIPAIMQU4Fh1ZZJcU68KjqCsxo5IhM QmGsX/qWLm5HAMYWuChSMy+LKGjQNfTWYkqW+h0O4rsM3bbfT7upQiqQE4d9UPQQ k5nAJ71cBJu3m9oh8ClpQn2HtKDefJW2NfrzdbMlpgQ2CVio9IhCLQMVtmAagNz9 XXahmnAveiTfdKBbfk2JN/MtnU1Tp/0HiXTRravURqp3ffReJWWKF3yz3mzyn+kG DmaTYLqIIFZAd3l1UiPazmSEB2Sw23abI6+yqMkXZEjiWNM9WhS/zooAe+UwF9K6 VP1uznctMvaOXegCaUgAo/f7liFGqTsk95KEdGrN4NAoBYbJrzB4Wbli3zdZbI0E EfEASAr0Rb2o5fnd/6RNRFJoC9etbi3dPOvUUI+bOw4oNQUIBpFp43rli3ycUxtB qJLFaaxrlb7Jlwt13dMtJiyLw3P9zRZQkO7WNIS+DVGvmShDq88= =yngg -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org