Re: How to reestablish a session

2010-11-19 Thread Gustavo Niemeyer
ed by the previous instance of the program because it crashed. it's > pretty tricky to use. Understood. I agree this is a pretty unique case, and a very hard one to get right by itself (how to get the app in the proper state to receive watches after the whole application has crashed?). --

Re: Session events

2010-11-18 Thread Gustavo Niemeyer
ments on the overall context still very welcome. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

Re: How to reestablish a session

2010-11-18 Thread Gustavo Niemeyer
zhandle and try to reconnect in case it returns true. Maybe I misinterpreted it, and it actually means the *session* is dead, rather than just the connection? -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

Re: How to reestablish a session

2010-11-18 Thread Gustavo Niemeyer
to track down in practice. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

Re: How to reestablish a session

2010-11-18 Thread Gustavo Niemeyer
ou agreed with my new reasoning upfront. > in your scenario can you explain step 4)? what are you closing? I'm closing the old ZooKeeper handler (zh), after a new one was established with the same client id. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

Re: Session events

2010-11-18 Thread Gustavo Niemeyer
of standard ZK. For instance: public boolean exists(String path, boolean watch) throws KeeperException, InterruptedException { return _zk.exists(path, watch) != null; } So I'm curious about why, in the context of the questioning made, you feel like it's significant. --

Session events

2010-11-18 Thread Gustavo Niemeyer
xisting practices will be welcome. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

How to reestablish a session

2010-11-18 Thread Gustavo Niemeyer
onnection A should be disposed, but how to do this without risking killing the healthy connection on B (imagine that the network comes back between (3) and (4)). Anyone has thoughts on that? -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

Re: Parent nodes & multi-step transactions

2010-08-24 Thread Gustavo Niemeyer
nothing if compared to the additional logic which these realistic use cases require to deal with intermediate states. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

Re: Parent nodes & multi-step transactions

2010-08-24 Thread Gustavo Niemeyer
d in knowing about them, but will need slightly more precise information. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

Re: Parent nodes & multi-step transactions

2010-08-24 Thread Gustavo Niemeyer
emerality to maintain a correct view for us. Interesting indeed. (...) > This doesn't eliminate all desire for transactions, but it gets rid of LOTs > of them. Thanks for these ideas. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

Re: Parent nodes & multi-step transactions

2010-08-23 Thread Gustavo Niemeyer
g daemon to heal a half-created state, and also filter user-oriented feedback to avoid showing nodes which may be dead. All of that would be avoided if there was a way to have multi-step atomic actions. I'm almost pondering about a journal-like system on top of the basic API, to avoid having to

Parent nodes & multi-step transactions

2010-08-23 Thread Gustavo Niemeyer
al with timeouts and whatnot" on every client? I'm about to start writing another layer on top of Zookeeper's API, so it'd be great to have some additional insight into this issue. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

Re: Securing ZooKeeper connections

2010-05-27 Thread Gustavo Niemeyer
t's coming along. Oh, that's great news Patrick. Thanks for pushing this forward! Do you think the client side might see some attention soon as well? Or, in other words, do you plan to shift over to the client side once you're done with the server? -- Gustavo Niemeyer http://niemey

Re: Dynamic adding/removing ZK servers on client

2010-05-03 Thread Gustavo Niemeyer
27;s interested in writing it. :-) I'm also quite interested in the outcome of this, since we'll need the feature pretty soon. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/identi.ca http://niemeyer.net/twitter

Re: ZooKeeper packages for Ubuntu

2010-02-16 Thread Gustavo Niemeyer
than an intentional omission. I apologize for the confusion. -- Gustavo Niemeyer http://niemeyer.net

ZooKeeper packages for Ubuntu

2010-02-16 Thread Gustavo Niemeyer
et me know if these work or do not work for you. -- Gustavo Niemeyer http://niemeyer.net

Re: Dependency on JBoss JMX

2010-01-28 Thread Gustavo Niemeyer
ut this and hopefully we'll have it packaged and available soon. -- Gustavo Niemeyer http://niemeyer.net

Re: Dependency on JBoss JMX

2010-01-28 Thread Gustavo Niemeyer
's doing the favor of packaging it for us. -- Gustavo Niemeyer http://niemeyer.net

Dependency on JBoss JMX

2010-01-28 Thread Gustavo Niemeyer
Hello there, Is the dependency on JBoss a hard one, or is there a way to not use it? Perhaps an alternative package providing the same interface? I'm trying to get it included in Ubuntu and being asked about this. Thanks in advance, -- Gustavo Niemeyer http://niemeyer.net

Re: Authentication, encryption, and dynamic membership

2009-11-10 Thread Gustavo Niemeyer
one of the pieces in some kind of platform. Thanks for these details. -- Gustavo Niemeyer http://niemeyer.net

Authentication, encryption, and dynamic membership

2009-11-10 Thread Gustavo Niemeyer
ks in advance, -- Gustavo Niemeyer http://niemeyer.net

Re: zookeeper on ec2

2009-07-06 Thread Gustavo Niemeyer
t to start up again in an empty state. > The observed failure modes for ZK in EC2 were completely dominated by our > (my) own failings (such as letting too much data accumulate). Details always take a few iterations to get really right. Thanks for this data Ted. -- Gustavo Niemeyer http://niemeyer.net

Re: zookeeper on ec2

2009-07-06 Thread Gustavo Niemeyer
you have any kind of performance data about how much load ZK can take under this environment? Have you tried to put the log and snapshot files under EBS? -- Gustavo Niemeyer http://niemeyer.net

Re: Dynamic servers addition and persistent storage.

2009-07-01 Thread Gustavo Niemeyer
use in the wild, the least manual interaction and procedural maintenance the best. Having ZooKeeper clients learning about the server list dynamically will help a lot in this scenario too. -- Gustavo Niemeyer http://niemeyer.net

Re: Dynamic servers addition and persistent storage.

2009-07-01 Thread Gustavo Niemeyer
might have an application for this pretty soon. -- Gustavo Niemeyer http://niemeyer.net

Re: General Question about Zookeeper

2009-06-25 Thread Gustavo Niemeyer
n the same machine), thus might require additional tighting up, but if you don't trust the server itself, that may be tricky. Please note that ZooKeeper isn't meant to be used just as a distributed filesystem for storage, but that's probably not your intention anyway. -- Gustavo Niemeyer http://niemeyer.net

Re: Confused about KeeperState.Disconnected and KeeperState.Expired

2009-06-24 Thread Gustavo Niemeyer
shutting the node down won't help the rest of the system recovering. -- Gustavo Niemeyer http://niemeyer.net

Re: Confused about KeeperState.Disconnected and KeeperState.Expired

2009-06-24 Thread Gustavo Niemeyer
d so > this is a major problem. Also, if the HMaster node gets the event that an Out of curiosity, what do you intend to do when you get the exception? I mean, if you didn't get the expiration exception it means that the reconnection isn't working in any case, so how do you pl

Re: Authentification for Zookeeper Server

2009-06-16 Thread Gustavo Niemeyer
tional involvement to get the APIs right. -- Gustavo Niemeyer http://niemeyer.net

Re: Authentification for Zookeeper Server

2009-06-16 Thread Gustavo Niemeyer
ell. I'd still prefer to have ZooKeeper itself protecting against unauthorized access to its service so that the deployment would be simpler, but the stunnel solution should give me a good path without having to invest in patching ZooKeeper for a while. Thanks again for the sugg

Re: Authentification for Zookeeper Server

2009-06-16 Thread Gustavo Niemeyer
But this is definitely a viable alternative otherwise. It also brings encryption as a plus. Thanks for these ideas, -- Gustavo Niemeyer http://niemeyer.net

Re: Authentification for Zookeeper Server

2009-06-16 Thread Gustavo Niemeyer
vent it from touching any node at all using ACLs? -- Gustavo Niemeyer http://niemeyer.net