How it works...
By running the testing script consistency-test.rb, we can write to and read from a Redis Cluster periodically. The number of writes, reads, and as well as errors is logged while the script is running. Any data inconsistency can also be captured.
The first testing we performed is to bring a master instance down. We used the DEBUG SEGFAULT command to crash the I_A instance with the node ID 58285fa03c19f6e6f633fb5c58c6a314bf25503f. This command resulted in a segmentation fault of a Redis instance. As a result, the instance exited, as shown in the log of I_A. From the output of the testing program, it can be seen clearly that some write and read requests failed for a while. Later, the Cluster resumed handling the requests. In ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access