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

[Failover][BugFix] Fix duplicate requests caused by failover #18

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

s5u13b
Copy link
Contributor

@s5u13b s5u13b commented Aug 27, 2024

Currently, when Llumnix finds manager/instance unavailable when generating a request, the request is regenerated because Llumnix cannot know whether the request is successfully dispatched into instance. However, this could bring duplicate requests in instances. Duplicate requests mean that two requests will continuously output to the user at the same time, which is quite terrible behavior. However, duplicate requests are hard to detect and intercept by api server unless comparing the output prompts of requests. But this will cause innegligible cost in the critical path of processing outputs. Considering the low possibility of manager/instance unavailable when generating a request, we choose not to re-generate the request, and user can find the request failed when timeout, which is consistent with other failover cases.

@s5u13b s5u13b changed the title [Failover][BugFix] Fix duplicate requests cause by failover [Failover][BugFix] Fix duplicate requests caused by failover Aug 29, 2024
@s5u13b s5u13b merged commit 30b5bf8 into main Aug 29, 2024
4 checks passed
@s5u13b s5u13b deleted the fix-failover branch August 29, 2024 07:28
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

Successfully merging this pull request may close these issues.

4 participants