You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2019/09/26 06:34:54 UTC

[GitHub] [zookeeper] hanm opened a new pull request #1098: ZOOKEEPER-3560: Add response cache to serve get children (2) requests.

hanm opened a new pull request #1098: ZOOKEEPER-3560: Add response cache to serve get children (2) requests.
URL: https://github.com/apache/zookeeper/pull/1098
 
 
   ZOOKEEPER-3180 introduces response cache but it only covers getData requests. This commit is to extend the response cache based on the infrastructure set up by ZOOKEEPER-3180 to so the response of get children requests can also be served out of cache. Some design decisions:
   
   * Only OpCode.getChildren2 is supported, as OpCode.getChildren does not have associated stats and current cache infra relies on stats to invalidate cache.
   
   * The children list is stored in a separate response cache object so it does not pollute the existing data cache that's serving getData requests, and this separation also allows potential separate tuning of each cache based on workload characteristics.
   
   * As a result of cache object separation, new server metrics is added to measure cache hit / miss for get children requests, that's separated from get data requests.
   
   Similar as ZOOKEEPER-3180, the get children response cache is enabled by default, with a default cache size of 400, and can be disabled (together with get data response cache.).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services