9 Replies Latest reply on Oct 12, 2015 12:30 PM by Giacomo Genovese

    Maximum number of instances in 1 CapeDwarf (multi-instances)

    Giacomo Genovese Newbie

      Hi,

      Which is the max number of instances that can run on the same CapeDwarf at the same time?

       

      Thanks,

      Giacomo.

        • 1. Re: Maximum number of instances in 1 CapeDwarf (multi-instances)
          Ales Justin Master

          Do you mean applications or cluster instances?

          Both can be as many as you like.


          • 2. Re: Maximum number of instances in 1 CapeDwarf (multi-instances)
            Giacomo Genovese Newbie

            Applications.

            Anyway, I'm trying to run 2 applications and I receive error about clustering.

            I need to solve it, could you help me?

             

            Thanks.

            • 3. Re: Maximum number of instances in 1 CapeDwarf (multi-instances)
              Ales Justin Master

              Two applications in a 2 node cluster?

               

              Sure, post any issue details here.

              • 4. Re: Maximum number of instances in 1 CapeDwarf (multi-instances)
                Giacomo Genovese Newbie

                Ales Justin ha scritto:

                 

                Two applications in a 2 node cluster?

                 

                Sure, post any issue details here.

                Hi,

                This is the command that I use to run the second application (GAE app):

                     "sudo Capedwarf/bin/standalone.sh -c standalone-capedwarf.xml -Djboss.server.base.dir=Capedwarf/standalone1/ -Djboss.socket.binding.port-offset=10000 -Djboss.node.name=node1"

                 

                Here the Error:

                "

                17:33:54,566 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-2) JBAS010406: Registered connection factory java:/JmsXA

                17:33:54,619 INFO  [org.hornetq.core.server] (ServerService Thread Pool -- 46) HQ221003: trying to deploy queue jms.queue.capedwarfQueue

                17:33:54,659 INFO  [org.hornetq.ra] (MSC service thread 1-2) HornetQ resource adaptor started

                17:33:54,659 INFO  [org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-2) IJ020002: Deployed: file://RaActivatorhornetq-ra

                17:33:54,661 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-1) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]

                17:33:54,662 INFO  [org.jboss.as.messaging] (MSC service thread 1-1) JBAS011601: Bound messaging object to jndi name java:jboss/DefaultJMSConnectionFactory

                17:33:54,714 ERROR [org.hornetq.core.server] (Thread-1 (hornetq-netty-threads-1188121504)) HQ224018: Failed to create session: HornetQClusterSecurityException[errorType=CLUSTER_SECURITY_EXCEPTION message=HQ119099: Unable to authenticate cluster user: HORNETQ.CLUSTER.ADMIN.USER]

                  at org.hornetq.core.security.impl.SecurityStoreImpl.authenticate(SecurityStoreImpl.java:122) [hornetq-server-2.4.5.Final.jar:]

                  at org.hornetq.core.server.impl.HornetQServerImpl.createSession(HornetQServerImpl.java:1020) [hornetq-server-2.4.5.Final.jar:]

                  at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handleCreateSession(HornetQPacketHandler.java:149) [hornetq-server-2.4.5.Final.jar:]

                  at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handlePacket(HornetQPacketHandler.java:77) [hornetq-server-2.4.5.Final.jar:]

                  at org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:641) [hornetq-core-client-2.4.5.Final.jar:]

                  at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:556) [hornetq-core-client-2.4.5.Final.jar:]

                  at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:532) [hornetq-core-client-2.4.5.Final.jar:]

                  at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:658) [hornetq-server-2.4.5.Final.jar:]

                  at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.channelRead(HornetQChannelHandler.java:73) [hornetq-core-client-2.4.5.Final.jar:]

                  at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:338) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:324) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:153) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:338) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:324) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.handler.codec.ByteToMessageDecoder.handlerRemoved(ByteToMessageDecoder.java:110) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.DefaultChannelPipeline.callHandlerRemoved0(DefaultChannelPipeline.java:524) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.DefaultChannelPipeline.callHandlerRemoved(DefaultChannelPipeline.java:518) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.DefaultChannelPipeline.remove0(DefaultChannelPipeline.java:348) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.DefaultChannelPipeline.remove(DefaultChannelPipeline.java:319) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.DefaultChannelPipeline.remove(DefaultChannelPipeline.java:296) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at org.hornetq.core.protocol.ProtocolHandler$ProtocolDecoder.decode(ProtocolHandler.java:168) [hornetq-server-2.4.5.Final.jar:]

                  at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:226) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:139) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at org.hornetq.core.protocol.ProtocolHandler$ProtocolDecoder.channelRead(ProtocolHandler.java:111) [hornetq-server-2.4.5.Final.jar:]

                  at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:338) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:324) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:132) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:485) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:452) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:346) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [netty-all-4.0.15.Final.jar:4.0.15.Final]

                  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

                "

                Thanks again.

                 

                Giacomo

                • 5. Re: Maximum number of instances in 1 CapeDwarf (multi-instances)
                  Ales Justin Master

                  Uh, no idea ... what does HornetQ forum say?

                  Or perhaps Google for this kind of error.

                   

                  As this is HornetQ specific, not CapeDwarf.

                  • 6. Re: Maximum number of instances in 1 CapeDwarf (multi-instances)
                    Justin Bertram Master

                    My first thought is you need to set these two elements in your <hornetq-configuration>:

                     

                    <cluster-user>myClusterUser</cluster-user>
                    <cluster-password>myClusterPassword</cluster-password>
                    

                     

                    Where "myClusterUser" and "myClusterPassword" are strings of your choosing.

                     

                    A HornetQ cluster won't form with the default clustering credentials for security reasons.

                    • 8. Re: Maximum number of instances in 1 CapeDwarf (multi-instances)
                      Justin Bertram Master

                      Yes, that's the place, alesj.

                       

                      Perhaps you have <security-enabled>false</security-enabled> on your cluster tests and that's why they pass?

                      • 9. Re: Maximum number of instances in 1 CapeDwarf (multi-instances)
                        Giacomo Genovese Newbie

                        I modified the standalone-capedwarf.xml writing the same password for both applications and It doesn't display any error.

                        I'm going to test if they work good.

                         

                        Thanks a lot!