erlang-supervisor Questions
4
In GenServer.start_link/3 I can register a name locally using an atom for a process like this:
defmodule Worker do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, nil, name: :...
Indira asked 18/8, 2016 at 7:43
2
Solved
Let's say a supervisor has a child that's continuously failing for some reason. As per restart strategy, it will restart the failing child until it reaches max restart count. What will happen to th...
Louisalouisburg asked 29/12, 2018 at 5:50
1
Solved
I was practicing with this example.
https://github.com/kwmiebach/how-to-elixir-supervisor
I followed the instruction and got the idea of how it works, but I can't understand how Supervisor, GenSer...
Circumscribe asked 18/11, 2018 at 7:52
1
I am trying to terminate whole supervision tree from a supervised worker process. Here is my supervision tree:
+--------------------------+
| |
+--------+ Sup1: Dynamic Supervisor +---------+
...
Anaconda asked 14/11, 2018 at 10:31
1
Solved
I have a supervision tree, for the sake of simplicity let’s say one supervisor (S) holding one worker (W) with :one_for_one strategy.
Under some circumstances, I need to reinitialize W and the eas...
Ludie asked 2/8, 2018 at 10:48
1
I'd like to use erlang's OTP supervisor in a distributed application I'm building. But I'm having trouble figuring out how a supervisor of this kind can monitor a process running on a remote Node. ...
Glenda asked 24/11, 2016 at 17:3
1
Solved
When you use Mix to create an application, it always adds a root supervisor file to the project. Note how the 'child spec' array in the supervise function is empty.
app.ex:
defmodule App.Supervis...
Isolation asked 14/1, 2016 at 17:43
2
Solved
My question is, can one modify the restart intensity thresholds of an already running supervisor, apart from in a release upgrade scenario, and if so, how?
It's never come up before, but running a...
Lots asked 18/10, 2015 at 22:57
1
Solved
I'm really struggling with Elixir supervisors and figuring out how to name them so that I can use them. Basically, I'm just trying to start a supervised Task which I can send messages to.
So I hav...
Katiakatie asked 14/7, 2015 at 1:23
2
Solved
I have a mix project with as simple as possible a Supervisor and GenServer. When I call from iex:
EchoCmd.Supervisor.start_link([:Hello])
GenServer.call(:echoserver, :echo)
GenServer.call(:echoser...
Recent asked 17/11, 2014 at 0:47
1
Solved
I have a gen_server that when started attempts to start a certain number of child processes (usually 10-20) under a supervisor in the supervision tree. The gen_server's init callback invokes superv...
Paring asked 7/11, 2014 at 20:16
1
Solved
I have read an interesting post online where a Google employee discusses that Google would not benefit from Erlang's supervision model because they have built an equivalent supervision model into t...
Ballon asked 7/4, 2014 at 16:29
1
Solved
I'm very new to OTP, I'm trying to create simple example to understand supervisor behaviour:
Here is simple increment server
-module( inc_serv ).
-behaviour( gen_server ).
-export( [ start/0, inc...
Aun asked 23/8, 2012 at 16:34
3
Solved
I'm working through the Erlang documentation, trying to understand the basics of setting up an OTP gen_server and supervisor. Whenever my gen_server crashes, my supervisor crashes as well. In fact,...
Bortz asked 5/5, 2010 at 16:39
2
Solved
I have a supervisor with N worker processes. As usual the supervisor can send a message to a worker process and there is a handle_cast that sends a reply from a worker to the supervisor.
How can I...
Jackhammer asked 20/9, 2011 at 8:21
1
Solved
I have a supervisor which should start simple_one_for_one workers. When I call start_child() for the first time, everything goes excellent. But, when I do it the second time, I get {error,{already_...
Bisulfate asked 23/7, 2011 at 6:19
3
Solved
In all Erlang supervisor examples I have seen yet, there usually is a "master" supervisor who supervises the whole tree (or at least is the root node in the supervisor tree). What if the "master"-s...
Molech asked 18/4, 2011 at 8:33
2
Solved
I'm building a monitoring tool in Erlang. When run on a cluster, it should run a set of data collection functions on all nodes and record that data using RRD on a single "recorder" node.
The curre...
Outdated asked 3/4, 2011 at 19:39
2
Solved
Where can I find example on how to add dynamic child processes to an existing supervisor (simple_one_for_one restart strategy) ?
Camelback asked 29/1, 2011 at 13:48
1
Solved
I have recently become familiar with Erlang/OTP technology and I would like to apply it to monitor and supervise Java applications in terms of:
detecting their availability
starting and stopping ...
Anemophilous asked 13/12, 2010 at 14:57
2
Solved
Are there functions which would allow an OTP process to find the pid of its supervisor?
Vanzandt asked 9/11, 2010 at 9:49
3
Solved
I recently ran into a bug where an entire Erlang application died, yielding a log message that looked like this:
=INFO REPORT==== 11-Jun-2010::11:07:25 ===
application: myapp
exited: shutdown
t...
Sexagenary asked 16/6, 2010 at 15:18
1
Solved
I'm using erlang as a bridge between services and I was wondering what advice people had for handling downed connections?
I'm taking input from local files and piping them out to AMQP and it's con...
Ostend asked 4/6, 2010 at 4:25
2
Solved
What's a good way to persist state when restarting a crashed process?
I have a supervisor in an OTP application what watches several "subsystem" gen_servers.
For example, one is a "weather" subs...
Mondragon asked 10/5, 2009 at 23:34
1
© 2022 - 2024 — McMap. All rights reserved.