fix: restart policy always + healthchecks for any-sync nodes #1

Open
domux wants to merge 0 commits from fix/restart-policy-healthchecks into main
Owner

Fixes

  1. Restart policy: Changed restart: unless-stopped to restart: always for all persistent any-sync services (mongo, redis, minio, coordinator, filenode, node-1/2/3, consensusnode, netcheck). This prevents containers from staying down after a manual stop or host restart.

  2. Healthchecks: Added healthcheck blocks to any-sync-node-1, any-sync-node-2, and any-sync-node-3 using TCP port 8080 check.

Context

  • any-sync-node-2 was down for 8 days because unless-stopped does not restart after explicit stop.
  • Other nodes showed connection refused errors when trying to reach node-2.
## Fixes 1. **Restart policy**: Changed `restart: unless-stopped` to `restart: always` for all persistent any-sync services (mongo, redis, minio, coordinator, filenode, node-1/2/3, consensusnode, netcheck). This prevents containers from staying down after a manual stop or host restart. 2. **Healthchecks**: Added `healthcheck` blocks to `any-sync-node-1`, `any-sync-node-2`, and `any-sync-node-3` using TCP port 8080 check. ### Context - `any-sync-node-2` was down for 8 days because `unless-stopped` does not restart after explicit stop. - Other nodes showed `connection refused` errors when trying to reach node-2.
fix: change restart policy to always and add healthchecks for any-sync nodes
Some checks failed
CLA Check / cla-check (pull_request_target) Has been cancelled
2f979aa5d2
Some checks failed
CLA Check / cla-check (pull_request_target) Has been cancelled
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/restart-policy-healthchecks:fix/restart-policy-healthchecks
git switch fix/restart-policy-healthchecks

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff fix/restart-policy-healthchecks
git switch fix/restart-policy-healthchecks
git rebase main
git switch main
git merge --ff-only fix/restart-policy-healthchecks
git switch fix/restart-policy-healthchecks
git rebase main
git switch main
git merge --no-ff fix/restart-policy-healthchecks
git switch main
git merge --squash fix/restart-policy-healthchecks
git switch main
git merge --ff-only fix/restart-policy-healthchecks
git switch main
git merge fix/restart-policy-healthchecks
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
domux/Anytype!1
No description provided.