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

New unit/stress test for separate down-and up-queues #168

Open
belaban opened this issue May 5, 2022 · 0 comments
Open

New unit/stress test for separate down-and up-queues #168

belaban opened this issue May 5, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@belaban
Copy link
Member

belaban commented May 5, 2022

Add a stress test to RaftTest: the leader should call setAsync() 1M times; this mimics a stress test where the sender uses an async API (e.g. AsyncCounter) and does not use thenCombine() on the returned CompletionStage, but instead adds it to a list and joins all completion stages at the end of the test.

This should show the following issues:

  • The max size of processing_queue (default: 9182) will be reached immediately by the sender, filling the queue with DownRequests
  • UpRequests are far and few between, and will be handled very infrequently, as the sender always fills the queue
  • The problem is that UpRequests are acks from followers, so pending requests will not be able to finish for a long time, possibly timing out

A possible solution (separate issue) would be to create 2 queues: a down- and an up-queue. The up-queue would always have to be processed first, in order to not starve up-requests. Note that this issue exists only on the leader, as followers have no elements in the down-queue.

@belaban belaban added the Task label May 5, 2022
@belaban belaban added this to the 1.0.9 milestone May 5, 2022
@belaban belaban self-assigned this May 5, 2022
@belaban belaban changed the title New unit/stress test New unit/stress test for separate down-and up-queues May 9, 2022
@belaban belaban modified the milestones: 1.0.9, 1.0.10, 1.0.11 May 19, 2022
@jabolina jabolina modified the milestones: 1.0.11, 1.0.12 May 10, 2023
@jabolina jabolina modified the milestones: 1.0.12, 1.0.13 Nov 21, 2023
@jabolina jabolina modified the milestones: 1.0.13, 1.0.14 Aug 11, 2024
@jabolina jabolina modified the milestones: 1.0.14, 1.0.15 Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants