-
1. Re: Don't Session replication web at cluster
wdfink Mar 6, 2012 1:59 AM (in response to rengar)Could you attach the server.log files?
Does the apache switch the node if you stop the current one?
And please remove the blank lines in your post!
-
2. Re: Don't Session replication web at cluster
rengar Mar 6, 2012 3:23 AM (in response to wdfink)Run node01:
sh standalone.sh --server-config=standalone-ha.xml -Djboss.bind.address=192.168.0.12 -Djboss.bind.address.management=192.168.0.12 -Djboss.node.name=node01
Run node02:
sh standalone.sh --server-config=standalone-ha.xml -Djboss.bind.address=192.168.0.13 -Djboss.bind.address.management=192.168.0.13 -Djboss.node.name=node02
Log node01:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/java/jboss
JAVA: /opt/java/jdk/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
=========================================================================
08:36:17,957 Información [org.jboss.modules] JBoss Modules version 1.1.1.GA
08:36:24,267 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
08:36:25,135 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting
08:36:47,929 INFO [org.xnio] XNIO Version 3.0.3.GA
08:36:47,948 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
08:36:48,175 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
08:36:48,404 INFO [org.jboss.remoting] JBoss Remoting version 3.2.2.GA
08:36:48,699 INFO [org.jboss.as.configadmin] JBAS016200: Activating ConfigAdmin Subsystem
08:36:48,833 INFO [org.jboss.as.clustering.infinispan] JBAS010280: Activating Infinispan subsystem.
08:36:48,927 INFO [org.jboss.as.clustering.jgroups] JBAS010260: Activating JGroups subsystem.
08:36:48,986 INFO [org.jboss.as.security] JBAS013101: Activating Security Subsystem
08:36:49,134 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
08:36:49,032 INFO [org.jboss.as.osgi] JBAS011940: Activating OSGi Subsystem
08:36:48,990 INFO [org.jboss.as.naming] JBAS011800: Activating Naming Subsystem
08:36:51,413 INFO [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.6.final
08:36:52,065 INFO [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.7.Final)
08:36:53,678 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 54) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
08:36:55,672 INFO [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
08:36:56,999 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 58) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:57,007 INFO [org.jboss.as.modcluster] (MSC service thread 1-2) JBAS011704: Mod_cluster uses default load balancer provider
08:36:57,120 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.1.GA
08:36:57,159 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 58) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:57,920 INFO [org.jboss.modcluster.ModClusterService] (MSC service thread 1-2) Initializing mod_cluster 1.2.0.Final
08:36:58,427 INFO [org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl] (MSC service thread 1-2) Listening to proxy advertisements on 224.0.1.105:23364
08:36:58,513 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Arrancando Coyote HTTP/1.1 en puerto http--192.168.0.12-8080
08:36:58,905 INFO [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]
08:37:00,753 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /opt/java/jboss/standalone/deployments
08:37:00,835 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found s.war in deployment directory. To trigger deployment create a file called s.war.dodeploy
08:37:02,314 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /192.168.0.12:9999
08:37:02,363 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /192.168.0.12:4447
08:37:03,160 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
08:37:03,384 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "cluster-demo.war"
08:37:08,168 INFO [stdout] (pool-12-thread-1)
08:37:08,178 INFO [stdout] (pool-12-thread-1) -------------------------------------------------------------------
08:37:08,189 INFO [stdout] (pool-12-thread-1) GMS: address=node01/web, cluster=web, physical address=192.168.0.12:55200
08:37:08,196 INFO [stdout] (pool-12-thread-1) -------------------------------------------------------------------
08:37:08,841 INFO [org.jboss.as.clustering.impl.CoreGroupCommunicationService.web] (MSC service thread 1-2) JBAS010206: Number of cluster members: 2
08:37:10,570 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-2) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:37:10,662 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:37:10,856 INFO [org.infinispan.config.ConfigurationValidatingVisitor] (pool-16-thread-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:37:12,145 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000078: Starting JGroups Channel
08:37:12,168 Advertencia [org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher] (pool-16-thread-1) Channel Muxer already has a default up handler installed (org.jboss.as.clustering.jgroups.ClassLoaderAwareUpHandler@10b0616) but now it is being overridden
08:37:12,190 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000094: Received new cluster view: [node02/web|1] [node02/web, node01/web]
08:37:12,210 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000079: Cache local address is node01/web, physical addresses are [10.7.0.148:55200]
08:37:12,265 INFO [org.infinispan.factories.GlobalComponentRegistry] (pool-16-thread-1) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.1.FINAL
08:37:12,517 INFO [org.infinispan.jmx.CacheJmxRegistration] (pool-16-thread-1) ISPN000031: MBeans were successfully registered to the platform mbean server.
08:37:13,469 INFO [org.jboss.as.clustering.infinispan] (pool-16-thread-1) JBAS010281: Started dist cache from web container
08:37:13,883 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:37:13,916 INFO [org.infinispan.config.ConfigurationValidatingVisitor] (MSC service thread 1-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:37:14,090 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-1) ISPN000031: MBeans were successfully registered to the platform mbean server.
08:37:14,217 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-1) JBAS010281: Started //default-host//cluster-demo cache from web container
08:37:14,421 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:37:14,441 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:37:15,523 INFO [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /cluster-demo
08:37:15,623 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015874: JBoss AS 7.1.0.Final "Thunder" started in 68178ms - Started 174 of 298 services (123 services are passive or on-demand)
08:37:16,035 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "cluster-demo.war"
Log node02:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/java/jboss
JAVA: /opt/java/jdk/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
=========================================================================
08:35:36,110 Información [org.jboss.modules] JBoss Modules version 1.1.1.GA
08:35:39,870 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
08:35:40,421 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting
08:35:57,079 INFO [org.xnio] XNIO Version 3.0.3.GA
08:35:57,080 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
08:35:57,325 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
08:35:57,531 INFO [org.jboss.remoting] JBoss Remoting version 3.2.2.GA
08:35:58,125 INFO [org.jboss.as.configadmin] JBAS016200: Activating ConfigAdmin Subsystem
08:35:58,147 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
08:35:58,407 INFO [org.jboss.as.clustering.jgroups] JBAS010260: Activating JGroups subsystem.
08:35:58,397 INFO [org.jboss.as.naming] JBAS011800: Activating Naming Subsystem
08:36:00,988 INFO [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.6.final
08:36:01,821 INFO [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.7.Final)
08:36:03,407 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 47) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
08:36:06,660 INFO [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service
08:36:08,609 INFO [org.jboss.as.modcluster] (MSC service thread 1-1) JBAS011704: Mod_cluster uses default load balancer provider
08:36:09,518 INFO [org.jboss.modcluster.ModClusterService] (MSC service thread 1-1) Initializing mod_cluster 1.2.0.Final
08:36:09,843 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 51) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:09,930 INFO [org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl] (MSC service thread 1-1) Listening to proxy advertisements on 224.0.1.105:23364
08:36:10,026 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 51) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:10,308 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services - Stack CXF Server 4.0.1.GA
08:36:11,464 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Arrancando Coyote HTTP/1.1 en puerto http--192.168.0.13-8080
08:36:12,005 INFO [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]
08:36:16,827 INFO [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /192.168.0.13:9999
08:36:17,143 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /opt/java/jboss/standalone/deployments
08:36:17,297 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found s.war in deployment directory. To trigger deployment create a file called s.war.dodeploy
08:36:17,444 INFO [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /192.168.0.13:4447
08:36:18,201 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
08:36:18,708 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.0.Final "Thunder" started in 47781ms - Started 136 of 255 services (118 services are passive or on-demand)
08:36:18,825 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "cluster-demo.war"
08:36:25,522 INFO [stdout] (pool-13-thread-1)
08:36:25,538 INFO [stdout] (pool-13-thread-1) -------------------------------------------------------------------
08:36:25,560 INFO [stdout] (pool-13-thread-1) GMS: address=node02/web, cluster=web, physical address=192.168.0.13:55200
08:36:25,571 INFO [stdout] (pool-13-thread-1) -------------------------------------------------------------------
08:36:28,036 INFO [org.jboss.as.clustering.impl.CoreGroupCommunicationService.web] (MSC service thread 1-2) JBAS010206: Number of cluster members: 1
08:36:31,257 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-2) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:31,289 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:31,602 INFO [org.infinispan.config.ConfigurationValidatingVisitor] (pool-16-thread-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:33,724 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000078: Starting JGroups Channel
08:36:33,753 Advertencia [org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher] (pool-16-thread-1) Channel Muxer already has a default up handler installed (org.jboss.as.clustering.jgroups.ClassLoaderAwareUpHandler@67855c) but now it is being overridden
08:36:33,803 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000094: Received new cluster view: [node02/web|0] [node02/web]
08:36:33,827 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000079: Cache local address is node02/web, physical addresses are [192.168.0.13:55200]
08:36:33,929 INFO [org.infinispan.factories.GlobalComponentRegistry] (pool-16-thread-1) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.1.FINAL
08:36:34,441 INFO [org.infinispan.jmx.CacheJmxRegistration] (pool-16-thread-1) ISPN000031: MBeans were successfully registered to the platform mbean server.
08:36:35,106 INFO [org.jboss.as.clustering.infinispan] (pool-16-thread-1) JBAS010281: Started dist cache from web container
08:36:35,710 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-2) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:35,775 INFO [org.infinispan.config.ConfigurationValidatingVisitor] (MSC service thread 1-2) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:36,066 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-2) ISPN000031: MBeans were successfully registered to the platform mbean server.
08:36:36,116 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-2) JBAS010281: Started //default-host//cluster-demo cache from web container
08:36:36,356 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-2) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:36,409 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-2) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
08:36:37,800 INFO [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /cluster-demo
08:36:38,424 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "cluster-demo.war"
08:37:07,547 INFO [org.jboss.as.clustering.impl.CoreGroupCommunicationService.lifecycle.web] (Incoming-1,null) JBAS010247: New cluster view for partition web (id: 1, delta: 1, merge: false) : [node02/web, node01/web]
08:37:07,583 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (Incoming-1,null) ISPN000094: Received new cluster view: [node02/web|1] [node02/web, node01/web]
I use "manual balancer" to test cluster works.
When cluster works, i use mod_cluster.
-
3. Re: Don't Session replication web at cluster
wdfink Mar 6, 2012 3:52 AM (in response to rengar)1 of 1 people found this helpfulWhat you mean by "manual balancer"? I'm not very familiar with web-clustering but if I test the clustering with Li WeiNan's example it works only if the mod_cluster is active.
If I only start the two instances and access one or the other by address and switch of one of it the example did not work.
-
4. Re: Don't Session replication web at cluster
rengar Mar 6, 2012 6:58 AM (in response to wdfink)Correct.
Web session replication ONLY works if use mod_cluster balancer.
If I only start the two instances and access one or the other by address and switch of one of it the example did not work.
Before, JBoss 5.1, "manual balancer" works fine, it didn't depended balancer (mod_cluster, mod_proxy, ....)
-
5. Re: Don't Session replication web at cluster
wdfink Mar 7, 2012 6:42 AM (in response to rengar)The answer why 'manual balancer' did not wor you find here