supervise a python process
Roberto Ostinelli
roberto@REDACTED
Fri Feb 11 12:11:36 CET 2011
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.
More information about the erlang-questions
mailing list