Jboss mod_cluster

I have a jboss cluster with two nodes (a and b) + 1 apache working as mod_cluster (apache on a separate server)

If one of nodes A drops, the mode cluster cannot connect to the other.

So, if nodeA node crashes, I cannot access the jboss application http: // apache_server / myapp , but I can http: // nodeb / myapp and vice versa

I dig google almost everything that I found says that it is connected with sessions, but I cannot understand that it is wron with my config. (Mod_cluster configured with this tool Load Balancing Configuration Tool

NodeA Magazine

15/05/2016 07:45:22,741 ERROR [org.jgroups.protocols.TCP] (http-/nodeA:8080-90) failed sending message to jbossnodeb:jbossnodeb/web (4148 bytes): java.net.SocketException: Socket closed, cause: null
15/05/2016 07:45:22,790 ERROR [org.jgroups.protocols.TCP] (OOB-6464,shared=tcp) failed sending message to jbossnodeb:jbossnodeb/web (4141 bytes): java.net.SocketException: Broken pipe, cause: null

NodeB Magazine

15/05/2016 07:45:23,126 ERROR [org.jgroups.protocols.TCP] (OOB-4949,shared=tcp) failed sending message to jbossnodea:jbossnodea/web (79 bytes): java.net.SocketException: Broken pipe, cause: null
15/05/2016 07:45:53,457 WARN  [org.jgroups.protocols.TCP] (Timer-1,shared=tcp) null: no physical address for jbossnodea:jbossnodea/web, dropping message

Apache server log mod_cluster

[Sun May 15 07:45:04 2016] [error] (70007)The timeout specified has expired: proxy: read response failed from (null) (nodeA_IP)
[Sun May 15 07:45:34 2016] [error] (70007)The timeout specified has expired: ajp_cping_cpong: apr_socket_recv failed
[Sun May 15 07:45:38 2016] [error] ajp_handle_cping_cpong: ajp_ilink_receive failed
[Sun May 15 07:45:38 2016] [error] (70007)The timeout specified has expired: proxy: AJP: cping/cpong failed to (null) (nodeA_IP)
[Sun May 15 07:45:44 2016] [error] (70007)The timeout specified has expired: ajp_cping_cpong: apr_socket_recv failed
[Sun May 15 07:45:44 2016] [error] (70007)The timeout specified has expired: proxy: dialog to nodeA_IP:8009 (nodeA_IP) failed
[Sun May 15 07:45:44 2016] [error] ajp_read_header: ajp_ilink_receive failed
[Sun May 15 07:45:44 2016] [error] (70007)The timeout specified has expired: proxy: dialog to nodeA_IP:8009 (nodeA_IP) failed
[Sun May 15 07:45:44 2016] [error] (70007)The timeout specified has expired: proxy: dialog to nodeA_IP:8009 (nodeA_IP) failed
[Sun May 15 07:45:45 2016] [error] ajp_read_header: ajp_ilink_receive failed
[Sun May 15 07:45:45 2016] [error] (70007)The timeout specified has expired: proxy: dialog to (null) (nodeA_IP) failed
[Sun May 15 07:45:45 2016] [error] ajp_read_header: ajp_ilink_receive failed
[Sun May 15 07:45:45 2016] [error] (70007)The timeout specified has expired: proxy: dialog to (null) (nodeA_IP) failed
[Sun May 15 07:45:45 2016] [error] ajp_read_header: ajp_ilink_receive failed
[Sun May 15 07:45:45 2016] [error] proxy: CLUSTER: (balancer://clusterjboss). All workers are in error state

Apache mod_cluster configuration

AdvertiseGroup 225.0.1.107:23364
KeepAliveTimeout 60
ManagerBalancerName clusterjboss
ServerAdvertise On
AdvertiseFrequency 5
EnableMCPMReceive
CreateBalancers 0
AllowDisplay On

ProxyPass / balancer://clusterjboss/ stickysession=JSESSIONID|jsessionid nofailover=On
+4
2

  • JBoss `` `EnableMCPMReceive`` VirtualHost
  • JBoss IP- AJP- HTTP- Apache.
  • HTTP- Apache ProxyPass

JGroups, Infinispan, ,

mod_cluster, modcluster . , - , , , . JGroups mod_cluster.

, JGroups ...

Infinispan - - , JGroups . , .

: HTTP- Apache mod_cluster balacner JSESSIONID yadayadaXXX.worker-1 -2, -1 . - -1 -2 , -2 -1. - , .. , . ( ).

ProxyPass

, - . mod_cluster , , " " , - . ProxyPass, :

  • -, . HTTP-,
  • HTTP- Apache, - , ...
  • JBoss, mod_cluster, , mod_cluster, . HTTP- Apache, Drupal PHP...

ManagerBalancerName

, . , balancer="new_value" modbluster Jboss. , mod_cluster HTTP- Apache, ProxyPass Balacners. ProxyPass, . ? , , . , JBoss mod_cluster - ndoes Apache HTTP Server.

HTH, -K -

+1

, domain.xml:
1. < domain-controller > , add < remote host = "< ip-address-of-master- node > " port = "<port> " security-realm = "ManagementRealm" /" >
2. <server> , add < name= "slave- node" group = "server-group" auto-start = "true" >
3. mod-cluster < mod-cluster-config advert-socket = "modcluster" proxy-list = "< ip-address > : < port-in-mod-cluster-config" connector = "ajp" >

-:
1. 2. ServerBalancerName server-group ( , )

, /? , " ".

+1

All Articles