Re: Is there any way to detect when a node is down so I can failover more effectively?

2010-06-04 Thread Patricio Echagüe
Thanks Johathan

On Wed, Jun 2, 2010 at 11:17 PM, Jonathan Ellis jbel...@gmail.com wrote:

 you're overcomplicating things.

 just connect to *a* node, and if it happens to be down, try a different
 one.

 nodes being down should be a rare event, not a normal condition.  no
 need to optimize for it so much.

 also see http://wiki.apache.org/cassandra/FAQ#node_clients_connect_to

 2010/6/1 Patricio Echagüe patric...@gmail.com:
  Hi all, I'm using Hector framework to interact with Cassandra and at
 trying
  to handle failover more effectively I found it a bit complicated to fetch
  all cassandra nodes that are up and running.
 
  My goal is to keep an up-to-date list of active/up Cassandra servers to
  provide HEctor every time I need to execute against the db.
 
  I've seen this Thrift  method: get_string_property(token map) but it
  returns the nodes in the ring no matter is the node is down.
 
 
 
  Any advice?
 
  --
  Patricio.-
 



 --
 Jonathan Ellis
 Project Chair, Apache Cassandra
 co-founder of Riptano, the source for professional Cassandra support
 http://riptano.com




-- 
Patricio.-


Re: Is there any way to detect when a node is down so I can failover more effectively?

2010-06-03 Thread Jonathan Ellis
you're overcomplicating things.

just connect to *a* node, and if it happens to be down, try a different one.

nodes being down should be a rare event, not a normal condition.  no
need to optimize for it so much.

also see http://wiki.apache.org/cassandra/FAQ#node_clients_connect_to

2010/6/1 Patricio Echagüe patric...@gmail.com:
 Hi all, I'm using Hector framework to interact with Cassandra and at trying
 to handle failover more effectively I found it a bit complicated to fetch
 all cassandra nodes that are up and running.

 My goal is to keep an up-to-date list of active/up Cassandra servers to
 provide HEctor every time I need to execute against the db.

 I've seen this Thrift  method: get_string_property(token map) but it
 returns the nodes in the ring no matter is the node is down.



 Any advice?

 --
 Patricio.-




-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com


Is there any way to detect when a node is down so I can failover more effectively?

2010-06-01 Thread Patricio Echagüe
Hi all, I'm using Hector framework to interact with Cassandra and at trying
to handle failover more effectively I found it a bit complicated to fetch
all cassandra nodes that are up and running.

My goal is to keep an up-to-date list of active/up Cassandra servers to
provide HEctor every time I need to execute against the db.

I've seen this Thrift  method: get_string_property(token map) but it
returns the nodes in the ring no matter is the node is down.



Any advice?

-- 
Patricio.-