tag:blogger.com,1999:blog-9088482399688345277.post8830942553461467293..comments2024-03-28T10:58:11.656-06:00Comments on BruceBlog: How to Use Automatic Failover In an ActiveMQ Network of BrokersBruce Snyderhttp://www.blogger.com/profile/18285794923769241032noreply@blogger.comBlogger88125tag:blogger.com,1999:blog-9088482399688345277.post-15557917464706989432017-05-31T05:45:11.956-06:002017-05-31T05:45:11.956-06:00I have a similar case to handle. Can you let me kn...I have a similar case to handle. Can you let me know how you handled this.All That I dohttps://www.blogger.com/profile/13251614231180495768noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-4253802995029280742016-05-06T10:21:21.541-06:002016-05-06T10:21:21.541-06:00For the benefit of the entire ActiveMQ user commun...For the benefit of the entire ActiveMQ user community, please post your question to the ActiveMQ user mailing list. Information about subscribing to this mailing list and others is available at the following URL:<br /><br />http://activemq.apache.org/mailing-lists.htmlBruce Snyderhttps://www.blogger.com/profile/18285794923769241032noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-16071156632893809632016-05-06T00:10:44.970-06:002016-05-06T00:10:44.970-06:00Hi Brue,
I am working on a POC related to ActiveMQ...Hi Brue,<br />I am working on a POC related to ActiveMQ. I need you help whether the following is possible or not with ActiveMQ.<br /><br />Can Master/Slave configuration concept is achievable with one local activemq instance and a remote activemq instance?<br />I have tried with two local instances and its working fine. But whether the same is doable with one local machine and another in remote machine?kanthuhttps://www.blogger.com/profile/02097266220140067911noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-22148906503219718762016-05-06T00:09:58.988-06:002016-05-06T00:09:58.988-06:00This comment has been removed by the author.kanthuhttps://www.blogger.com/profile/02097266220140067911noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-75987436948064704982016-05-02T10:08:44.263-06:002016-05-02T10:08:44.263-06:00For the benefit of the entire ActiveMQ user commun...For the benefit of the entire ActiveMQ user community, it would be best if you posted your question to the ActiveMQ user mailing list. Information about the ActiveMQ mailing lists can be found here: <br /><br />http://activemq.apache.org/mailing-lists.html Bruce Snyderhttps://www.blogger.com/profile/18285794923769241032noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-37171329932781449142016-05-02T08:07:05.411-06:002016-05-02T08:07:05.411-06:00Any idea why messages are not consumed on consumer...Any idea why messages are not consumed on consumer level after sometime but messages are showing as 'Pending' and if we click on the Browse link , no messages are shown.Achzhttps://www.blogger.com/profile/01815287083492807915noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-23360486787083525752016-04-22T08:59:37.721-06:002016-04-22T08:59:37.721-06:00This is a question for the ActiveMQ user mailing l...This is a question for the ActiveMQ user mailing list, information about subscribing to the list can be found here: <br /><br />http://activemq.apache.org/mailing-lists.htmlBruce Snyderhttps://www.blogger.com/profile/18285794923769241032noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-89296908113284630862016-04-22T08:16:35.503-06:002016-04-22T08:16:35.503-06:00We are using ZooKeeper LevelDB for our ActiveMQ an...We are using ZooKeeper LevelDB for our ActiveMQ and we put the logCompression="snappy" to compress the old data logs but still not compressing properly and after some times activemq showing Disk Space issue. Is there any way to delete or purge the old data files from the disk so the space will be always available?<br /><br />Achzhttps://www.blogger.com/profile/01815287083492807915noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-55271026497618021252016-02-21T10:25:46.224-07:002016-02-21T10:25:46.224-07:00To answer your question, the NoB needs to know all...To answer your question, the NoB needs to know all potential masters and slaves, not just masters. When a master fails, a slave is promoted to the master and there is no assumption that a slave takes over a master's IP address or port number. In fact, slaves run in a kind of warm, stand-by mode so that they can grab the file lock as quickly as possible. So even if a slave is running on the same IP address as a master, they must run on a different port. Making a NoB aware of all potential masters and slaves takes care of the case where a master fails, then the NoB knows to try to contact the slave.Bruce Snyderhttps://www.blogger.com/profile/18285794923769241032noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-4211946335200270072016-02-19T07:27:37.395-07:002016-02-19T07:27:37.395-07:00networkConnectors
networkConnector
name="li...networkConnectors <br />networkConnector <br />name="linkToMasterNode2FromMasterNode1"<br />uri="masterslave:(tcp://master-node2:61616,tcp://slave-node2:61617)"<br />networkTTL="2"<br />userName="admin"<br />password="admin"<br />conduitSubscriptions="false"<br />networkConnectorsAchzhttps://www.blogger.com/profile/01815287083492807915noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-6274909439418353232016-02-19T07:24:15.962-07:002016-02-19T07:24:15.962-07:00This comment has been removed by the author.Achzhttps://www.blogger.com/profile/01815287083492807915noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-7336237083128248732016-02-19T07:21:22.166-07:002016-02-19T07:21:22.166-07:00Thank you Bruce. I was trying to setup 2 network o...Thank you Bruce. I was trying to setup 2 network of brokers along with master-slave. Master-slave configuration quite easy just pointing to shared file system. But when setting up NoB why do we need to mention both master and slave node to the configuration. When I put only master node it's not working as expected. I had to setup like :<br /> <br /> <br /> <br />else it was not working. Achzhttps://www.blogger.com/profile/01815287083492807915noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-86788848689717283132016-02-17T10:41:53.320-07:002016-02-17T10:41:53.320-07:00When I still did consulting around ActiveMQ, I alw...When I still did consulting around ActiveMQ, I always recommended that a customer make use of master/slave along with a network of brokers (NoB) in order to provide a level of HA. Additionally, you need to create an infrastructure that will bring failed masters back as soon as possible so that they can be slaves to the new master. The downside to NoB is that it can be very chatty so you need to dial down the amount of broker-to-broker communications to only those that are really necessary. This can include segregating what messages are replicated to what brokers, and this can be a very complex and time consuming task.<br /><br />What I always recommend is to start such an endeavor on a smaller scale before moving to the production level size system. The reason for starting small is to develop a deep understanding of how the ActiveMQ NoB works and what it needs to do to support your business case before taking the steps to build out a full broker network. Bruce Snyderhttps://www.blogger.com/profile/18285794923769241032noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-83854570722211477772016-02-16T20:25:36.825-07:002016-02-16T20:25:36.825-07:00Hi Bruce,
Can you please clarify why Network of B...Hi Bruce,<br /><br />Can you please clarify why Network of Broker is not highly available when we use failover protocol. Please clear me with example if possible. Our requirement is somewhat hybrid I mean master-slave along with Network of Broker. Can it be possible? Can the stuck messages will be consumed if use both?Achzhttps://www.blogger.com/profile/01815287083492807915noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-27427218871526472682016-02-12T20:52:18.081-07:002016-02-12T20:52:18.081-07:00I think I'm missing some context because I don...I think I'm missing some context because I don't understand how sending a message via a button click event is any different from sending a message when a producer starts up. Can you explain more about what you're trying to do?Bruce Snyderhttps://www.blogger.com/profile/18285794923769241032noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-319950177438792162016-02-11T02:58:24.171-07:002016-02-11T02:58:24.171-07:00Hi Bruce,we have setup ActiveMQ 5.13.0. It works f...Hi Bruce,we have setup ActiveMQ 5.13.0. It works fine. We have data in message format in MYSQL DB and we are able to send the data to broker on some button click event and then it is further processed by the broker. We have a question, Can we pull the data from producer immediately when activemq starts up instead of button click event? Anonymoushttps://www.blogger.com/profile/03171034652635268009noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-2187405273523635722015-03-03T12:22:36.230-07:002015-03-03T12:22:36.230-07:00Hi Shalin, the drawing software I used for the dia...Hi Shalin, the drawing software I used for the diagrams is <a href="http://www.omnigroup.com/omnigraffle" rel="nofollow">OmniGraffle</a>Bruce Snyderhttps://www.blogger.com/profile/18285794923769241032noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-67933841688234329592015-03-03T04:24:43.343-07:002015-03-03T04:24:43.343-07:00Good post. What is the diagram software you used t...Good post. What is the diagram software you used to create these diagram?<br /><br />Regards,<br /><a href="http://creately.com" rel="nofollow">Creately</a>Evanhttps://www.blogger.com/profile/01134034541170679170noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-37475369163162851502014-11-30T15:49:43.633-07:002014-11-30T15:49:43.633-07:00This sounds like perfect question for the ActiveMQ...This sounds like perfect question for the ActiveMQ user mailing list where many ActiveMQ experts hang out. Information on subscribing is available here: <br /><br /><a href="http://activemq.apache.org/mailing-lists.html" rel="nofollow">http://activemq.apache.org/mailing-lists.html</a> Bruce Snyderhttps://www.blogger.com/profile/18285794923769241032noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-27025676219311136512014-11-27T08:50:38.806-07:002014-11-27T08:50:38.806-07:00we are using message-driven bean to process messag...we are using message-driven bean to process messages and using container to receive messages. When Application Server is started, for each deployed message-driven bean, its container keeps a connection to the JMS provider. When the connection is broken(ActiveMQ is stopped), the container is not able to receive messages from the JMS provider and, therefore, is unable to deliver messages to its message-driven bean instances.<br />This is the reason we had to take restart of application when active mq was restarted. <br />Kartikhttps://www.blogger.com/profile/13827608954846118990noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-39131425932533089692014-11-27T08:48:50.783-07:002014-11-27T08:48:50.783-07:00Reconnect-mechanism for JMS consumer is not workin...Reconnect-mechanism for JMS consumer is not workingKartikhttps://www.blogger.com/profile/13827608954846118990noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-75532140920321154992013-11-17T09:38:38.776-07:002013-11-17T09:38:38.776-07:00Because each environment is different, it is diffi...Because each environment is different, it is difficult for me to say if this is going to work best for you. The only way to know for sure is through comprehensive testing using the exact type of traffic that this architecture will experience in the production environment. Never, ever roll out a system to a production environment with a question in your mind about how the system will perform. Bruce Snyderhttps://www.blogger.com/profile/18285794923769241032noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-22860205169559603262013-11-13T10:03:16.528-07:002013-11-13T10:03:16.528-07:00Hi Bruce -- Yes, we are making use of the broker-s...Hi Bruce -- Yes, we are making use of the broker-side failover options as well...do you have any other suggestions as per our current box pattern setup?Anonymoushttps://www.blogger.com/profile/07735122516952873210noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-18246762234838321462013-11-12T05:08:19.649-07:002013-11-12T05:08:19.649-07:00Are you also utilizing the broker-side failover su...Are you also utilizing the <a href="http://bsnyderblog.blogspot.de/2010/10/new-features-in-activemq-54-automatic.html" rel="nofollow">broker-side failover support (i.e., rebalancing of cluster clients)</a>? There are some features to support broker-side failover that allows clients to move from one broker to another in the event of a broker failure. Bruce Snyderhttps://www.blogger.com/profile/18285794923769241032noreply@blogger.comtag:blogger.com,1999:blog-9088482399688345277.post-58501571932587298532013-11-06T11:22:33.069-07:002013-11-06T11:22:33.069-07:00Hi Bruce, Thanks for the last post regarding the p...Hi Bruce, Thanks for the last post regarding the prefetchLimit setting. We are using that in our setup and it has helped with the stuck messages. We are implementing another setup in which we have 4 machines (brokers) running as a Network of Brokers. Can you recommend a topology we can use where consumers/producers can connect to any one of the 4 brokers? We've started off with configuring the networkConnector for each broker to point to its neighbor as such A -> B -> C -> D -> A (a box pattern) with duplex=true for all the brokers. We're not sure if this configuration would help in the event of a broker failure (shutdown). Are we going towards the right direction?Anonymoushttps://www.blogger.com/profile/07735122516952873210noreply@blogger.com