Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: set restart limits to 0 to prevent being marked as failed#1952

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
cstockton wants to merge2 commits intodevelop
base:develop
Choose a base branch
Loading
fromcs/gotrue-start-limit-fix

Conversation

@cstockton
Copy link
Contributor

The systemd default is 10s / 5 for these values with a DefaultRestartUSec of 100ms. Most services set a RestartSec limit of 3, under most circumstances it takes 15s to restart 5 times so the limit of 10s is not exceeded. However if other system processes (salt, cloud init) restart it explicitly, or recovering system services within the --before chain trigger a restart the limit can be exceeded causing it to be marked as failed. Since no services mark gotrue.service as required it will remain offline until the next explicit restart is issued.

Setting these values to 0 with Restart=always and RestartSec=3 will prevent gotrue from being marked as failed.

Copy link
Collaborator

@samrosesamrose left a comment

Choose a reason for hiding this comment

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

We'll need to create a testing AMI to thoroughly test these changes out. Will request@LGUG2Z to perform these tests as he's also going to be helping us find ways to automate these testing approaches.

@samrosesamrose requested a review fromLGUG2ZDecember 2, 2025 13:52
Copy link
Collaborator

@samrosesamrose left a comment

Choose a reason for hiding this comment

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

When we ultimately merge this, we should bump the versions in ansible/vars.yml to create a release for these changes. This way, it will be a distinct change instead of bundled with other changes.

@cstockton
Copy link
ContributorAuthor

Hi@samrose - I've just updated the branch. Any updates on this?

@cstocktoncstocktonforce-pushed thecs/gotrue-start-limit-fix branch 2 times, most recently frome097bf1 to3ef31baCompareDecember 8, 2025 17:25
Chris Stockton added2 commitsDecember 8, 2025 10:28
The systemd default is 10s / 5 for these values with a DefaultRestartUSec of100ms. Most services set a RestartSec limit of 3, under most circumstances ittakes 15s to restart 5 times so the limit of 10s is not exceeded. However ifother system processes (salt, cloud init) restart it explicitly, or recoveringsystem services within the --before chain trigger a restart the limit can beexceeded causing it to be marked as failed. Since no services markgotrue.service as required it will remain offline until the next explicitrestart is issued.Setting these values to 0 with Restart=always and RestartSec=3 will preventgotrue from being marked as failed.
I've noticed all !oneshot services set a `RestartSec` of `3s` and we use thesystemd defaults of `StartLimitBurst=5` and `StartLimitInterval=10s`. Togetherthis forms a property that under typical conditions a service will be restartedindefinitely until it comes back up due to `(3s * 5) > 10s`, but it is stillpossible for a service to enter a failed state under some scenarios. This changedefensively sets them to 0/0 to keep them in restart loops.
@cstocktoncstocktonforce-pushed thecs/gotrue-start-limit-fix branch from3ef31ba toc89c805CompareDecember 8, 2025 17:28
@samrosesamrose self-requested a reviewDecember 11, 2025 05:15
Copy link
Collaborator

@samrosesamrose left a comment

Choose a reason for hiding this comment

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

Just needs a rebase

Copy link
Collaborator

@samrosesamrose left a comment

Choose a reason for hiding this comment

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

I would like infra data@Crispy1975 or@delgado3d to review when they have some time, just being defensive about changes which could impact stability and we need more eyes on these changes

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@samrosesamrosesamrose requested changes

@daroradaroraAwaiting requested review from darora

@pcncpcncAwaiting requested review from pcnc

@LGUG2ZLGUG2ZAwaiting requested review from LGUG2Z

@delgado3ddelgado3dAwaiting requested review from delgado3d

@Crispy1975Crispy1975Awaiting requested review from Crispy1975

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@cstockton@samrose

[8]ページ先頭

©2009-2025 Movatter.jp