Add raft component to general config file for experiments.

This commit is contained in:
Michael Pivato
2019-03-01 15:50:14 +10:30
parent a8f857622f
commit 3d0c4077a3

View File

@@ -5,5 +5,30 @@
"port":1883, "port":1883,
"timeout":60, "timeout":60,
"swarm": "swarm1" "swarm": "swarm1"
},
"raft":
{
"min_election_timeout": 8,
"varying_election_timeout": 2,
"majority": 2
},
"messaging":
{
"me":
{
"ip": "127.0.0.1",
"port": 50051
},
"neighbours":
[
{
"ip": "127.0.0.1",
"port": 50052
},
{
"ip": "127.0.0.1",
"port": 50053
}
]
} }
} }