-
Notifications
You must be signed in to change notification settings - Fork 215
/
index.html
925 lines (833 loc) · 35 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Raft is a consensus algorithm that is designed to be easy to understand.">
<link rel="icon" type="image/x-icon" href="logo/favicon.ico" >
<!-- The next line authorizes Diego to use the Google Search Console on this site. -->
<meta name="google-site-verification" content="aRKNQn2I0UXp0xfA1c6Hz0d_fiWqhhAGfher0aZRL3g" />
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" integrity="sha384-dkTxiR4Mv8i0ubTj0fsgTCmhYmOtrc0o6rdrEO6hDZs9cAifak0Y2VVL2cecWHLQ" crossorigin="anonymous" >
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" integrity="sha384-Zzs5x1/YUvlxpCu06c197tRCubLCMA7pCoHbZeoZuz/oEgYD6NVmvLzDSKYBoc3J" crossorigin="anonymous"></script>
<script>
// Render the implementations table.
$(function() {
'use strict';
function display(impls) {
const tbody = $('#implementations tbody');
tbody.empty();
impls.forEach(function (impl) {
const row = $('<tr>');
let stars;
if (impl.stars === undefined || impl.stars < 5 ) {
stars = '';
} else {
stars = impl.stars.toLocaleString() + '★';
}
row.append($('<td>').text(stars));
const name = $('<td>');
name.append($('<a>').attr('href', impl.repoURL).text(impl.name));
if (impl.archived === true) {
name.append(' (archived)');
}
row.append(name);
const authors = $('<td>');
if (impl.authors !== undefined) {
impl.authors.forEach(function(author, i) {
let el;
if (author.github !== undefined) {
el = $('<a>').attr('href', 'https://github.com/' + author.github).text(author.name);
} else if (author.twitter !== undefined) {
el = $('<a>').attr('href', 'https://twitter.com/' + author.twitter).text(author.name);
} else {
el = $('<span>').text(author.name);
}
authors.append(el);
if (i < impl.authors.length - 1) {
authors.append(', ');
}
});
}
row.append(authors);
row.append($('<td>').text(impl.language));
row.append($('<td>').text(impl.license));
[
'basic',
'persistence',
'membershipChanges',
'logCompaction',
].forEach(function(feature) {
let has;
if (impl.features !== undefined) {
has = impl.features[feature];
}
if (has === true) {
row.append($('<td>').text('Yes'));
} else if (has === false) {
row.append($('<td>').text('No'));
} else {
row.append($('<td>'));
}
})
tbody.append(row);
});
}
$.getJSON('implementations.json', function(impls) {
display(impls);
$.getScript('https://ongardie.net/static/raft/repos.jsonp',
function() {
const repos = raft_repos();
impls.forEach(function(impl) {
const repo = repos[impl.repoURL];
if (repo === undefined) {
impl.rank = -1;
} else {
impl.rank = repo.rank;
impl.stars = repo.stars;
impl.updated = repo.updated;
impl.archived = repo.archived;
}
});
impls.sort(function(a, b) { return b.rank - a.rank; })
display(impls);
});
});
});
</script>
<style>
blockquote p {
font-size: inherit;
}
a {
color: #000099;
}
img:-moz-loading {
/* This is a workaround for flashing alt text in Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=1472637. */
visibility: hidden;
}
</style>
<title>Raft Consensus Algorithm</title>
</head>
<body>
<div class="container" style="margin-top: 50px">
<h1>
The Raft Consensus Algorithm
<img src="logo/solo.svg" alt="Raft logo" style="width: 190px; height: 190px; margin: -40px auto;" />
</h1>
</div>
<!-- MAIN -->
<div class="container">
<div class="row">
<div class="col-md-4 col-md-push-8">
<div class="panel panel-default">
<div class="panel-heading">
<h1 class="panel-title">Quick Links</h1>
</div>
<div class="panel-body">
<ul class="nav nav-pills nav-stacked">
<li><a href="raft.pdf">Raft paper</a></li>
<li><a href="https://groups.google.com/forum/#!forum/raft-dev">raft-dev mailing list</a></li>
<li><a href="#implementations">Raft implementations</a></li>
</ul>
</div> <!-- end panel-body -->
</div> <!-- end panel -->
</div> <!-- end col-md-4 -->
<div class="col-md-8 col-md-pull-4">
<a name="overview"></a>
<h2>What is Raft?</h2>
<p>
Raft is a consensus algorithm that is designed to be easy to understand. It's
equivalent to Paxos in fault-tolerance and performance. The difference is that
it's decomposed into relatively independent subproblems, and it cleanly
addresses all major pieces needed for practical systems. We hope Raft will make
consensus available to a wider audience, and that this wider audience will be
able to develop a variety of higher quality consensus-based systems than are
available today.
</p>
<h2>Hold on—what is consensus?</h2>
<p>
Consensus is a fundamental problem in fault-tolerant distributed systems.
Consensus involves multiple servers agreeing on values. Once they reach a
decision on a value, that decision is final. Typical consensus algorithms make
progress when any majority of their servers is available; for example, a
cluster of 5 servers can continue to operate even if 2 servers fail.
If more servers fail, they stop making progress (but will never return an
incorrect result).
</p>
<p>
Consensus typically arises in the context of replicated state machines, a
general approach to building fault-tolerant systems. Each server has a state
machine and a log. The state machine is the component that we want to make
fault-tolerant, such as a hash table. It will appear to clients that they are
interacting with a single, reliable state machine, even if a minority of the
servers in the cluster fail. Each state machine takes as input commands from
its log. In our hash table example, the log would include commands like <em>set
x to 3</em>. A consensus algorithm is used to agree on the commands in the
servers' logs. The consensus algorithm must ensure that if any state machine
applies <em>set x to 3</em> as the <em>n</em><sup>th</sup> command, no other
state machine will ever apply a different <em>n</em><sup>th</sup> command. As a
result, each state machine processes the same series of commands and thus
produces the same series of results and arrives at the same series of states.
</p>
</div> <!-- end col-md-8 div -->
</div> <!-- end row div -->
<div>
<a name="raftscope"></a>
<h2>Raft Visualization</h2>
<p>
Here's a Raft cluster running in your browser. You can interact with it to see
Raft in action. Five servers are shown on the left, and their logs are shown on
the right. We hope to create a screencast soon to explain what's going on. This
visualization (<a href="https://github.com/ongardie/raftscope">RaftScope</a>)
is still pretty rough around the edges; pull requests would be very welcome.
</p>
<iframe src="raftscope/index.html" title="raft visualization" aria-hidden="true" style="border: 0; width: 800px; height: 580px; margin-bottom: 20px"></iframe>
<p>
<a href="http://thesecretlivesofdata.com/raft/">The Secret Lives of Data</a>
is a different visualization of Raft. It's more guided and less interactive, so
it may be a gentler starting point.
</p>
<a name="pubs"></a>
<h2>Publications</h2>
<p>
This is "the Raft paper", which describes Raft in detail:
<a href="raft.pdf">In Search of an Understandable Consensus Algorithm (Extended Version)</a>
by <a href="https://twitter.com/ongardie">Diego Ongaro</a> and
<a href="https://www.stanford.edu/~ouster/">John Ousterhout</a>.
A slightly shorter version of this paper received a Best Paper Award at the
<a href="https://www.usenix.org/conference/atc14/technical-sessions/presentation/ongaro">2014 USENIX Annual Technical Conference</a>.
</p>
<p>
Diego Ongaro's
<a href="https://github.com/ongardie/dissertation#readme">Ph.D. dissertation</a>
expands on the content of the paper in much more detail, and it includes a
simpler cluster membership change algorithm. The dissertation also includes a
formal specification of Raft written in TLA+; a slightly updated version of that
specification is <a href="https://github.com/ongardie/raft.tla">here</a>.
</p>
</p>
<p>More Raft-related papers:</p>
<ul>
<li>
<p>
Doug Woos,
James R. Wilcox,
Steve Anton,
Zachary Tatlock,
Michael D. Ernst, and
Thomas Anderson.
<br />
<a href="https://dl.acm.org/doi/abs/10.1145/2854065.2854081">Planning for Change in a Formal Verification of the Raft Consensus Protocol</a>.
<br />
Certified Programs and Proofs (CPP), January 2016.
</p>
</li>
<li>
<p>
James R. Wilcox,
Doug Woos,
Pavel Panchekha,
Zachary Tatlock,
Xi Wang,
Michael D. Ernst, and
Thomas Anderson.
<br />
<a href="http://verdi.uwplse.org/">Verdi: A Framework for Implementing and Verifying Distributed Systems</a>.
<br />
Programming Language Design and Implementation (PLDI), June 2015.
</p>
</li>
<li>
<p>
Hugues Evrard and
Frédéric Lang.
<br />
<a href="https://hal.inria.fr/hal-01086522">Automatic Distributed Code Generation from Formal Models of Asynchronous Concurrent Processes</a>.
<br />
Parallel, Distributed, and Network-Based Processing (PDP), March 2015.
</p>
</li>
<li>
<p>
<a href="https://twitter.com/heidiann360">Heidi Howard</a>,
Malte Schwarzkopf,
Anil Madhavapeddy, and
Jon Crowcroft.
<br />
<a href="https://www.cl.cam.ac.uk/~ms705/pub/papers/2015-osr-raft.pdf">Raft Refloated: Do We Have Consensus?</a>.
<br />
SIGOPS Operating Systems Review, January 2015.
</p>
</li>
<li>
<p>
Heidi Howard.
<br />
<a href="https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-857.html">ARC: Analysis of Raft Consensus</a>.
<br />
University of Cambridge, Computer Laboratory, UCAM-CL-TR-857, July 2014.
</p>
</li>
</ul>
<a name="talks"></a>
<h2>Talks</h2>
<p>
These talks serve as good introductions to Raft:
</p>
<!-- Please keep the following list in reverse chronological order. -->
<ul class="list-group">
<li class="list-group-item clearfix">
Talk on Raft at
<a href="https://cs.illinois.edu/news/distinguished-lecture-series-dr-john-ousterhout">CS@Illinois Distinguished Lecture Series</a>
by <a href="https://www.stanford.edu/~ouster/">John Ousterhout</a>, August 2016:
<img class="img-rounded pull-right" src="thumbnails/uiuc2016.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://youtu.be/vYp4LYbnnW8">YouTube</a></td>
</tr>
<tr>
<td>Slides</td>
<td>
<a href="slides/uiuc2016.pdf">PDF</a>
with <a href="raftscope/index.html">RaftScope visualization</a>
</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft and its TLA+ spec as part of
<a href="https://github.com/tlaplus/DrTLAPlus">Dr. TLA+ Series</a>
by <a href="https://research.microsoft.com/en-us/um/people/jinl/">Jin Li</a>, July 2016:
<img class="img-rounded pull-right" src="thumbnails/drtlaplus2016.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://www.youtube.com/watch?v=6Kwx8zfGW0Y">YouTube</a></td>
</tr>
<tr>
<td>Slides</td>
<td>
<a href="https://www.slideshare.net/DrTlaplusSeries/dr-tla-series-raft-jin-li">SlideShare</a>
</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft at
<a href="https://www.buildstuff.events/">Build Stuff 2015</a>
by <a href="https://twitter.com/ongardie">Diego Ongaro</a>, November 2015:
<img class="img-rounded pull-right" src="thumbnails/buildstufflt2015.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://www.infoq.com/presentations/raft-consensus-algorithm">InfoQ</a></td>
</tr>
<tr>
<td>Slides</td>
<td>
<a href="https://ongardie.github.io/raft-talk-archive/2015/buildstuff/">HTML</a>
<a href="slides/buildstuff2015.pdf">PDF</a>
with <a href="https://ongardie.github.io/raft-talk-archive/2015/buildstuff/raftscope-replay/">RaftScope visualization</a>
</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talks on Rust, Raft, and distributed systems at
<a href="https://www.meetup.com/Rust-Bay-Area/events/219696985/">Rust Bay Area Meetup</a>
by
<a href="https://webhome.cs.uvic.ca/~ycoady/">Yvonne Coady</a>,
<a href="https://twitter.com/ongardie">Diego Ongaro</a>,
<a href="https://twitter.com/andrewhobden">Andrew Hobden</a>,
<a href="https://github.com/danburkert">Dan Burkert</a>, and
<a href="https://twitter.com/posix4e">Alex Newman</a>,
August 2015:
<img class="img-rounded pull-right" src="thumbnails/rust2015.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://air.mozilla.org/bay-area-rust-meetup-august-2015/">Air Mozilla</a></td>
</tr>
<tr>
<td>Slides</td>
<td>
Diego: <a href="slides/rustdiego2015.pdf">PDF</a>
with <a href="raftscope-replay/index.html">RaftScope visualization</a>
</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft at
<a href="https://coreos.com/fest/">CoreOS Fest 2015</a>
by <a href="https://twitter.com/ongardie">Diego Ongaro</a>, May 2015:
<img class="img-rounded pull-right" src="thumbnails/coreosfest2015.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://youtu.be/6bBggO6KN_k">YouTube</a></td>
</tr>
<tr>
<td>Slides</td>
<td>
<a href="slides/coreosfest2015.pdf">PDF</a>
with <a href="raftscope-replay/index.html">RaftScope visualization</a>
</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft at
<a href="https://www.meetup.com/Sourcegraph-Hacker-Meetup/events/221199291/">Sourcegraph meetup</a>
by <a href="https://twitter.com/ongardie">Diego Ongaro</a>, April 2015:
<img class="img-rounded pull-right" src="thumbnails/sourcegraph2015.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://youtu.be/2dfSOFqOhOU">YouTube</a></td>
</tr>
<tr>
<td>Slides</td>
<td>
<a href="slides/sourcegraph2015.pdf">PDF</a>
with <a href="raftscope-replay/index.html">RaftScope visualization</a>
</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft at LinkedIn
by <a href="https://twitter.com/ongardie">Diego Ongaro</a>, September 2014:
<img class="img-rounded pull-right" src="thumbnails/linkedin2014.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://youtu.be/LAqyTyNUYSY">YouTube</a></td>
</tr>
<tr>
<td>Slides</td>
<td>
<a href="slides/linkedin2014.pdf">PDF</a>
<a href="slides/linkedin2014.pptx">PPTX</a>
with <a href="raftscope-replay/index.html">RaftScope visualization</a>
</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft at
<a href="https://www.usievents.com/en">USI 2014</a>
and
<a href="http://devcycles.net/summer/sessions/index.php?session=3">/dev/summer 2014</a>
by <a href="https://twitter.com/abailly">Arnaud Bailly</a>, July 2014:
<img class="img-rounded pull-right" src="thumbnails/usi2014.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://www.youtube.com/watch?v=eRDq2Fr6grY">YouTube</a> (French)</td>
</tr>
<tr>
<td>Slides</td>
<td><a href="https://speakerdeck.com/abailly/the-raft-protocol-distributed-consensus-for-dummies">Speaker Deck</a> (English)</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft at <a href="https://www.usenix.org/conference/atc14/technical-sessions/presentation/ongaro">2014 USENIX Annual Technical Conference</a>
by <a href="https://twitter.com/ongardie">Diego Ongaro</a>, June 2014:
<img class="img-rounded pull-right" src="thumbnails/atc2014.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://www.usenix.org/conference/atc14/technical-sessions/presentation/ongaro">USENIX</a></td>
</tr>
<tr>
<td>Slides</td>
<td><a href="raftscope-replay/index.html">RaftScope visualization</a></td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft at <a href="https://craft-conf.com/2014/#speakers/DiegoOngaro">CraftConf 2014</a>
by <a href="https://twitter.com/ongardie">Diego Ongaro</a>, April 2014:
<img class="img-rounded pull-right" src="thumbnails/craftconf2014.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://www.ustream.tv/recorded/46672856">Ustream</a></td>
</tr>
<tr>
<td>Slides</td>
<td>
<a href="slides/craftconf2014.pdf">PDF</a>
<a href="slides/craftconf2014.pptx">PPTX</a>
</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft at <a href="https://rubyconf.org/program#patrick-van-stee">Rubyconf 2013</a>
by <a href="https://twitter.com/vanstee">Patrick Van Stee</a>, November 2013:
<img class="img-rounded pull-right" src="thumbnails/rubyconf2013.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://youtu.be/IsPxhZ2IsWw">YouTube</a></td>
</tr>
<tr>
<td>Slides</td>
<td>
<a href="https://speakerdeck.com/vanstee/raft-consensus-for-rubyists">Speaker Deck</a>
</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft at <a href="http://ricon.io/west.html">RICON West 2013</a>
by <a href="https://twitter.com/ongardie">Diego Ongaro</a>, October 2013:
<img class="img-rounded pull-right" src="thumbnails/riconwest2013.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://youtu.be/06cTPhi-3_8">YouTube</a></td>
</tr>
<tr>
<td>Slides</td>
<td>
<a href="slides/riconwest2013.pdf">PDF</a>
<a href="slides/riconwest2013.pptx">PPTX</a>
</td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft at <a href="https://thestrangeloop.com/sessions/raft-the-understandable-distributed-protocol">Strange Loop 2013</a>
by <a href="https://twitter.com/benbjohnson">Ben Johnson</a>, September 2013:
<img class="img-rounded pull-right" src="thumbnails/strangeloop2013.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://www.infoq.com/presentations/raft">InfoQ</a></td>
</tr>
<tr>
<td>Slides</td>
<td><a href="https://speakerdeck.com/benbjohnson/raft-the-understandable-distributed-consensus-protocol">Speaker Deck</a></td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft and <a href="https://github.com/andrewjstone/rafter">Rafter</a>
at the <a href="https://www.meetup.com/Erlang-NYC/events/131394712/">Erlang NYC Meetup</a>
by <a href="https://twitter.com/tsantero">Tom Santero</a> and
<a href="https://twitter.com/andrew_j_stone">Andrew Stone</a>, August 2013:
<img class="img-rounded pull-right" src="thumbnails/erlangnyc2013.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video</td>
<td><a href="https://vimeo.com/71635670">Vimeo</a></td>
</tr>
<tr>
<td>Slides</td>
<td><a href="https://speakerdeck.com/tsantero/consensus-raft-and-rafter">Speaker Deck</a></td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Talk on Raft (venue unknown)
by <a href="https://twitter.com/vanstee">Patrick Van Stee</a>, July 2013:
<img class="img-rounded pull-right" src="thumbnails/vanstee2013.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Slides</td>
<td><a href="https://speakerdeck.com/vanstee/consensus-an-introduction-to-raft">Speaker Deck</a></td>
</tr>
</table>
</li>
<li class="list-group-item clearfix">
Lecture for the <a href="https://ongardie.net/static/raft/userstudy/">Raft User Study</a>
by <a href="https://www.stanford.edu/~ouster/">John Ousterhout</a>, March 2013:
<img class="img-thumbnail pull-right" src="thumbnails/userstudy2013.jpg" alt="preview of the video" />
<table class="table-condensed">
<tr>
<td>Video (screencast)</td>
<td>
<a href="https://youtu.be/YbZ3zDzDnrw">YouTube</a>
<a href="https://ongardie.net/static/raft/userstudy/raft.mp4">MP4</a>
</td>
</tr>
<tr>
<td>Slides</td>
<td>
<a href="slides/raftuserstudy2013.pdf">PDF</a>
<a href="slides/raftuserstudy2013.pptx">PPTX</a>
</td>
</tr>
</table>
</li>
</ul>
<a name="courses"></a>
<h2>Courses teaching Raft</h2>
<p>
This is a list of courses that include lectures or programming assignments on Raft.
This might be useful for other instructors and for online learners looking for materials.
If you know of additional courses, please submit a
<a href="https://github.com/raft/raft.github.io">pull request</a>
or an issue to update it.
</p>
<!-- newest first -->
<ul>
<li>
<a href="https://www.hku.hk/">The University of Hong Kong</a>,
<a href="https://www.cs.hku.hk/index.php/programmes/course-offered?infile=2019/comp3358.html">COMP3358: Distributed and Parallel Computing</a>,
<a href="https://www.cs.hku.hk/people/academic-staff/heming">Heming Cui</a>.
Includes lecture on Raft. (Spring 2024)
</li>
<li>
<a href="https://www.virginia.edu/">University of Virginia</a>,
<a href="https://changlousys.github.io/CS4740/spring24/about/">CS4740: Cloud Computing</a>,
<a href="https://changlousys.github.io/">Chang Lou</a>.
Includes lecture on Raft and programming assignment (Go). (Spring 2024 ...)
</li>
<li>
<a href="https://ucsd.edu">University of California, San Deigo</a>,
<a href="https://canvas.ucsd.edu/courses/43955/assignments/syllabus">CSE224: Graduate Networked Systems</a>,
<a href="https://cseweb.ucsd.edu/~gmporter/">George Porter</a>.
Includes lecture on Raft and programming assignment (Go) to develop a fault-tolerant Dropbox clone. (Winter 2023/2022, Fall 2020/2019/2018 ...)
</li>
<li>
<a href="https://www.tum.de/">Technical University of Munich</a>,
<a href="https://campus.tum.de/tumonline/ee/ui/ca2/app/desktop/#/slc.tm.cp/student/courses/950635146?lang=en">IN2259: Distributed Systems</a>,
<a href="https://dse.in.tum.de/bhatotia/">Pramod Bhatotia</a> and
<a href="https://martin.kleppmann.com/">Martin Kleppmann</a>.
Includes lecture on Raft. (Winter 2022/2023, ...)
</li>
<li>
<a href="https://illinois.edu">University of Illinois Urbana-Champaign</a>,
<a href="https://courses.grainger.illinois.edu/cs425/">CS425: Distributed Systems</a>,
<a href="http://indy.cs.illinois.edu">Indranil Gupta</a>,
<a href="http://hatswitch.org/~nikita/">Nikita Borisov</a>, and
<a href="https://radhikam.web.illinois.edu">Radhika Mittal</a>.
Includes Raft programming assignment in Go. (Spring 2021, ...)
</li>
<li>
<a href="https://www.cse.cuhk.edu.hk">The Chinese University of Hong Kong</a>,
<a href="https://piazza.com/class/kicgvsku8ul6ro">CSCI4160: Distributed and Parallel Computing</a> (Private),
<a href="https://appsrv.cse.cuhk.edu.hk/~ericlo/">Eric Lo</a>.
Includes lecture on Paxos and Raft as well as <a href="https://github.com/eric-lo/csci4160-asgn1">Raft programming assignment</a> in Java/Go
(Fall 2019, Spring 2021, ...)
</li>
<li>
<a href="https://www.cse.iitd.ac.in/">Indian Institute of Technology Delhi</a>,
<a href="https://www.cse.iitd.ernet.in/~srsarangi/courses/2020/col_819_2020/index.html">COL 819: Distributed Systems</a>,
<a href="https://www.cse.iitd.ac.in/~srsarangi/">Smruti R. Sarangi</a>.
Includes lecture on Raft (<a href="https://youtu.be/oBlbpPDxs-M">video</a>)
(<a href="https://www.cse.iitd.ernet.in/~srsarangi/courses/2020/col_819_2020/docs/raft.pptx">PPTX</a>)
(Winter 2020, ...)
</li>
<li>
<a href="https://www.cs.cmu.edu/">Carnegie Mellon University</a>,
<a href="https://www.synergylabs.org/courses/15-440/">CS 440: Distributed Systems</a>,
<a href="https://www.synergylabs.org/yuvraj/">Yuvraj Agarwal</a>,
<a href="https://www.cs.cmu.edu/~dga/">Dave Andersen</a>.
Includes Raft programming assignment in Go. (Fall 2019, ...)
</li>
<li>
<a href="https://khoury.northeastern.edu/">Northeastern University</a>,
<a href="https://cbw.sh/3700/">CS 3700: Networks and Distributed Systems</a>,
<a href="https://cbw.sh/">Christo Wilson</a>,
<a href="https://khoury.northeastern.edu/people/long-lu/">Long Lu</a>.
Includes an assignment to build a replicated key-value store based on the Raft protocol. (Fall 2018, ...)
</li>
<li>
<a href="https://itb.ac.id/">Institute Technology Bandung</a>,
IF3230.
Raft <a href="https://github.com/ramsicandra/IF3230-Raft-2018">assignments</a> with testcases for showcasing edge cases and scoring
(2018)
</li>
<li>
<a href="https://www.rose-hulman.edu/">Rose-Hulman Institute of Technology</a>,
<a href="http://files.hewner.com/classes/csse403/">CS 403: Programming Language Paradigms</a>,
<a href="http://hewner.com">Buffalo Hewner</a>.
Includes Raft programming assignment in Erlang (<a href="http://files.hewner.com/classes/csse403/HomeworkCode/ErlangRaft/">assignments</a>).
(Winter 2017, ...)
</li>
<li>
<a href="https://www.cs.princeton.edu/">Princeton University</a>,
<a href="https://www.cs.princeton.edu/courses/archive/fall16/cos418/">COS-418: Distributed Systems</a>,
<a href="https://www.cs.princeton.edu/~mfreed/">Mike Freedman</a> and
<a href="https://www.cs.princeton.edu/~kylej/">Kyle Jamieson</a>.
Includes <a href="https://www.cs.princeton.edu/courses/archive/fall16/cos418/docs/L8-consensus-2.pdf">lecture on Raft</a>
(<a href="https://www.cs.princeton.edu/courses/archive/fall16/cos418/docs/L8-consensus-2.pptx">PPTX</a>) and
<a href="https://www.cs.princeton.edu/courses/archive/fall16/cos418/assignments.html">programming assignments</a>
to build a Raft-based key-value store.
(Fall 2016, ...)
</li>
<li>
<a href="https://www.cs.washington.edu/">University of Washington</a>,
<a href="https://courses.cs.washington.edu/courses/cse452/16wi/">CSE 452: Distributed Systems</a>,
<a href="https://www.cs.washington.edu/people/faculty/tom">Tom Anderson</a>.
Includes <a href="https://courses.cs.washington.edu/courses/cse452/16wi/calendar/calendar.html">lecture on Raft</a>,
though they call it Paxos.
(Winter 2016, ...)
</li>
<li>
<a href="https://www.cs.colorado.edu/">University of Colorado, Boulder</a>,
<a href="https://www.cs.colorado.edu/~mishras/courses/csci5673/Fall15/">CSCI 5673: Distributed Systems</a>,
<a href="https://www.cs.colorado.edu/~mishras/">Shivakant Mishra</a>.
Includes assignment to download a Raft implementation and build a fault-tolerant data structure with it.
(Fall 2015, ...)
</li>
<li>
<a href="https://www.cs.utah.edu/">University of Utah</a>,
<a href="https://www.cs.utah.edu/~stutsman/cs6963/">CS 6963: Distributed Systems</a>,
<a href="https://www.cs.utah.edu/~stutsman/">Ryan Stutsman</a>
(<a href="https://twitter.com/rstutsman">@rstutsman</a>).
Will include something about Raft (TBD).
(Fall 2015, ...)
</li>
<li>
<a href="http://info.sjsu.edu/web-dbgen/catalog/departments/CMPE.html">San Jose State University</a>,
<a href="http://info.sjsu.edu/web-dbgen/catalog/courses/CMPE275.html">CMPE 275 Enterprise Application Development</a>,
<a href="https://cmpe.sjsu.edu/profile/john-gash">John Gash</a>.
Includes project to make a <a href="https://github.com/deepmehtait/Distributed-file-system-server-with-RAFT">distributed filesystem</a> using Raft.
(Spring 2015, ...)
</li>
<li>
<a href="https://cs.brown.edu/">Brown</a>,
<a href="https://cs.brown.edu/courses/csci1380/">CS 138: Distributed Computer Systems</a>,
<a href="https://www.cs.brown.edu/~twd/">Tom Doeppner</a>,
<a href="https://www.cs.brown.edu/~rfonseca/">Rodrigo Fonseca</a>
(<a href="https://twitter.com/rodrigo_fonseca">@rodrigo_fonseca</a>).
Includes Raft programming assignment in Go.
(Spring 2015, ...)
</li>
<li>
<a href="https://www.csail.mit.edu/">MIT</a>,
<a href="http://nil.csail.mit.edu/6.824/2015/index.html">6.824: Distributed Systems</a>,
<a href="https://pdos.csail.mit.edu/~rtm/">Robert Morris</a>.
Includes lecture on Raft
(<a href="http://nil.csail.mit.edu/6.824/2015/notes/l-raft.txt">lecture notes</a>).
See <a href="https://twitter.com/Jonhoo/">Jon Gjengset</a>'s posts for
<a href="https://thesquareplanet.com/blog/instructors-guide-to-raft/">instructors</a> and
<a href="https://thesquareplanet.com/blog/students-guide-to-raft/">students</a>.
(Spring 2015, ...)
</li>
<li>
<a href="http://cs.usfca.edu/">University of San Francisco</a>,
<a href="http://cs636.cs.usfca.edu/home">CS 636: Graduate Operating Systems</a>,
<a href="http://benson.cs.usfca.edu/">Greg Benson</a>
(<a href="https://twitter.com/gregorydbenson">@gregorydbenson</a>).
Includes lecture on Raft.
(Spring 2015, ...)
</li>
<li>
<a href="https://www.eecs.harvard.edu/">Harvard</a>,
<a href="https://www.eecs.harvard.edu/cs261/">CS 261: Research Topics in Operating Systems</a>,
<a href="https://www.eecs.harvard.edu/margo">Margo Seltzer</a>.
Includes lecture on Raft
(<a href="https://www.eecs.harvard.edu/cs261/notes/ongara-2014.html">lecture notes</a>).
(Fall 2014, ...)
</li>
<li>
<a href="https://uh.edu/nsm/computer-science/">University of Houston</a>,
<a href="http://www2.cs.uh.edu/~paris/6360/resources.htm">COSC 6360: Operating Systems</a>,
<a href="http://www2.cs.uh.edu/~paris/">Jehan-François Pâris</a>
(<a href="https://twitter.com/jehanfrancois">@jehanfrancois</a>).
Includes lecture on Raft (<a href="http://www2.cs.uh.edu/~paris/6360/PowerPoint/Raft.ppt">PPT</a>).
(Fall 2014, ...)
</li>
<li>
<a href="https://cs.stanford.edu/">Stanford</a>,
<a href="https://www.scs.stanford.edu/14au-cs244b/">CS 244b: Distributed Systems</a>,
<a href="https://web.stanford.edu/~engler/">Dawson Engler</a>,
<a href="https://www.scs.stanford.edu/~dm/">David Mazières</a>
(<a href="https://twitter.com/dmazieres">@dmazieres</a>).
Included guest lecture on Raft by Diego Ongaro.
Several students chose to work on Raft-based
<a href="https://www.scs.stanford.edu/14au-cs244b/labs/presentations.html">final projects</a>.
(Fall 2014)
</li>
<li>
<a href="http://seecs.nust.edu.pk/">NUST-SEECS</a>,
CS 332: Distributed Computing,
Tahir Azim
(<a href="https://twitter.com/TahirAzim">@TahirAzim</a>).
Includes lecture on Raft based on user study materials
(<a href="https://twitter.com/TahirAzim/status/527363109678112768">tweet</a>).
(Fall 2014, ...)
</li>
<li>
<a href="https://www.cs.duke.edu/">Duke</a>,
<a href="http://db.cs.duke.edu/courses/compsci512/spring15/">CPS 512: Distributed Systems</a>,
<a href="https://www.cs.duke.edu/~bmm/">Bruce Maggs</a>.
Includes guest lecture on Raft
(<a href="http://db.cs.duke.edu/courses/compsci512/spring15/lectures/raft-guest.pptx">PPTX</a>)
by <a href="https://www.cs.duke.edu/~lpcox/" >Landon Cox</a>
(<a href="https://twitter.com/lpcox">@lpcox</a>).
(Spring 2014, Spring 2015, ...)
</li>
<li>
<a href="https://www.cse.iitb.ac.in/">IIT Bombay</a>,
<a href="https://www.cse.iitb.ac.in/page134?course=CS+733">CS 733: Cloud Computing</a>,
<a href="https://github.com/sriram-srinivasan">Sriram Srinivasan</a>.
Includes Raft programming assignment in Go (<a href="https://github.com/dushyant89/CS-733">assignments</a>).
(Spring 2014, Spring 2015, ...)
</li>
</ul>
<h2>Where can I ask questions?</h2>
<p>
The best place to ask questions about Raft and its implementations is the
<a href="https://groups.google.com/forum/#!forum/raft-dev">raft-dev Google group</a>.
Some of the implementations also have their own mailing lists; check their READMEs.
</p>
<a name="implementations"></a>
<h2>Where can I get Raft?</h2>
<p>
There are many implementations of Raft available in various stages of
development. This table lists the implementations we know about with source
code available. The most popular and/or recently updated implementations are
towards the top. This information will inevitably get out of date; please submit a
<a href="https://github.com/raft/raft.github.io">pull request</a>
or an issue to update it.
</p>
<table id="implementations" class="table table-striped table-hover">
<thead>
<tr>
<th>Stars</th>
<th>Name</th>
<th>Primary Authors</th>
<th>Language</th>
<th>License</th>
<th>Leader Election + Log Replication?</th>
<th>Persistence?</th>
<th>Membership Changes?</th>
<th>Log Compaction?</th>
</tr>
</thead>
<tbody>
<!--
Some JavaScript towards the top of the page will fill this in based on
'implementations.json' and sort it according to GitHub stars and last repo
update time.
-->
</tbody>
</table>
</div>
</div> <!-- end MAIN -->
<!-- FOOTER -->
<div class="container footer">
<hr />
<footer>
<p>
Published with <a href="https://pages.github.com">GitHub Pages</a>.
<a href="https://github.com/raft/raft.github.io">View on GitHub</a>.<br />
This work is licensed under a
<a rel="license" href="https://creativecommons.org/licenses/by/3.0/deed.en_US">Creative Commons Attribution 3.0 Unported License</a>.
</p>
</footer>
</div>
</body>
</html>