4 Replies Latest reply on Feb 12, 2018 10:22 AM by Patrick Mosca

    Docker:mod_cluster and Tomcat

    raj pandey Newbie

      I am using mod_cluster using Docker in one UNIX machine and tomcat server using Docker in another unix machine.
      Mod_cluster is registered by tomcat
      Jun 23, 2016 8:38:56 AM org.jboss.modcluster.ModClusterService connectionEstablished
      INFO: MODCLUSTER000012: Catalina connector will use /172.17.0.2

      but when i am trying to connect application using load balancer i am getting

      [Thu Jun 23 08:51:27.417396 2016] [:debug] [pid 1437:tid 140305676351232] mod_proxy_cluster.c(293): Created: worker for ajp://172.17.0.2:8009
      [Thu Jun 23 08:51:27.417524 2016] [proxy:debug] [pid 1437:tid 140305676351232] proxy_util.c(1785): AH00924: worker ajp://172.17.0.2 shared already initialized
      [Thu Jun 23 08:51:27.417613 2016] [proxy:debug] [pid 1437:tid 140305676351232] proxy_util.c(1832): AH00927: initializing worker ajp://172.17.0.2 local
      [Thu Jun 23 08:51:27.417739 2016] [proxy:debug] [pid 1437:tid 140305676351232] proxy_util.c(1867): AH00930: initialized pool in child 1437 for (172.17.0.2) min=0 max=25 smax=25
      [Thu Jun 23 08:51:27.417836 2016] [proxy:debug] [pid 1437:tid 140305676351232] proxy_util.c(1904): AH00932: ajp: worker for (172.17.0.2) has been marked for retry
      [Thu Jun 23 08:51:27.417973 2016] [proxy:debug] [pid 1437:tid 140305676351232] proxy_util.c(2160): AH00942: ajp: has acquired connection for (172.17.0.2)
      [Thu Jun 23 08:51:27.418051 2016] [proxy:debug] [pid 1437:tid 140305676351232] proxy_util.c(2213): [client 10.193.149.209:56591] AH00944: connecting ajp://172.17.0.2:0/ to 172.17.0.2:8009
      [Thu Jun 23 08:51:27.418125 2016] [proxy:debug] [pid 1437:tid 140305676351232] proxy_util.c(2422): [client 10.193.149.209:56591] AH00947: connected / to 172.17.0.2:8009
      [Thu Jun 23 08:51:27.418356 2016] [proxy:error] [pid 1437:tid 140305676351232] (111)Connection refused: AH00957: ajp: attempt to connect to 172.17.0.2:8009 (172.17.0.2) failed
      [Thu Jun 23 08:51:27.418394 2016] [proxy:error] [pid 1437:tid 140305676351232] AH00959: ap_proxy_connect_backend disabling worker for (172.17.0.2) for 60s
      [Thu Jun 23 08:51:27.418403 2016] [:debug] [pid 1437:tid 140305676351232] mod_proxy_cluster.c(1408): proxy_cluster_try_pingpong: can't connect to backend
      [Thu Jun 23 08:51:27.418411 2016] [proxy:debug] [pid 1437:tid 140305676351232] proxy_util.c(2175): AH00943: ajp: has released connection for (172.17.0.2)
      [Thu Jun 23 08:51:27.418424 2016] [:debug] [pid 1437:tid 140305676351232] mod_proxy_cluster.c(2438): proxy_cluster_isup: pingpong ajp://172.17.0.2:0/ failed

      error