[Paper Review] Raft Consensus Algorithm: an Effective Substitute for Paxos in High Throughput P2P-based Systems
This paper proposes replacing Paxos with the Raft consensus algorithm in Apache Cassandra to resolve worker collision issues in high-throughput peer-to-peer (P2P) systems. By leveraging Raft’s simpler leader election and log replication, the study demonstrates significantly improved load balancing, reduced latency, and higher request throughput compared to Paxos, especially under high system loads.
One of the significant problem in peer-to-peer databases is collision problem. These databases do not rely on a central leader that is a reason to increase scalability and fault tolerance. Utilizing these systems in high throughput computing cause more flexibility in computing system and meanwhile solve the problems in most of the computing systems which are depend on a central nodes. There are limited researches in this scope and they seem are not suitable for using in a large scale. In this paper, we used Cassandra which is a distributed database based on peer-to-peer network as a high throughput computing system. Cassandra uses Paxos to elect central leader by default that causes collision problem. Among existent consensus algorithms Raft separates the key elements of consensus, such as leader election, so enforces a stronger degree of coherency to reduce the number of states that must be considered, such as collision.
Motivation & Objective
- Address the worker collision problem in Cassandra’s distributed queue system caused by concurrent job processing due to lack of centralized coordination.
- Improve scalability and fault tolerance in P2P-based distributed databases by replacing complex consensus protocols like Paxos with a more understandable alternative.
- Evaluate the performance of Raft compared to Paxos in terms of latency, load balancing, and request throughput under high system loads.
- Demonstrate that Raft provides better system stability and efficiency in large-scale, high-throughput P2P environments.
Proposed method
- Deploy Raft consensus algorithm as an alternative to Paxos in Apache Cassandra’s leader election and log replication mechanisms.
- Use the Opscenter monitoring tool and the Cassandra stress tool to generate and measure high-load workloads across the cluster.
- Monitor system metrics including read/write request latency, OS load, network I/O (sent/received data), and request rates over time.
- Compare Raft and Paxos across key performance indicators: latency, load distribution, and request processing consistency.
- Analyze system behavior under increasing load to assess scalability and fault tolerance characteristics.
- Evaluate the impact of system load on request throughput and network activity, focusing on patterns of stability and deviation.
Experimental results
Research questions
- RQ1How does Raft compare to Paxos in terms of read and write request latency under increasing system load?
- RQ2What is the effect of system load on OS and network load distribution in Raft versus Paxos?
- RQ3Does Raft achieve better load balancing and request processing consistency than Paxos in a high-throughput P2P database system?
- RQ4Can Raft reduce worker collision and improve system efficiency in Cassandra’s distributed queue architecture?
- RQ5How do network I/O patterns (sent and received data) differ between Raft and Paxos under sustained workloads?
Key findings
- Raft demonstrated significantly lower and more consistent read and write request latency compared to Paxos, especially under high load.
- Paxos showed an inverse relationship between request latency and network I/O, with data transfer rates dropping sharply under high load, while Raft maintained a stable and regular network I/O pattern.
- The average number of write requests per second was 11 in Raft, compared to 14 in Paxos, indicating more balanced load distribution in Raft.
- Read request rates in Paxos fluctuated widely under load, whereas Raft maintained a constant and optimized rate, contributing to lower latency.
- OS load in Raft was consistently lower and more monotonous than in Paxos, which exhibited wider fluctuations, indicating better system resource utilization.
- Raft’s superior load balancing led to improved overall system efficiency, reduced redundancy, and enhanced performance in high-throughput P2P environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.