6 Replies Latest reply on Jul 6, 2010 6:58 AM by joydeep.sarkar

    HA-Singleton using HornetQ 2.0

    joydeep.sarkar

      Dear All,

       

      I am trying to implement HA-Singleton using HornetQ. What I have figured out in the User manual is, there are only Chain and Symmetric topologies. I have tried the same using HASingletonDeployer service inside the all-with-hornetq instance. I amd wondering if that is the correct approach to implement HA singleton, as it has to be either 1 or 2 for max-hop. As such, there could be an ambiguity.

      Could anyone please tell me how can HA singleton be configured?

       

       

      TIA,

      Joydeep

        • 1. Re: HA-Singleton using HornetQ 2.0
          timfox

          Why do you want to HASingleton?

          • 2. Re: HA-Singleton using HornetQ 2.0
            joydeep.sarkar

            The goal of using HA-Singleton is to achieve master/slave topology. 

            • 3. Re: HA-Singleton using HornetQ 2.0
              timfox

              Thanks, I know what HASingleton is.

               

              I was asking why you wanted to use it with HornetQ. HornetQ provides live/backup HA functionality without requiring HASingleton. You should read the user manual.

              • 4. Re: HA-Singleton using HornetQ 2.0
                joydeep.sarkar


                Sorry about the confusion Tim. That's not what I intended to mean.

                 

                I have gone through the user manual. The live-backup pair suits the requirement most, but it is the problem with the synchronization.

                As the manual says,

                "The next release of HornetQ will provide functionality for automatically synchronizing a new backup node to a live node without having to temporarily bring down the live node."

                That's where my concern is. That means it requires manual intervention to keep it in sync. And if I go for shared journal, where would it be kept? live or backup? And in shared mode the back up server needs to get restarted as well.
                Considering these points, I was thinking to use mixed flavor.

                Just a thought on the same note, if I do not use HornetQ topology, I can simply leave the connector and acceptor configuration out, so that the network

                is not being looked up for discovery of servers. On the other hand, I can use the HASingletonDeployer service of JBoss. As such, I can achieve the master-slave topology.

                 

                Please suggest which option would be the best.

                 

                Regards,
                Joydeep

                • 5. Re: HA-Singleton using HornetQ 2.0
                  timfox

                  I'd suggest waiting for 2.2. There are a bunch of HA improvements currently being worked on, as discussed on the dev forum.

                  • 6. Re: HA-Singleton using HornetQ 2.0
                    joydeep.sarkar

                    Thanks a ton for your input Tim.

                     

                    Regards,

                    Joydeep