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

Healthz check for deadlocks #4558

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

kmlebedev
Copy link
Contributor

What problem are we solving?

When a deadlock occurs, the leader master server pretends to be alive
#4522

How are we solving the problem?

Define a deadlock in the liveness handles, which will allow the container to be restarted with the leader of the master and control will take another

How is the PR tested?

localy

make dev
curl -v -I  http://127.0.0.1:9333/cluster/healthz
*   Trying 127.0.0.1:9333...
* Connected to 127.0.0.1 (127.0.0.1) port 9333 (#0)
> HEAD /cluster/healthz HTTP/1.1
> Host: 127.0.0.1:9333
> User-Agent: curl/7.77.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Fri, 09 Jun 2023 11:24:46 GMT
Date: Fri, 09 Jun 2023 11:24:46 GMT

Checks

  • I have added unit tests if possible.
  • I will add related wiki document changes and link to this PR after merging.

@chrislusf chrislusf merged commit 5ee04d2 into seaweedfs:master Jun 9, 2023
5 checks passed
kmlebedev added a commit to kmlebedev/seaweedfs that referenced this pull request Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants