gohbase
gohbase copied to clipboard
avoid cache avalanche
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.
This looks similar to https://github.com/tsuna/gohbase/pull/164, not in the implementation but in what it tries to do.
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.