But in cluster architecture, the lease-database-locker is necessary to avoid multiple brokers running against the same logical database, no ?
[cid:image001.png@01D9E63C.D620F290] Pierre GIRONA Référent Middleware Centre de compétences DIAE - Data, Intégration & Architecture d’Entreprise DSI Groupe 78 rue de la Villette 69425 Lyon Cedex 03 Mob. +33 (0)6 73 33 18 50 E-mail : pierre.gir...@sodiaal.fr<mailto:pierre.gir...@sodiaal.fr> - web : www.sodiaal.fr<http://www.sodiaal.fr/> Avant d'imprimer, merci de penser à l'environnement. De : Justin Bertram <jbert...@apache.org> Envoyé : mercredi 27 novembre 2024 17:07 À : users@activemq.apache.org Objet : Re: The master node of activemq reboots by itself You've configured the lease-database-locker: <persistenceAdapter> <jdbcPersistenceAdapter dataDirectory="activemq-data" dataSource="#postgres-ds" lockKeepAlivePeriod="5000"> <locker> <lease-database-locker You've configured the lease-database-locker: <persistenceAdapter> <jdbcPersistenceAdapter dataDirectory="activemq-data" dataSource="#postgres-ds" lockKeepAlivePeriod="5000"> <locker> <lease-database-locker leaseHolderId="i-12890abcdead90" lockAcquireSleepInterval="10000"/> </locker> </jdbcPersistenceAdapter> </persistenceAdapter> I recommend taking a look at the documentation for this [1] to understand better how it works. Justin [1] https://activemq.apache.org/components/classic/documentation/pluggable-storage-lockers#lease-database-locker<https://urldefense.com/v3/__https:/activemq.apache.org/components/classic/documentation/pluggable-storage-lockers*lease-database-locker__;Iw!!CpwJqyuz!HH-qvx_syuWjxlz8AUcN73_Gep9bHNPwH8zumxDTmAeJMVf3nWa47-AD3UjtyfLkywlH0ujW7VIjj8tmeC5fS_Q$> On Wed, Nov 27, 2024 at 9:56 AM GIRONA Pierre <pierre.gir...@sodiaal.fr.invalid<mailto:pierre.gir...@sodiaal.fr.invalid>> wrote: Hi Justin, Thanks for your reply. But how I ensure that the broker is able to maintain its lock ? You can find attached activemq configuration files. Do you see anything configured incorrectly? Regards, [cid:image001.png@01D9E63C.D620F290] Pierre GIRONA Référent Middleware Centre de compétences DIAE - Data, Intégration & Architecture d’Entreprise DSI Groupe 78 rue de la Villette 69425 Lyon Cedex 03 Mob. +33 (0)6 73 33 18 50 E-mail : pierre.gir...@sodiaal.fr<mailto:pierre.gir...@sodiaal.fr> - web : www.sodiaal.fr<http://www.sodiaal.fr/> Avant d'imprimer, merci de penser à l'environnement. De : Justin Bertram <jbert...@apache.org<mailto:jbert...@apache.org>> Envoyé : mercredi 27 novembre 2024 16:47 À : users@activemq.apache.org<mailto:users@activemq.apache.org> Objet : Re: The master node of activemq reboots by itself This seems like an environmental issue of some kind. The error message clearly states: BROKER_PROD_1, no longer able to keep the exclusive lock so giving up being a master So, the broker lost its exclusive lock which means it will shut itself This seems like an environmental issue of some kind. The error message clearly states: BROKER_PROD_1, no longer able to keep the exclusive lock so giving up being a master So, the broker lost its exclusive lock which means it will shut itself down to avoid split brain. This lock is what the master and the slave compete for to ensure only one broker is active at a time. You should ensure that the broker is able to maintain its lock or this will happen. Justin On Wed, Nov 27, 2024 at 2:22 AM GIRONA Pierre <pierre.gir...@sodiaal.fr.invalid<mailto:pierre.gir...@sodiaal.fr.invalid>> wrote: Hello, I have a problem with activeMQ. My configuration is in cluster mode and once a month or so, the master node reboots by itself. Have you ever had this problem? You can find attached the log files of each nodes. The node 1 restart on 2024-11-14 at 17:21:21,946 with this error : BROKER_PROD_1, no longer able to keep the exclusive lock so giving up being a master | org.apache.activemq.broker.LockableServiceSupport | ActiveMQ JDBC PA Scheduled Task Thanks for your help. Pierre GIRONA Référent Middleware Centre de compétences DIAE - Data, Intégration & Architecture d’Entreprise DSI Groupe 78 rue de la Villette 69425 Lyon Cedex 03 Mob. +33 (0)6 73 33 18 50 E-mail : pierre.gir...@sodiaal.fr<mailto:pierre.gir...@sodiaal.fr> - web : www.sodiaal.fr<http://www.sodiaal.fr/> Avant d'imprimer, merci de penser à l'environnement. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@activemq.apache.org<mailto:users-unsubscr...@activemq.apache.org> For additional commands, e-mail: users-h...@activemq.apache.org<mailto:users-h...@activemq.apache.org> For further information, visit: https://activemq.apache.org/contact<https://urldefense.com/v3/__https:/activemq.apache.org/contact__;!!CpwJqyuz!H3gWvgSYGwxLO6tnW6SJXexhEj-WPm3gUGTLyNJG7qUmV6VvJZinxfXIsn9q6vBYmKHexwGDRLpcUL1A_Wue4y0$> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@activemq.apache.org<mailto:users-unsubscr...@activemq.apache.org> For additional commands, e-mail: users-h...@activemq.apache.org<mailto:users-h...@activemq.apache.org> For further information, visit: https://activemq.apache.org/contact<https://urldefense.com/v3/__https:/activemq.apache.org/contact__;!!CpwJqyuz!HH-qvx_syuWjxlz8AUcN73_Gep9bHNPwH8zumxDTmAeJMVf3nWa47-AD3UjtyfLkywlH0ujW7VIjj8tmPChDdWA$>