prashant-r / Scalaris

DHT Chord Transaction
Apache License 2.0
0 stars 0 forks source link

scalaris timeout #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. I start the server with boot.sh in one shell,and start nodes with 
cs_local.sh,cs_local2.sh,etc. in the other shells.
2. And add,search key value on the page: http://localhost:8000/index.yaws, 
everything seems works fine.
3. But when i exited from one of these erl shell, and search the key i 
have been added above, it's show me fail,the reason is timeout, also add 
the same key is timeout, is that wright?  what's the reason cause scalaris 
timeout? and what should i do ?

I'm the newer to use scalaris,hope for your reply, thx.

Original issue reported on code.google.com by rain_...@tom.com on 25 May 2009 at 1:45

GoogleCodeExporter commented 8 years ago
Probably when stopping one Erlang process, you killed more than the majority of 
the 
replicas. See also

http://code.google.com/p/scalaris/wiki/HowToReplicaPlacement

Original comment by schin...@gmail.com on 26 May 2009 at 11:35

GoogleCodeExporter commented 8 years ago
scalaris is currently using a replication degree of 4 and all operations have to
access at least 3 replicas to succeed. It could be the case, that two replicas
disappeared when you killed a node. In the web interface on the "Ring" and 
"Indexed
Ring" pages, you can see the number of items per node in the "load" column.

If your are using 4 scalaris nodes, you can use replica placement to increase
availability, see http://code.google.com/p/scalaris/wiki/HowToReplicaPlacement.

Original comment by schu...@gmail.com on 26 May 2009 at 11:56

GoogleCodeExporter commented 8 years ago
thx for the reply.
that's means have 2 way to increase availability:
1. start more nodes to keep the replicas availabe(avoid replicas in the same 
node)?
2. use the random_with_bit_mask.

am i right?

Original comment by rain_...@tom.com on 27 May 2009 at 5:15

GoogleCodeExporter commented 8 years ago
Both together will do the trick. Start at least four nodes for a replication 
degree 
of four and ensure by using the bit mask, that every node gets a quarter of the 
ring.

Right.

Original comment by schin...@gmail.com on 27 May 2009 at 6:49

GoogleCodeExporter commented 8 years ago
ok, i will try it.Thanks schintke and schuett.

Original comment by rain_...@tom.com on 27 May 2009 at 10:15