You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by challa asf <as...@outlook.com> on 2013/01/07 22:20:34 UTC

force snapshot

I am new to Zookeeper. Couple of questions. 
What is the threshold before ZK takes a snapshot?Is there a way to force ZK to snapshot for troubleshooting or for any Operational reasons?
Thanks,Challa 		 	   		  

RE: force snapshot

Posted by S C <as...@outlook.com>.
Thanks Thawan. This is exactly what I was looking for.

> From: thawan@fb.com
> To: user@zookeeper.apache.org
> Subject: Re: force snapshot
> Date: Fri, 11 Jan 2013 08:48:51 +0000
> 
> If you have multiple machines in the ensemble you can restart one of the
> machine. When the follower restarts and join the quorum it will create a
> new snapshot that you can use to troubleshoot the problem.
> 
> -- 
> Thawan Kooburat
> 
> 
> 
> 
> 
> On 1/10/13 10:30 AM, "Dayal Dilli" <da...@userevents.com> wrote:
> 
> >Check out this link for information about SnapshotFormatter
> >
> >http://svn.apache.org/repos/asf/zookeeper/trunk/src/java/main/org/apache/z
> >ookeeper/server/SnapshotFormatter.java
> >
> >Dayal
> >________________________________________
> >From: S C [asf11@outlook.com]
> >Sent: Wednesday, January 09, 2013 5:37 PM
> >To: user@zookeeper.apache.org
> >Subject: RE: force snapshot
> >
> >Thank you Dayal.
> >Where can I get more info on SnapshotFormatter?
> >Thanks,SC
> >
> >> From: dayal.dilli@userevents.com
> >> To: user@zookeeper.apache.org
> >> Subject: RE: force snapshot
> >> Date: Wed, 9 Jan 2013 18:18:17 +0000
> >>
> >> Your understanding is correct. snapCount is a system property with
> >>default value is 100,000. You can also set it in the zookeeper
> >>configuration file (conf/zoo.cfg) by using the parameter "snapCount".
> >>
> >> I don't understand exactly what you mean by adhoc snapshot. From my
> >>understanding, if you want to take a snapshot early/more frequently
> >>reduce the value of snapCount. Also, you can use SnapshotFormatter to
> >>get the data in snapshot in plain text and analyze it.
> >>
> >> Dayal
> >> ________________________________________
> >> From: S C [asf11@outlook.com]
> >> Sent: Wednesday, January 09, 2013 1:00 PM
> >> To: user@zookeeper.apache.org
> >> Subject: RE: force snapshot
> >>
> >> Dayal,
> >> I believe you pointed the threshold. Thank you. Is there a way to take
> >>an adhoc snapshot for troubleshooting / analysis of any issues?
> >> Upon looking for snapCount, I came across "zookeeper.snapCount" a
> >>system property with default value of 100,000.  Is my understanding
> >>correct?
> >>
> >> Thanks,SC
> >>
> >> > From: dayal.dilli@userevents.com
> >> > To: user@zookeeper.apache.org
> >> > Subject: RE: force snapshot
> >> > Date: Tue, 8 Jan 2013 14:35:02 +0000
> >> >
> >> > Change the value of snapCount in conf/zoo.cfg
> >> >
> >> > The default is 10,000.
> >> > ________________________________________
> >> > From: challa asf [asf11@outlook.com]
> >> > Sent: Monday, January 07, 2013 5:20 PM
> >> > To: user@zookeeper.apache.org
> >> > Subject: force snapshot
> >> >
> >> > I am new to Zookeeper. Couple of questions.
> >> > What is the threshold before ZK takes a snapshot?Is there a way to
> >>force ZK to snapshot for troubleshooting or for any Operational reasons?
> >> > Thanks,Challa
> >> >
> >>
> >
> 
 		 	   		  

Re: force snapshot

Posted by Thawan Kooburat <th...@fb.com>.
If you have multiple machines in the ensemble you can restart one of the
machine. When the follower restarts and join the quorum it will create a
new snapshot that you can use to troubleshoot the problem.

-- 
Thawan Kooburat





On 1/10/13 10:30 AM, "Dayal Dilli" <da...@userevents.com> wrote:

>Check out this link for information about SnapshotFormatter
>
>http://svn.apache.org/repos/asf/zookeeper/trunk/src/java/main/org/apache/z
>ookeeper/server/SnapshotFormatter.java
>
>Dayal
>________________________________________
>From: S C [asf11@outlook.com]
>Sent: Wednesday, January 09, 2013 5:37 PM
>To: user@zookeeper.apache.org
>Subject: RE: force snapshot
>
>Thank you Dayal.
>Where can I get more info on SnapshotFormatter?
>Thanks,SC
>
>> From: dayal.dilli@userevents.com
>> To: user@zookeeper.apache.org
>> Subject: RE: force snapshot
>> Date: Wed, 9 Jan 2013 18:18:17 +0000
>>
>> Your understanding is correct. snapCount is a system property with
>>default value is 100,000. You can also set it in the zookeeper
>>configuration file (conf/zoo.cfg) by using the parameter "snapCount".
>>
>> I don't understand exactly what you mean by adhoc snapshot. From my
>>understanding, if you want to take a snapshot early/more frequently
>>reduce the value of snapCount. Also, you can use SnapshotFormatter to
>>get the data in snapshot in plain text and analyze it.
>>
>> Dayal
>> ________________________________________
>> From: S C [asf11@outlook.com]
>> Sent: Wednesday, January 09, 2013 1:00 PM
>> To: user@zookeeper.apache.org
>> Subject: RE: force snapshot
>>
>> Dayal,
>> I believe you pointed the threshold. Thank you. Is there a way to take
>>an adhoc snapshot for troubleshooting / analysis of any issues?
>> Upon looking for snapCount, I came across "zookeeper.snapCount" a
>>system property with default value of 100,000.  Is my understanding
>>correct?
>>
>> Thanks,SC
>>
>> > From: dayal.dilli@userevents.com
>> > To: user@zookeeper.apache.org
>> > Subject: RE: force snapshot
>> > Date: Tue, 8 Jan 2013 14:35:02 +0000
>> >
>> > Change the value of snapCount in conf/zoo.cfg
>> >
>> > The default is 10,000.
>> > ________________________________________
>> > From: challa asf [asf11@outlook.com]
>> > Sent: Monday, January 07, 2013 5:20 PM
>> > To: user@zookeeper.apache.org
>> > Subject: force snapshot
>> >
>> > I am new to Zookeeper. Couple of questions.
>> > What is the threshold before ZK takes a snapshot?Is there a way to
>>force ZK to snapshot for troubleshooting or for any Operational reasons?
>> > Thanks,Challa
>> >
>>
>


RE: force snapshot

Posted by Dayal Dilli <da...@userevents.com>.
Check out this link for information about SnapshotFormatter

http://svn.apache.org/repos/asf/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/SnapshotFormatter.java

Dayal
________________________________________
From: S C [asf11@outlook.com]
Sent: Wednesday, January 09, 2013 5:37 PM
To: user@zookeeper.apache.org
Subject: RE: force snapshot

Thank you Dayal.
Where can I get more info on SnapshotFormatter?
Thanks,SC

> From: dayal.dilli@userevents.com
> To: user@zookeeper.apache.org
> Subject: RE: force snapshot
> Date: Wed, 9 Jan 2013 18:18:17 +0000
>
> Your understanding is correct. snapCount is a system property with default value is 100,000. You can also set it in the zookeeper configuration file (conf/zoo.cfg) by using the parameter "snapCount".
>
> I don't understand exactly what you mean by adhoc snapshot. From my understanding, if you want to take a snapshot early/more frequently reduce the value of snapCount. Also, you can use SnapshotFormatter to get the data in snapshot in plain text and analyze it.
>
> Dayal
> ________________________________________
> From: S C [asf11@outlook.com]
> Sent: Wednesday, January 09, 2013 1:00 PM
> To: user@zookeeper.apache.org
> Subject: RE: force snapshot
>
> Dayal,
> I believe you pointed the threshold. Thank you. Is there a way to take an adhoc snapshot for troubleshooting / analysis of any issues?
> Upon looking for snapCount, I came across "zookeeper.snapCount" a system property with default value of 100,000.  Is my understanding correct?
>
> Thanks,SC
>
> > From: dayal.dilli@userevents.com
> > To: user@zookeeper.apache.org
> > Subject: RE: force snapshot
> > Date: Tue, 8 Jan 2013 14:35:02 +0000
> >
> > Change the value of snapCount in conf/zoo.cfg
> >
> > The default is 10,000.
> > ________________________________________
> > From: challa asf [asf11@outlook.com]
> > Sent: Monday, January 07, 2013 5:20 PM
> > To: user@zookeeper.apache.org
> > Subject: force snapshot
> >
> > I am new to Zookeeper. Couple of questions.
> > What is the threshold before ZK takes a snapshot?Is there a way to force ZK to snapshot for troubleshooting or for any Operational reasons?
> > Thanks,Challa
> >
>


RE: force snapshot

Posted by S C <as...@outlook.com>.
Thank you Dayal.
Where can I get more info on SnapshotFormatter? 
Thanks,SC

> From: dayal.dilli@userevents.com
> To: user@zookeeper.apache.org
> Subject: RE: force snapshot
> Date: Wed, 9 Jan 2013 18:18:17 +0000
> 
> Your understanding is correct. snapCount is a system property with default value is 100,000. You can also set it in the zookeeper configuration file (conf/zoo.cfg) by using the parameter "snapCount".
> 
> I don't understand exactly what you mean by adhoc snapshot. From my understanding, if you want to take a snapshot early/more frequently reduce the value of snapCount. Also, you can use SnapshotFormatter to get the data in snapshot in plain text and analyze it.
> 
> Dayal  
> ________________________________________
> From: S C [asf11@outlook.com]
> Sent: Wednesday, January 09, 2013 1:00 PM
> To: user@zookeeper.apache.org
> Subject: RE: force snapshot
> 
> Dayal,
> I believe you pointed the threshold. Thank you. Is there a way to take an adhoc snapshot for troubleshooting / analysis of any issues?
> Upon looking for snapCount, I came across "zookeeper.snapCount" a system property with default value of 100,000.  Is my understanding correct?
> 
> Thanks,SC
> 
> > From: dayal.dilli@userevents.com
> > To: user@zookeeper.apache.org
> > Subject: RE: force snapshot
> > Date: Tue, 8 Jan 2013 14:35:02 +0000
> >
> > Change the value of snapCount in conf/zoo.cfg
> >
> > The default is 10,000.
> > ________________________________________
> > From: challa asf [asf11@outlook.com]
> > Sent: Monday, January 07, 2013 5:20 PM
> > To: user@zookeeper.apache.org
> > Subject: force snapshot
> >
> > I am new to Zookeeper. Couple of questions.
> > What is the threshold before ZK takes a snapshot?Is there a way to force ZK to snapshot for troubleshooting or for any Operational reasons?
> > Thanks,Challa
> >
> 
 		 	   		  

RE: force snapshot

Posted by Dayal Dilli <da...@userevents.com>.
Your understanding is correct. snapCount is a system property with default value is 100,000. You can also set it in the zookeeper configuration file (conf/zoo.cfg) by using the parameter "snapCount".

I don't understand exactly what you mean by adhoc snapshot. From my understanding, if you want to take a snapshot early/more frequently reduce the value of snapCount. Also, you can use SnapshotFormatter to get the data in snapshot in plain text and analyze it.

Dayal  
________________________________________
From: S C [asf11@outlook.com]
Sent: Wednesday, January 09, 2013 1:00 PM
To: user@zookeeper.apache.org
Subject: RE: force snapshot

Dayal,
I believe you pointed the threshold. Thank you. Is there a way to take an adhoc snapshot for troubleshooting / analysis of any issues?
Upon looking for snapCount, I came across "zookeeper.snapCount" a system property with default value of 100,000.  Is my understanding correct?

Thanks,SC

> From: dayal.dilli@userevents.com
> To: user@zookeeper.apache.org
> Subject: RE: force snapshot
> Date: Tue, 8 Jan 2013 14:35:02 +0000
>
> Change the value of snapCount in conf/zoo.cfg
>
> The default is 10,000.
> ________________________________________
> From: challa asf [asf11@outlook.com]
> Sent: Monday, January 07, 2013 5:20 PM
> To: user@zookeeper.apache.org
> Subject: force snapshot
>
> I am new to Zookeeper. Couple of questions.
> What is the threshold before ZK takes a snapshot?Is there a way to force ZK to snapshot for troubleshooting or for any Operational reasons?
> Thanks,Challa
>


RE: force snapshot

Posted by S C <as...@outlook.com>.
Dayal,
I believe you pointed the threshold. Thank you. Is there a way to take an adhoc snapshot for troubleshooting / analysis of any issues?
Upon looking for snapCount, I came across "zookeeper.snapCount" a system property with default value of 100,000.  Is my understanding correct?

Thanks,SC

> From: dayal.dilli@userevents.com
> To: user@zookeeper.apache.org
> Subject: RE: force snapshot
> Date: Tue, 8 Jan 2013 14:35:02 +0000
> 
> Change the value of snapCount in conf/zoo.cfg
> 
> The default is 10,000.
> ________________________________________
> From: challa asf [asf11@outlook.com]
> Sent: Monday, January 07, 2013 5:20 PM
> To: user@zookeeper.apache.org
> Subject: force snapshot
> 
> I am new to Zookeeper. Couple of questions.
> What is the threshold before ZK takes a snapshot?Is there a way to force ZK to snapshot for troubleshooting or for any Operational reasons?
> Thanks,Challa
> 
 		 	   		  

RE: force snapshot

Posted by Dayal Dilli <da...@userevents.com>.
Change the value of snapCount in conf/zoo.cfg

The default is 10,000.
________________________________________
From: challa asf [asf11@outlook.com]
Sent: Monday, January 07, 2013 5:20 PM
To: user@zookeeper.apache.org
Subject: force snapshot

I am new to Zookeeper. Couple of questions.
What is the threshold before ZK takes a snapshot?Is there a way to force ZK to snapshot for troubleshooting or for any Operational reasons?
Thanks,Challa