Skip to content

avoid cache avalanche#181

Open
xpineal wants to merge 1 commit into
tsuna:masterfrom
pinealctx:avoid_avalanche
Open

avoid cache avalanche#181
xpineal wants to merge 1 commit into
tsuna:masterfrom
pinealctx:avoid_avalanche

Conversation

@xpineal

@xpineal xpineal commented Feb 10, 2022

Copy link
Copy Markdown

At the beginning of client start, there is no table region info in cache.
If there are many go routine to access a table at same time, they will miss cache and send request package to get table region info.
In this case, too many duplicated requests should be avoid.

At the beginning of client start, there is no table region info in cache.
If there are many go routine to access a table at same time, they will miss cache and send request package to get table region info.
In this case, too many duplicated requests should be avoid.
@dethi

dethi commented Feb 10, 2022

Copy link
Copy Markdown
Collaborator

This looks similar to #164, not in the implementation but in what it tries to do.

@tsuna

tsuna commented Dec 12, 2023

Copy link
Copy Markdown
Owner

Discussed this with @dethi today and after looking at data on our clusters with @aaronbee we decided to add an option to the client to perform a cache warm up during initialization by preloading all entries from meta for tables of interest.

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.

3 participants