Amber: Unexpected behavior on Cluster mode

Created on 16 Jun 2018  路  5Comments  路  Source: amberframework/amber

Description

If I run an amber app with process_count: 2 I get 3 processes. This is unexpected :sweat_smile:

Steps to Reproduce

  1. Run an amber app with process_count: 2 in background (ex: using a service)
  2. use ps aux to 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

screenshot_20180616_112114

bug help-wanted

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

faustinoaq picture faustinoaq  路  4Comments

conradwt picture conradwt  路  3Comments

jaysneg picture jaysneg  路  5Comments

faustinoaq picture faustinoaq  路  7Comments

netwarp picture netwarp  路  6Comments