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

Add posibility to restart workers immediately after TTL will expire#553

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
zwirek wants to merge4 commits intophp-pm:master
base:master
Choose a base branch
Loading
fromzwirek:ttl-restart-strategy

Conversation

@zwirek
Copy link

Hi,
I've noticed that when ttl is set and expired then all workers are restarted in the same time. This causes bigger lag with response from ppm. It is bigger problem when bootstrap of application is heavy.

My proposal is to add another strategy to handle workers restart when ttl will expire. Workers will be restarted immediately after ttl will expire +/-5 sec. This should keep workers fresh and should prevent workers from restarting at the same time.

To enable this behaviorttl-restart-strategy cli parameter or config parameter need to be set onexpire. By default ppm will restart workers due to ttl expiration only when request will be received. As it is handled in current implementation.

@andig
Copy link
Contributor

I think we should do this without an additional parameter. The jitter definitely makes sense.

@zwirek
Copy link
Author

I've amended the code as you suggested. I've removed additional parameter and now workers will be restarted as soon as possible when ttl expire

@andig
Copy link
Contributor

Would appreciate a PR review.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@zwirek@andig

[8]ページ先頭

©2009-2025 Movatter.jp