hashicorp / serf

Service orchestration and management tool.
https://github.com/hashicorp/serf/blob/master/docs/index.html.markdown
Mozilla Public License 2.0
5.89k stars 596 forks source link

Unable to Access Vivaldi Coordinates #730

Open anjumm opened 5 months ago

anjumm commented 5 months ago

Hello, hope everyone is well. I am trying to use Serf and extract network coordinates for each node. However I am unable to find a way to extract them. Can you kindly give me an idea where can we access them? I am using 20 nodes and I have all serf agents connected. I am more interested in getting the coordinates. Appreciate help in advance.

image

tristanmorgan commented 5 months ago

The Serf rtt command is for querying the coordinates system.

$ serf rtt osboxes
Estimated osboxes <-> disboxes rtt: 6.231 ms
anjumm commented 5 months ago

Thank you for guidance. However can we also get the coordinates in 2 dimensions or even more just like how vivaldi works? RTT will give an estimate of latency but I am interested in nodes having virtual coordinates. These coordinates can then give an idea which nodes are closer.

max19931 commented 3 weeks ago

The other option is RPC "get-coordinate"!

Also check out: docs/internals/coordinates.html.markdown especially the "Working with Coordinates" part!