[erlang-questions] supervise a python process

Alain O'Dea alain.odea@REDACTED
Fri Feb 11 13:35:29 CET 2011


On 2011-02-11, at 7:41, Roberto Ostinelli <roberto@REDACTED> wrote:

> dear list,
> 
> i need to integrate existing python code with a SOA erlang layer, which
> provides some distribution facilities.
> 
> i'm thinking to use BERT to enable communication between the erlang layer
> and python. the main point to not use ports is that, afaik, that if a python
> port crashes the whole erlang VM goes down, and the point of using erlang
> supervisors to provide fault-tolerancy gets lost.
> 
> therefore, i'm fishing for suggestions on how to enable erlang to somehow
> provide 'supervisor' functionalities for a python process. the first thing
> that came to my mind is opening a TCP connection for the BERT communication
> between an erlang and a python module, so that in case the connection gets
> lost, the python module is instructed to exit while the erlang process
> restarts the python process (probably with a os:cmd/1 command or similar).
> 
> are there already attempts at this i might not be aware of, or any
> additional ideas you might recommend/consider?
> 
> any input welcome.
> 
> thank you,
> 
> r.

Hi Roberto:

It seems like Nokia's http://discoproject.org/ might be useful. It lets Erlang schedule and manage Python jobs in a cluster.

Cheers,
Alain


More information about the erlang-questions mailing list