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

Make auto-forwarding serialized and parallel #189

Merged
merged 2 commits into from
Apr 8, 2021
Merged

Conversation

greensky00
Copy link
Contributor

@greensky00 greensky00 commented Mar 31, 2021

@alesapin
Copy link
Contributor

alesapin commented Apr 1, 2021

BTW, I've added RPC timeouts to my fork https://github.com/ClickHouse-Extras/NuRaft/pull/5/files. If this solution looks ok then let me know and I'll create a PR.

@greensky00
Copy link
Contributor Author

Thanks @alesapin , please go ahead and create a PR. This PR needs to be adapted a bit more for efficiency by having a request queue for async mode.

* Added a new parameter `auto_forwarding_max_connections_`, and
auto-forwarding can be parallelized up to this number.

* Raft server is actively managing the RPC client so as to avoid
the race on the same connection.
@greensky00 greensky00 merged commit 542c328 into eBay:master Apr 8, 2021
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.

2 participants