amber
amber copied to clipboard
Unexpected behavior on Cluster mode
Description
If I run an amber app with process_count: 2 I get 3 processes. This is unexpected :sweat_smile:
Steps to Reproduce
- Run an amber app with
process_count: 2in background (ex: using a service) - use
ps auxto see how many app processes are forked
Expected behavior: 2 processes are forked
Actual behavior: 3 processes are forked
Reproduces how often: 100%
Versions
amber v0.7.2
Additional Information

Lets pair on this when you have time. Cause I unable to reproduce this.
I think we need a server_end and server_start event listeners so we can kill stuff in the background. What I think is happening is that some processes are not kill properly.
@eliasjpr I added a screenshot, This only happens when I add use process_count: 2,
IMO this is a minor issue. I just wanted to track it :sweat_smile:
@eliasjpr Also if you notice the processes are being killed properly (see PIDs)
Hi. I run into a similar issue and had to use a temporary solution. Here is my pull request for the Which is the fastest? project: [Crystal] Temporarily fix multi-processing mode of Amber server #1392 just now.
We can now compile amber using the -Dpreview_mt flag to enable multi thread. I have tested this and it works.
See issue #1148
Since there has been no feedback on this issue in several years and a workaround has been provided, we can safely close it. The child issue has been resolved as well.