Peer System:how Chord tackles failures

Source: Internet
Author: User

What if you have peer failures?

After the example above, if N32 fail, but N80 finger table has not been updated, so that the query to the N16, it can not find N32, only N80, so that query will be lost.

The workaround is to save R successor instead of just one successor,r is a value that the system can configure.

So how big is R? So if there are a lot of errors, query can still arrive correctly.

R=2log (N). W.h.p. = with high probability

What to do if file fail is saved in node

If there is a missing file inside the N45, then if there is a search for this file, then the file cannot be found because only one of it is missing.

The solution to this problem is to back up a file, in front of which a node and the next node are back up the same file, so that if a query reaches a node in front of it or a subsequent node, it will return the results of the query.

Multiple backup of a file not only solves the problem of fault tolerance, but also solves the problem of load balancing, such as you have a very popular file (probably the most popular songs recently), so many copies of multiple backups, it will not let a node load too high, balance the load of the point.

Need to deal with dynamic changes

Peers fail or join is very common and has very high churn, so you need to update successors and finger table, copy keys.

Peer System:how Chord tackles failures

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.