Better HN
topnewbestaskshowjobs
Log inSign up

rystsov

177 karma · joined Sep 21, 2010 (16y ago) · 79 submissions

Submissions

comment 9y ago · link · parent

Dura means fool (feminine gender) in Russian :)

comment 9y ago · link · parent

It uses single decree Paxos to implement rewritable distributed register. The implementation supports dynamic reconfiguration of the cluster and the distinguished proposer optimization.

63.

A Paxos-based Redis replication layer with dynamic reconfiguration in 500 lines(github.com ↗)

4 points · by rystsov · 9y ago · 2 comments

comment 9y ago · link · parent

Many distributed databases supporting linearizability fail to provide consistent backups.

MongoDB's docs: "To capture a point-in-time backup from a sharded cluster you must stop all writes to the cluster"

Cassandra's docs: "To take a global snapshot, run the nodetool snapshot command using a parallel ssh utility ... This provides an eventually consistent backup. Although no one node is guaranteed to be consistent with its replica nodes at the time a snapshot is taken"

Riak's docs: "backups can become slightly inconsistent from node to node"

CockroachDB's docs: "The table data is dumped as it appears at the time that the command is started ... there is no guarantee that NOW() is monotonic in transaction order"

Does TiDB support consistent backups? Are there any docs covering how it is implemented?

65.

Visualization of a Paxos-based distributed state machine(rystsov.info ↗)

11 points · by rystsov · 10y ago · discuss

comment 10y ago · link · parent

Raft is a replication protocol which is responsible for the consistency of multiple copies of the same data but it isn't applicable when the data is sharded.

67.

Visualization of serializable cross shard client-side transactions(rystsov.info ↗)

3 points · by rystsov · 10y ago · discuss

68.

Best of both worlds: Raft's joint consensus with Single Decree Paxos(rystsov.info ↗)

2 points · by rystsov · 10y ago · discuss

comment 10y ago · link · parent

By the way, I always was wondering why the schemas with consistent hashing maintained via the ring are more popular approach than treating key space as a line (-∞,+∞), maintaining the explicit map from segments and rays of keys to the replica groups and split the group/segment when replica group becomes too hot or heavy.

IMHO the perfect hashing solves the problem of distributing the data but the load may follow completely different patterns. See theInstagram's Justin Bieber problem.

comment 10y ago · link · parent

On the site it is written that GoshawkDB doesn't support membership change. Since you system is based on single decree paxos then you can take Raft's joint consensus and apply to plain paxos. Probably it's the simplest and easiest to change membership in paxos cluster.

comment 10y ago · link · parent

> The only requirement is that if F is the number of unreachable nodes you wish to be able to tolerate, then your minimum cluster size is 2*F + 1. > Currently no other data store that I'm aware of offers this flexibility.

It isn't true. There're plenty of storages with same strong consistency model (tolerates F failures of 2F+1 nodes), among them are Cassandra with lightweight transactions, Riak with consistent buckets, CockroachDB and ZooKeeper.

> However, GoshawkDB has a radically different architecture to most databases and its object-store design means that contention on objects can be dramatically reduced, allowing the performance impact of strong-serializability to be minimised.

Can you please describe the algorithm that you use for implementing distributed transactions?

> just three network delays occur (and one fsync) before the outcome of the transaction is known to that node

3 round trips for per transaction is the result which is very similar to the Yabandeh-style transaction, see the Cockroach's blog for details - http://www.cockroachlabs.com/blog/how-cockroachdb-distribute...

Do you use the same approach?

comment 11y ago · link · parent

Thank you for response, maybe I'll return and update it someday.

Yet the idea is very simple. Instead of putting say dictionary behind Paxos/Raft and coordinate update to this state, it makes sense to have dictionary of different Paxos/Raft instances and to use transaction to coordinate multi-updates.

comment 11y ago · link · parent

If I understand you correctly, you suggest to have shared dictionary and use Paxos/Raft to order its updates. This approach has limitation - see "There Is More Consensus in Egalitarian Parliaments" paper for details.

I suggest to have dictionary of Paxos/Raft which orders updates only to its element and to use transactions to do multi-object updates.

74.

EPaxos, transactions and the next 700 Paxos systems(rystsov.info ↗)

15 points · by rystsov · 11y ago · 4 comments

comment 11y ago · link · parent

The idea is pretty simple. For example, long time ago when Zookeeper didn't support multi key transaction I had to implement them and came to the same algorithm - http://rystsov.info/2012/09/01/cas.html.

It would be great to know its name to simplify communication with the colleagues, do you know it?

comment 11y ago · link · parent

Good job! I have a similar project - http://uniquation.com - which also is based on a thesis work.

I failed to attract users, lost interest and abandoned it several years ago, nevertheless it has the best (among math search engines) support of equivalence between formulas. For example, the following formulas are equal to uniquation: "x_{n+1} = r x_n (1 - x_n)" and "k y_i (1 - y_i) = y_{i+1}".

I'm going to open source it and maybe it can be merged into your project. What's about your project if it is proprietary or open source?

comment 11y ago · link · parent

You should try my pet project based on my thesis - http://uniquation.com It works as you expect. The sad part I aborted it several years ago, the good part that I'm going to open source it this year.

78.

Warp9 - Yet Another JS FRP library (without common pitfalls this time)(rystsov.github.io ↗)

1 points · by rystsov · 13y ago · discuss

79.

Uniquation - a new math search engine (the first was latexsearch.com)(uniquation.com ↗)

4 points · by rystsov · 16y ago · 1 comment

123