CAP Theorem for Seaweed-FS

66 views
Skip to first unread message

mohamm...@gmail.com

unread,
Oct 28, 2014, 11:47:26 AM10/28/14
to weed-fil...@googlegroups.com
Hi,

CAP Theorem says each system maintain at last two of three from Availability, Consistency and Partition tolerance.
Anybody knows Weed-FS stands in which step? It preserves CA, CP or AP?

Thanks,
Mohammad

Chris Lu

unread,
Oct 28, 2014, 12:07:58 PM10/28/14
to weed-fil...@googlegroups.com

For writes, CP. For reads, AP.

--
You received this message because you are subscribed to the Google Groups "Seaweed File System" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weed-file-syst...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mohamm...@gmail.com

unread,
Oct 29, 2014, 7:29:43 AM10/29/14
to weed-fil...@googlegroups.com
Thanks for you answer,
Can you refer these concepts within the code you have implemented or your documentation or give me a link which CP and AP are mentioned?

Chris Lu

unread,
Oct 29, 2014, 1:07:59 PM10/29/14
to weed-fil...@googlegroups.com
During writes with replication, multiple copies of the data are sent to multiple volume servers, and the operation will only return successfully if all copies are written successfully.

The reads are actually implemented by the read client. Most commonly, after a volumeId lookup, a list of all the data locations are returned. Usually you just use one of the data locations to read or compose a URL. There are no data consensus checking.

Technically you can implement more checking during reads. But it is not necessary, since for consistency R + W > N (read replica count + write replica count > replication factor), the read count is always 1, the write count is always N, and 1+N is always greater than N.

Chris

Reply all
Reply to author
Forward
0 new messages