Now we can crash ggs_coordinator without it affecting the clients.
This commit is contained in:
parent
f6bb2328a1
commit
87df33fd47
4 changed files with 100 additions and 12 deletions
|
@ -26,7 +26,14 @@ init([Port]) ->
|
|||
worker,
|
||||
[ggs_coordinator]
|
||||
},
|
||||
Children = [Dispatcher, Coordinator],
|
||||
Coordinator_backup = {ggs_coordinator_backup,
|
||||
{ggs_coordinator_backup, start_link, []},
|
||||
permanent,
|
||||
2000,
|
||||
worker,
|
||||
[ggs_coordinator_backup]
|
||||
},
|
||||
Children = [Dispatcher, Coordinator_backup, Coordinator],
|
||||
|
||||
RestartStrategy = { one_for_one, % Restart only crashing child
|
||||
10, % Allow ten crashes per..
|
||||
|
|
Reference in a new issue