Add an example for leader election based multiple controller
This commit is contained in:
parent
658b7448da
commit
ce56d2b7be
14 changed files with 242 additions and 0 deletions
9
examples/leader_example/config/node1.exs
Normal file
9
examples/leader_example/config/node1.exs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
use Mix.Config
|
||||
|
||||
config :tres,
|
||||
protocol: :tcp,
|
||||
port: 6653,
|
||||
max_connections: 10,
|
||||
num_acceptors: 10,
|
||||
callback_module: LeaderExample.Leader,
|
||||
callback_args: []
|
||||
Loading…
Add table
Add a link
Reference in a new issue