Re: Session expiration caused by time change

2010-08-20 Thread Martin Waite
Hi, In our testing of Red Hat Cluster, we could reproduce the NTP impact by jumping the clock backwards and forwards, just using the date command in a tight-ish loop: use strict; my $dir = 1; while (1) { jump_time( $dir ); $dir = $dir * -1; } sub jump_time { my ($dir) = @_; my

Re: Session expiration caused by time change

2010-08-19 Thread Martin Waite
unspecified starting point. Although re-reading that now, I might have applied wishful thinking to my interpretation. regards, Martin On 19 August 2010 16:13, Benjamin Reed br...@yahoo-inc.com wrote: do you have a pointer to those timers? thanx ben On 08/18/2010 11:58 PM, Martin Waite wrote

issues with ipv6 on debian squeeze

2010-08-16 Thread Martin Waite
Hi, I have spent a few hours getting zookeeper election to work on debian squeeze. The zookeeper log contained the following error when trying to run an election: 2010-08-16 11:14:51,316 - WARN [WorkerSender Thread:quorumcnxmana...@361] - Cannot open channel to 2 at election address

Re: issues with ipv6 on debian squeeze

2010-08-16 Thread Martin Waite
a few hours stuck on this myself last week. -Ivan On 16 Aug 2010, at 13:28, Martin Waite wrote: Hi, I have spent a few hours getting zookeeper election to work on debian squeeze. The zookeeper log contained the following error when trying to run an election: 2010-08-16 11:14:51,316

Re: unit test failure

2010-08-04 Thread Martin Waite
-check from src/c, or ant test-core-cppunit from the main dir. On Tue, Aug 3, 2010 at 7:51 PM, Martin Waite waite@gmail.com wrote: Hi Sergey, Thanks for the hints. 1) I cannot find any ZK server logs. I have no tmp directory inside build directory. This sounds bad. 2) I

Re: unit test failure

2010-08-03 Thread Martin Waite
(ZooKeeperServer) running on your machine? That might cause some issues with the tests. Thanks mahadev On 7/14/10 8:03 AM, Martin Waite waite@gmail.com wrote: Hi, I am attempting to build the C client on debian lenny. autoconf, configure, make and make install all appear to work

Re: unit test failure

2010-08-03 Thread Martin Waite
and then run tests against that ? Or are the underlying libraries being tested without using a zk server ? regards, Martin On 3 August 2010 13:02, Martin Waite waite@gmail.com wrote: Hi Mahadev, Sorry for the delay in replying: I have been away. I have rebuilt my debian lenny machine

Re: building client tools

2010-07-14 Thread Martin Waite
to update the README file in order to avoid this problem in the future. Thanks. On Tue, Jul 13, 2010 at 8:09 PM, Martin Waite waite@gmail.com wrote: Hi, I am trying to build the c client on debian lenny for zookeeper 3.3.1. autoreconf -if configure.ac:33: warning: macro

Re: building client tools

2010-07-14 Thread Martin Waite
that it can be done without cppunit being installed but there has been a open bug regarding this. So cppunit is required as of now. Thanks mahadev On 7/13/10 10:09 AM, Martin Waite waite@gmail.com wrote: Hi, I am trying to build the c client on debian lenny for zookeeper 3.3.1

unit test failure

2010-07-14 Thread Martin Waite
Hi, I am attempting to build the C client on debian lenny. autoconf, configure, make and make install all appear to work cleanly. I ran: autoreconf -if ./configure make make install make run-check However, the unit tests fail: $ make run-check make zktest-st zktest-mt make[1]: Entering

building client tools

2010-07-13 Thread Martin Waite
Hi, I am trying to build the c client on debian lenny for zookeeper 3.3.1. autoreconf -if configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library configure.ac:33: error: possibly undefined macro:

Re: Managing multi-site clusters with Zookeeper

2010-03-08 Thread Martin Waite
Hi Ted, If the links do not work for us for zk, then they are unlikely to work with any other solution - such as trying to stretch Pacemaker or Red Hat Cluster with their multicast protocols across the links. If the links are not good enough, we might have to spend some more money to fix this.

Re: Managing multi-site clusters with Zookeeper

2010-03-08 Thread Martin Waite
these writes small is also critical. Patrick Martin Waite wrote: Hi Ted, If the links do not work for us for zk, then they are unlikely to work with any other solution - such as trying to stretch Pacemaker or Red Hat Cluster with their multicast protocols across the links. If the links

Re: Managing multi-site clusters with Zookeeper

2010-03-07 Thread Martin Waite
, 2010 at 1:50 AM, Martin Waite waite@googlemail.com wrote: Is this a viable approach, or am I taking Zookeeper out of its application domain and just asking for trouble ?

Managing multi-site clusters with Zookeeper

2010-03-06 Thread Martin Waite
Hi, We're attempting to build a multi-site cluster: 1. web-tier and application tier is active in all sites 2. only one database is active at a time- normally in the designated primary site We want to use 3 sites to maintain a quorum. So, if the Primary site loses sight of both of the

Re: Managing multi-site clusters with Zookeeper

2010-03-06 Thread Martin Waite
) considerations and considerable hardware and time investments. Good luck! On Sat, Mar 6, 2010 at 1:50 AM, Martin Waite waite@googlemail.com wrote: Is this a viable approach, or am I taking Zookeeper out of its application domain and just asking for trouble ? -- Ted Dunning, CTO

network requirements

2010-03-06 Thread Martin Waite
Hi, Is there any documentation describing the network requirements for running Zookeeper ? Our network admin has baffled me with all the reasons that multicast might not work in our environment, and then I realised that I do not know what network support Zookeeper requires. regards, Martin

Re: network requirements

2010-03-06 Thread Martin Waite
, Martin Waite waite@googlemail.com wrote: Our network admin has baffled me with all the reasons that multicast might not work in our environment, and then I realised that I do not know what network support Zookeeper requires.

Re: is there a good pattern for leases ?

2010-02-25 Thread Martin Waite
question would be how many elements you expect to be in that card lock table. If it is less than 100K, ZK should work pretty well. If you need more than that, you might consider putting locks for many cards in a single file. On Wed, Feb 24, 2010 at 11:10 AM, Martin Waite waite

Re: is there a good pattern for leases ?

2010-02-25 Thread Martin Waite
be excessive ? regards, Martin On 25 February 2010 08:07, Martin Waite waite@googlemail.com wrote: Hi Usually, this would hold about 2k items, pushing to 10k peaks. My current understanding is that I cannot lock a node while I consider its contents, and so only the garbage remover would

Re: is there a good pattern for leases ?

2010-02-25 Thread Martin Waite
email. On Thu, Feb 25, 2010 at 2:50 AM, Martin Waite waite@googlemail.com wrote: But to do this, would I need to call sync between steps 2 and 3 to ensure the node FN was up-to-date - assuming I do not know if I am connected to a primary ZK instance ? Would 10K sync calls within a 2

Re: is there a good pattern for leases ?

2010-02-24 Thread Martin Waite
an inherent model for leases in the zookeeper library itself. To implement leases you will have to implement them at your application side with timeouts triggers (lease triggers) leading to session close at the client. Thanks mahadev On 2/24/10 3:40 AM, Martin Waite waite@googlemail.com

Re: how to lock one-of-many ?

2010-02-24 Thread Martin Waite
Hi, I take the point that the watch is useful for stopping clients unnecessarily pestering the zk nodes. I think that this is something I will have to experiment with and see how it goes. I only need to place about 10k locks per minute, so I am hoping that whatever approach I take is well

Re: how to lock one-of-many ?

2010-02-24 Thread Martin Waite
requirements will stretch Zookeeper even if I take a heavy handed approach. regards, Martin On 24 February 2010 16:53, Patrick Hunt ph...@apache.org wrote: Martin Waite wrote: The watch mechanism is a new feature for me. This gives me a delayed notification that something changed in the lock

how to lock one-of-many ?

2010-02-23 Thread Martin Waite
Hi, I have a set of resources each of which has a unique identifier. Each resource element must be locked before it is used, and unlocked afterwards. The logic of the application is something like: lock any one element; if (none locked) then exit with error; else get resource-id from

Re: how to lock one-of-many ?

2010-02-23 Thread Martin Waite
{i} if its been able to create /locks/resource_{i}/locks. Would that work? Thanks mahadev On 2/23/10 4:05 AM, Martin Waite waite@googlemail.com wrote: Hi, I have a set of resources each of which has a unique identifier. Each resource element must be locked before it is used