Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on Vivaldi Coordinates in Serf #761

Open
haarsh85 opened this issue Dec 21, 2024 · 0 comments
Open

Question on Vivaldi Coordinates in Serf #761

haarsh85 opened this issue Dec 21, 2024 · 0 comments

Comments

@haarsh85
Copy link

haarsh85 commented Dec 21, 2024

Hello,

I am reaching out to clarify one issue that I am facing related to Vivaldi coordinates in serf. I kindly seek your guidance if possible.

I have a few nodes running serf and now I need to get the coordinates of these nodes. So far, I have used a custom code to get the coordinates via RPC command get-coordinate and was able to get coordinates of the particular node where I am running the code. For example, if I run the code to get coordinates on node A it only gives the coordinate for node A, but not for other nodes. It only gives the coordinates for single node.

Example output:

"Coord": {
        "Adjustment": 0.005490151789333412,
        "Error": 0.219644087147879,
        "Height": 0.0010579494498964698,
        "Vec": [
            -0.007289323104222218,
            -0.002864383432168282
        ]
    },
    "Ok": true

The problem is I want to have a search algorithm (range query) on any selected node to get all nodes within a certain latency. For example, I want to have a way to get all nodes that are within 10ms from Node A, which needs to give me all the respective nodes. As I think to do this I need to have all the coordinates of other nodes (like a table) in Node A so that I can use this table to get the applicable nodes.

Would it be possible to handle this?

Thank you so much for kind assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant