biokoda / actordb

ActorDB distributed SQL database
Mozilla Public License 2.0
1.9k stars 71 forks source link

questions when cluster machine goes down #7

Closed Sheldon-Hsu closed 9 years ago

Sheldon-Hsu commented 9 years ago

Hi, I had some problems with using actordb. When one of my cluster machine goes down,and i remove it in my nodes.yaml,and updatenodes ,but it still not work,I get the error message "unknown_query, invalidnode". what would be the cause. I use actordb-0.9-1.el6.x86_64.rpm on centos 6.5.Thanks for your help.

SergejJurecko commented 9 years ago

How many nodes did you have originally?

Sheldon-Hsu commented 9 years ago

@SergejJurecko : 6 nodes .

SergejJurecko commented 9 years ago

We have not tested removing nodes at all. It is not supported at the moment.

SergejJurecko commented 9 years ago

I will look into it for next release. The only valid down scaling scenario is going from 5 to 3 nodes or maybe from 3 to 1. ActorDB should always have an odd number of servers in a cluster: 1,3,5. If more servers are needed, use multiple clusters.

sargun commented 8 years ago

@SergejJurecko What happens when a node fails?

SergejJurecko commented 8 years ago

If a majority of nodes can communicate it will go on running end executing queries.