انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهSRB-003-L02

الإجماع وRaft

  • الدرس 2 من 7
  • Senior B
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

explain Raft well enough to judge systems that rely on it.

الموضوعات المخطط لها

  • Consensus makes a group agree on one ordered log despite failures.
  • Raft: leader election by term, log replication, commit when a majority has the entry.
  • A majority (quorum) is needed, so 3 nodes tolerate 1 failure, 5 tolerate 2.
  • Without a majority the system stops accepting writes rather than diverge; that is a choice for consistency.
تفاصيل المخطط المبدئي

عرض عملي

a timeline of a 3-node cluster: leader N1 fails, N2 times out, requests votes in term 2, wins with N3, continues the log; a diagram of an entry committed once on 2 of 3 nodes.

اختبر فهمك

How many failures does a 5-node Raft group tolerate?

أظهر الإجابة

Two, since a majority of three must remain.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.