Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'ko'

This page describes how ClustrixDBXpand's architecture is designed for Consistency, Fault Tolerance, and Availability.

...

Many distributed databases have embraced eventual consistency over strong consistency to achieve scalability. However, eventual consistency comes with a cost of increased complexity for the application developer, who must develop for anomalies that may arise with inconsistent data.

Excerpt

ClustrixDB provides Xpand provides a consistency model that can scale using a combination of intelligent data distributionmulti-version concurrency control (MVCC), and Paxos. Our approach enables ClustrixDB to Xpand to scale writes, scale reads in the presence of write workloads, and provide strong ACID semantics.

For an in-depth explanation of how ClustrixDB scales Xpand scales reads and writes, see Concurrency Control.

ClustrixDB takes Xpand takes the following approach to consistency:

  • Synchronous replication within the cluster. All nodes participating in a write must provide an acknowledgment before a write is complete. Writes are performed in parallel.
  • The Paxos protocol is used for distributed transaction resolution.
  • ClustrixDB Xpand supports for Read Committed and Repeatable Read (Snapshot) isolation levels with limited support for Serializable.
  • Multi-Version Concurrency Control (MVCC allows) for lockless reads and ensures that writes will not block reads.

Fault Tolerance

ClustrixDB provides Xpand provides fault tolerance by maintaining multiple copies of data across the cluster. By default, ClustrixDB Xpand can accommodate a single node failure and automatically recover with no loss of data. The degree of fault tolerance (nResiliency) is configurable and ClustrixDB Xpand can be set up to handle multiple node failures and zone failure. 

For more information, including how to adjust fault tolerance in ClustrixDBXpand, see Understanding Fault Tolerance,  MAX_FAILURES, and Zones.

Availability

In order to understand ClustrixDBXpand's availability modes and failure cases, it is necessary to understand our group membership protocol.

Group Membership and Quorum

ClustrixDB uses Xpand uses a distributed group membership protocol. The protocol maintains two fundamental sets:

...

For example, if a six-node cluster experiences a network partition resulting in two sets of three nodes, ClustrixDB will Xpand will be unable to form a cluster.

...

However, if more than half the nodes are able to communicate, ClustrixDB will Xpand will form a cluster.

For performance reasons, MAX_FAILURES defaults to 1 to provide for the loss of one node or one zone.

Partial Availability

In the above example, ClustrixDB formed Xpand formed a cluster because a quorum of nodes remained. However, such a cluster could offer only partial availability because the cluster may not have access to the complete dataset.

In the following example, ClustrixDB was Xpand was configured to maintain two replicas. However, both nodes holding replicas for A are unable to participate in the cluster (due to some failure). When a transaction attempts to access data on slice A, the database will generate an error that will surface to the application.

...

Availability Requirements

ClustrixDB can Xpand can provide availability even in the face of failure. In order to provide full availability, ClustrixDB requires Xpand requires that:

  • A majority of nodes are able to form a cluster (i.e. quorum requirement).
  • The available nodes hold at least one replica for each set of data.

 

 

...