Storage used to store hdfs metadata

21 views
Skip to first unread message

158010...@gmail.com

unread,
Mar 28, 2019, 10:45:44 PM3/28/19
to Hops
Why use NDB-Cluster to store the metadata ?
Is other storage considered or better than NDB such as KV store ?

Jim Dowling

unread,
Mar 29, 2019, 5:09:49 AM3/29/19
to Hops
(same answer as on gitter)
The concurrency model in hopsfs requires that the DB backend supports high performance cross-partition transactions (by partition, i mean shards). No serialization of cross-partition transactions - it would kill performance. It also requires row-level locks, because we implement our concurrency model using row-level locks. The beauty of open-source is that if TiKV is good enough, somebody will implement the driver in it for HopsFS. 
(My initial analysis of TiKV (from reading front page) is that it has most things - but its using paxos for each shard. Are cross-shard transactions supported - it says it has "Consistent distributed transactions", which could be that? Are they serialized or high performance though? Is there row-level locking? What is the transaction isolation level supported for cross-partition transactions?
This is not promising for TiKV:
Reply all
Reply to author
Forward
0 new messages