On Sat, Jun 29, 2019 at 6:19 AM Nimbus Lin <jiaxin...@live.com> wrote:
> > On the 2nd question, would you like to tell me how to change a > write's and a read's consistency level separately in cqlsh? > Not that I know of special syntax for that, but you may add an explicit "CONSISTENCY <level>" command before every command in your script, if you like. Otherwise, how the document's R+W>Replicator to realize to guarantee a > strong consistency write and read? > The most common setup, AFAIK, is to use a replication factor of 3 and set consistency levels for both Reads and Writes to one of the Quorum levels: e.g. both LOCAL_QUORUM, or LOCAL_QUORUM for the Reads and EACH_QUORUM for the Writes, etc. Since the quorum of 3 nodes is 2, you arrive at 2 + 2 > 3, which is what you're asked for. -- Alex