You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a large architecture, you may want to have your workers restart when new code is deployed. Currently GM only restarts when workers change. If non-worker code that is already loaded in GM changes, it is not able to detect that.
The GM helper process could listen on TCP or UDP and take requests. The least of which is a reload command.
The text was updated successfully, but these errors were encountered:
It might be a future plan and quite risky (cause it affects whole architecture), but did you think about using ReactPHP or whole PHP Process Manager (php-pm)?
It even might be out of this issue's scope and require external dependency or porting that logic into this project.
I think this project is awesome when it comes to dependencies (right now they are just core php extensions). I might argue about stuff like logging, PSR compliance or @-suppresors, but being lightweight and dependency-less makes it quite stable, extensible and easier to maintain compared to feature-full projects.
Yet listening to socket and usleep in my opinion might be two contradicting solutions. I know well, that process that does not sleep occupies CPU time, but I wonder if there is a better technique to handle such long-running processes. Maybe something derived from SystemD or SysV world?
On a large architecture, you may want to have your workers restart when new code is deployed. Currently GM only restarts when workers change. If non-worker code that is already loaded in GM changes, it is not able to detect that.
The GM helper process could listen on TCP or UDP and take requests. The least of which is a reload command.
The text was updated successfully, but these errors were encountered: