You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Bummer <je...@centrum.cz> on 2019/09/20 06:40:46 UTC

What was the last time the broker went live?

Hello.

For the sake of safe cluster restarts I've created a solution based on
comparing when the slave and the broker went live. This way I can make them
start in the correct order so that no data is lost. Unfortunately, the only
way how to get the timestamp is to browse the broker logs which turned to be
slow as hell.

Does anyone here have an idea how to reach the timestamp faster?

Thanks.
Jan



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: What was the last time the broker went live?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Maybe a data collector that get MBean attribute values while started and
store to a backend ?

It's what I'm doing using Karaf Decanter and storing into Elasticsearch.

Regards
JB

On 20/09/2019 09:14, Bummer wrote:
> Thank you for the tip.
> 
> But I'd prefer an offline method because the problem I'm trying to solve
> comes with the cluster turned off.
> 
> 
> 
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: What was the last time the broker went live?

Posted by Bummer <je...@centrum.cz>.
Thank you for the tip.

But I'd prefer an offline method because the problem I'm trying to solve
comes with the cluster turned off.



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: What was the last time the broker went live?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Jan,

On the BrokerMBean via JMX, you have Uptime and UptimeMillis attribute.

I'm using it in Karaf Decanter to provide a "map" of brokers with since
when they are live.

Regards
JB

On 20/09/2019 08:40, Bummer wrote:
> Hello.
> 
> For the sake of safe cluster restarts I've created a solution based on
> comparing when the slave and the broker went live. This way I can make them
> start in the correct order so that no data is lost. Unfortunately, the only
> way how to get the timestamp is to browse the broker logs which turned to be
> slow as hell.
> 
> Does anyone here have an idea how to reach the timestamp faster?
> 
> Thanks.
> Jan
> 
> 
> 
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: What was the last time the broker went live?

Posted by Justin Bertram <jb...@apache.org>.
Are you asking about 5.x or Artemis? If Artemis, are talking about an HA
pair or just 2 clustered brokers not in an HA configuration?


Justin

On Fri, Sep 20, 2019 at 1:40 AM Bummer <je...@centrum.cz> wrote:

> Hello.
>
> For the sake of safe cluster restarts I've created a solution based on
> comparing when the slave and the broker went live. This way I can make them
> start in the correct order so that no data is lost. Unfortunately, the only
> way how to get the timestamp is to browse the broker logs which turned to
> be
> slow as hell.
>
> Does anyone here have an idea how to reach the timestamp faster?
>
> Thanks.
> Jan
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>