docs/cql/consistency.rst
A :term:Consistency Level (CL) is a dynamic value which dictates the number of replicas (in a cluster) that must acknowledge a read or write operation in order for the coordinator node to determine the operation was successful.
CLs can be used with any transaction including LWTs.
This value is set by the client on a per operation basis. For the CQL Shell, the consistency level defaults to ONE for read and write operations. If there is a conflict in settings, the CQLSH setting supersedes a consistency level global setting.
.. code-block:: cql
CONSISTENCY <consistency level>
Set CONSISTENCY to force the majority of the nodes to respond:
.. code-block:: cql
CONSISTENCY QUORUM
Set level to serial for LWT read requests:
.. code-block:: cql
CONSISTENCY SERIAL
Consistency level set to SERIAL.
.. _consistency-levels-reference:
The following table describes the different levels you can set.
.. list-table:: :widths: 25 25 25 25 :header-rows: 1
hinted handoff. Provides low latency, guarantees writes never fail.Snitch. Consistency requirements are not too strict.To display your current CL in your CQLsh session, use the CONSISTENCY Command with no options.
.. code-block:: cql
CONSISTENCY
returns
.. code-block:: cql
Current consistency level is ALL.
Consistency Level Calculator <consistency-calculator>Fault Tolerance </architecture/architecture-fault-tolerance/>Consistency Level Compatibility <consistency-level-read-and-write>Consistency Quiz </kb/quiz-administrators/>Consistency Levels at ScyllaDB University <https://university.scylladb.com/courses/scylla-essentials-overview/lessons/high-availability/topic/consistency-level/>_