Tuesday 5 March 2019

serf

 Ref: https://www.serf.io/intro/getting-started/agent.html
Running multiple serf agents

serf agent -bind=127.0.0.1:1010 -rpc-addr=127.0.0.1:7373 -node=y1
serf agent -bind=127.0.0.1:1011 -rpc-addr=127.0.0.1:7374 -node=y2
serf agent -bind=127.0.0.1:1012 -rpc-addr=127.0.0.1:7375 -node=y3
serf agent -bind=127.0.0.1:1013 -rpc-addr=127.0.0.1:7377 -node=y4




 join in the cluster

serf join 127.0.0.1:1011
serf join 127.0.0.1:1012
serf join 127.0.0.1:1013

serf members











C:\Users\ycs-gbs\go\bin>serf leave -rpc-addr=127.0.0.1:7373
Graceful leave complete

1 comment: