Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cluster SBR documentation on lease and how it works #6257

Merged
merged 4 commits into from Nov 17, 2022

Conversation

Arkatufus
Copy link
Contributor

Changes

  • Update SBR documentation

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but need to make the markdown linter happy

@@ -262,10 +262,60 @@ akka.cluster.split-brain-resolver.lease-majority {
}
```

A `Lease` is a type of distributed lock implementation.
A `Lease` is a type of distributed lock implementation to decide which nodes are allowed to survive. Only one SBR instance can acquire the lease to make the decision to remain up. The other side will not be able to acquire the lease and will therefore down itself.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lease can also be used for other things like Akka.Cluster.Sharding and ClusterSingleton hand-over too - so I would add " in on the context of SBRs, the leader who acquires the Lease gets to make downing decisions for the entire cluster"


### How Split Brain Resolver Works

* The SBR actor subscribes itself to all cluster events from the event bus during actor `PreStart`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll see about turning this into a diagram in a separate PR

@Aaronontheweb Aaronontheweb added docs akka-coordination Akka.Coordination package updates and materials akka-cluster labels Nov 16, 2022
@Aaronontheweb Aaronontheweb merged commit 88ebfa9 into akkadotnet:dev Nov 17, 2022
@Arkatufus Arkatufus deleted the Update_SBR_documentation branch February 27, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
akka-cluster akka-coordination Akka.Coordination package updates and materials docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants