Hi serf team,
Dan from CodeLingo here. Our @CodeLingoBot found some issues in serf and hashicorp/serf#540 to fix them. Is this useful? Would you like @CodeLingoBot to continue on and fix other issues it's found?
Happy Coding!
Dan & CodeLingo Team
I am trying to create APIs using terraform for cloud(azure/aws/google/others) communication. Let me elaborate it bit more with an example.
I want to create a VM on azure and VM name to be input by user at runtime(like: from POSTMAN) from my API. Once user input the name of VM then it should call terraform behind the scene and create VM.
I am looking to create above workflow . Kindly suggest.
[MessagePackMember(1)]
public Dictionary<string, string> FilterTags;
[MessagePackMember(2)]
public bool RequestAck;
[MessagePackMember(3)]
public ulong Timeout;
[MessagePackMember(4)]
public string Name;
[MessagePackMember(5)]
public byte[] Payload;
@the-maldridge as far as I understood while I was reading the Serf code it's intent is just to establish and keep the state of the cluster. On top of that you need to create you're own communication protocol, on my case each node started a HTTP server and this is how they communicate with each other. If you need coordination, then raft can come in.
Maybe with Memberlist, that is a dependency from Serf, should be able to send message to other nodes: https://godoc.org/github.com/hashicorp/memberlist#Memberlist.SendReliable
Unfortunately I was not able to make it work.
Serf is amazing, but it's really lacking examples.
serf
daemon on one node sit there for 100+ msec before getting forwarded to the others. reaction on the issue I opened either. hashicorp/serf#581
Hello people. I am getting to know Serf and understand how it works. I have written a Go code for a client and for an agent. In the agent code, I specify the bind address and port and also the advertise address and port, both bind and advertise points to 0.0.0.0:6666. I start the agent code and see the output "2020/05/05 07:25:35 [INFO] serf: EventMemberJoin: node-a 0.0.0.0" and I also list the members to see if it was added and it was "[{node-a 0.0.0.0 6666 map[] alive 1 5 2 2 5 4}]".
In my client code, I have to specify the RCP address. I know that by default the serf agent runs the RCP service on port 7373 but I cannot find a why of defining the RPC port in my agent code.
Can someone show me what I am doing wrong?
serf agent ...
, I can run my client code and it connects to the RPC client at 127.0.0.1:7373