The following is the use case: The application is currently running as one standalone server (no cluster) in production. We do not currently have a need to make it to run wildfly in cluster mode, but we do have concern over a sudden shutdown of the wildfly instance and no backup. In addition, we need to do routine maintenance work and need to take down the standalone server. It would be idea to have a standby server to switch on during our maintenance work to reduce down time.
So the work is to set up a HA singleton scenario so that we will have one wildfly instance running while another wildfly instance is in standby mode. I set up the colocated shared store approach with the following configuration: Wildfly #1 (activemq master #1 + activemq slave #1) Wildfly #2 (activemq master #2 + activemq slave #2) The directory of activemq master #1 is referenced by activemq slave #2 and activemq master #2 is referenced by activemq slave #1 Note: I set up NFS (for demo purpose) to allow both instances to access the shared drive paths. With the above configuration, I was able to test a scenario: start wildfly #1, then wildfly #2. wildfly #1 becomes HA singleton provider. Now send many messages to wildfly #1, and shut it down while it is in the middle of processing messages. Then wildfly #2 was elected as HA singleton provider, and started to process remainder messages. This is what we need: we want to make sure messages will be processed by the newly elected HA singleton provider. I need to find out if we need to do the same thing with data replication approach since we may not use the colocated shared-store in production. I have not been able to make the newly elected HA singleton provider to process the remainder messages until the previous HA singleton provider is restarted (in standby mode). This pretty much functions as if I had not set up the configuration at all. Based on the observation, I think somehow the messages may not get replicated ??? -- View this message in context: http://activemq.2283324.n4.nabble.com/How-to-configure-colocated-backup-servers-for-data-replication-approach-tp4715415p4715449.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.