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

Prioritize writer node for write operations #16

Open
agentile opened this issue Apr 8, 2021 · 0 comments
Open

Prioritize writer node for write operations #16

agentile opened this issue Apr 8, 2021 · 0 comments
Labels
wontfix This will not be worked on

Comments

@agentile
Copy link

agentile commented Apr 8, 2021

Description

Currently, I am avoiding using this library, as I want to be able to prioritize write operations to go directly to the leader node (if we have a healthy one). Right now it seems the only logic that happens when making API requests, is retry logic to make sure there is a healthy node, which is good, but it also means writes can go to a follower node, which is inefficient and then has to be redirected to the writer node.

Expected Behavior

Node class should encapsulate whether or not a node is the writer. Ideally this would be cached from the /debug endpoint 'state=1' value. If there is a healthy writer node available, use it for write operations to a collection.

Metadata

Typsense Version: 0.19

OS: Linux

@jasonbosco jasonbosco added the wontfix This will not be worked on label Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants