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

Why you using supervisor? #17

Closed
Dezinger opened this issue Mar 26, 2022 · 3 comments
Closed

Why you using supervisor? #17

Dezinger opened this issue Mar 26, 2022 · 3 comments
Labels
question Further information is requested

Comments

@Dezinger
Copy link

Using supervisor in container as main process is bad practice.
It req additional resources, it useless mediator via our app.
Why you not used only octane?

@smortexa smortexa added the question Further information is requested label Mar 27, 2022
@smortexa
Copy link
Member

To manage multiple processes such as Horizon, Scheduler, or any other scripts alongside Octane command in some container modes, we need to use a process manager like supervisord. If the Octane is a single main process, Docker can probably be used to start it. However, in cases like queue:work, we still need to use Supervisor.

The official OpenSwoole/Swoole Docker images also use Supervisor to manage Swoole processes.

@Dezinger
Copy link
Author

Dezinger commented Mar 27, 2022

It break the concept one servicer per contaiter. And may make trouble, for example when second service will always down you d't know about. Just used another container.

https://docs.docker.com/config/containers/multi-service_container/
"It’s ok to have multiple processes, but to get the most benefit out of Docker, avoid one container being responsible for multiple aspects of your overall application."

@smortexa
Copy link
Member

Yeap, but sometimes we need something that doesn't follow the best practice. If you want to have the Horizon dashboard in a queue container, so an HTTP server process is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants