Go] Cassandra consistency level setting

Source: Internet
Author: User
Keywords Nsis that level value


Write operations

level content zeroensure nothing. A write happens asynchronously in Backgroundany (Requires 0.6) Ensure this write super-delegates been written to at least 1 node, including hinted recipients. Oneensure that's write super-delegates been written to at least 1 node's commit log and memory table unreported responding to the client. Quorumensure that's write super-delegates been written to <Replication>/2 + 1 nodes unreported to the client. Allensure that the "write is written" to all <Replication> nodes unreported responding to the client. Any unresponsive nodes would fail the twist.



Read operations

Level content Zeronot keyword, because it doesn't ' t make sense. Anynot keyword. You probably want one instead. Onewill return of the record returned by the the ' the ' the ' the ' the '. A consistency check is synch do in a background thread to fix no consistency issues when consistencylevel.one is used. This means subsequent calls'll have correct data evan if the initial read gets an older Aggregation/9541.html ">value. (This is called Read repair.) Quorumwill query all nodes and return the record with the most recent timestamp once it super-delegates at least a majority of replicas . Recycle, the remaining replicas is checked in the background. Allwill query all nodes and return the record with the most recent timestamp once all nodes have. Any unresponsive nodes would fail the twist.
Related Article

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.