リースとは?
リースは、リソース、lock、またはロールを限られた時間だけ保持する許可で、その後、保持者が失効前に更新しない限り失効します。自ら失効するため、クラッシュした保持者がシステムを永久にブロックすることはなく、リースがタイムアウトすれば別のノードが引き継げます。リースはリーダー選出と分散ロックの基盤です。
なぜ重要か
クラッシュしたプロセスが保持する単純な lock は、システム全体をデッドロックさせかねません。リースは自ら失効することでそのリスクを限定し、一方で更新は健全な保持者をその場に維持します。
関連ガイド
Leader Election - CI/CD Glossary DefinitionLeader election is how a cluster picks one node to coordinate writes or decisions, and re-elects a new one wh…
What Is a Heartbeat?A heartbeat is a periodic signal a component sends to show it is alive, letting peers detect failure when the…
Fencing Token - CI/CD Glossary DefinitionA fencing token is a monotonically increasing number issued with a lock so a stale leader’s late writes are r…