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

Change out Supervisor for better init system #15

Closed
jaydrogers opened this issue Apr 20, 2021 · 5 comments
Closed

Change out Supervisor for better init system #15

jaydrogers opened this issue Apr 20, 2021 · 5 comments
Labels
⚡️ Enhancement Items that are new features requested to be added.
Milestone

Comments

@jaydrogers
Copy link
Member

jaydrogers commented Apr 20, 2021

Background

  • Currently the fpm-apache and fpm-nginx images use Supervisor to bring things up
  • According to some reading online, supervisor is not the best for this because it could lead to zombie processes or not properly handling errors

Possible Solution

More details

  • This is a process supervisor specifically built for Docker
  • S6 is used in many LinuxServer.io images

Hesitations

  • I might want to look into Swoole more (Add Swoole Support #14) because this could be where we just leave FPM all together (🥳)
  • The only thing I would need to understand is how can Wordpress run with Apache + Swoole
  • If I can get things to work, I might be able to skip S6 all together
@jaydrogers jaydrogers added the ⚡️ Enhancement Items that are new features requested to be added. label Apr 20, 2021
@szepeviktor
Copy link
Contributor

This is a very good idea.

@szepeviktor
Copy link
Contributor

szepeviktor commented May 28, 2021

The only thing I would need to understand is how can Wordpress run with Apache + Swoole

  1. Dangerous people spell WordPress as Wordpress 😃
  2. WordPress has no HTTP kernel, it needs to boot up every time - no other way to run it

@jaydrogers jaydrogers changed the title Change out Supervisor for S6 Change out Supervisor better init system May 28, 2021
@jaydrogers jaydrogers changed the title Change out Supervisor better init system Change out Supervisor for better init system May 28, 2021
@fideloper
Copy link

fideloper commented May 28, 2021

All my opinion, completely open to debate:

➡️ I haven't used S6 personally but know it's popular, so that's likely a good contender.

➡️ Swoole I wouldn't necessarily make as the default as its downsides (long running process that can lead to memory leaks in code - I'm sure a TON of code bases would have this issue as it's not the expected behavior of PHP, unlike say NodeJS, Golang, and just about everything else 😂).

Maybe swoole can be another variant vs php-fpm?

@jaydrogers
Copy link
Member Author

Maybe swoole can be another variant vs php-fpm?

Absolutely. I would definitely offer Swoole as it's own variant.

Thanks for the heads up on Swoole. I haven't used it before, so I will definitely looking out for this as I start to toy around with it.

I will do some playing around with S6 and keep ya'll posted! 🤠

@jaydrogers
Copy link
Member Author

Goodbye Supervisor, hello S6 Overlay!

I just merged the S6 enhancements into main.

I spent a lot of time toying with S6 Overlay and I feel good about where it is at now. There still (and always will be) some improvements along the way, but I have been running these images in production with a few of our apps and it's been working great!

If you're interested, check it out and let me know your feedback. Thanks for chiming in guys! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡️ Enhancement Items that are new features requested to be added.
Projects
None yet
Development

No branches or pull requests

3 participants