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

Add a mechanism for the dynamic update of partition-host mapping to the PartitionRouter (PartitionedMirrorClient) #39

Closed
DawidNiezgodka opened this issue Jun 29, 2022 · 0 comments · Fixed by #46
Assignees
Labels

Comments

@DawidNiezgodka
Copy link
Contributor

DawidNiezgodka commented Jun 29, 2022

Currently we fetch information about the partition-host mapping once during the initialisation of the PartitionRouter. Should the mapping change, for example because of the addition of another replica, some cache-misses will occur as there is no update-mechanism. Thus, it is advisable to introduce such a mechanism, i.e. the possibility to update the mapping dynamically.

A possible approach:

  1. If there is a host-miss, the request is forwarded to the correct replica without any error,
  2. In addition, a prompt to update the cache is written into a header,
  3. The gateway uses this info to forward it to the router which reinits (updates) the mapping.
@DawidNiezgodka DawidNiezgodka self-assigned this Jun 29, 2022
@torbsto torbsto added this to Quick Aug 1, 2022
@torbsto torbsto moved this to In-Review in Quick Aug 1, 2022
@torbsto torbsto linked a pull request Aug 1, 2022 that will close this issue
@torbsto torbsto added this to the Improved Gateway performance milestone Aug 1, 2022
Repository owner moved this from In-Review to Done in Quick Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants