Configuring a cache tier

A cache tier has several configuration options that define the cache tier policy. This cache tier policy is required to flush data from the cache tier to the storage tier in case of a writeback. In the case of the read-only cache tier, it moves the data from the storage tier to the cache tier. In this recipe, I have tried to demonstrate the cache tier with the writeback mode. These are some settings that you should configure for your production environment, with different values based on your requirements:

How to do it…

  1. For production deployment, you should use the 'bloom filters' data structure:
    # ceph osd pool set cache-pool hit_set_type bloom
    
  2. hit_set_count defines how much time in seconds each hit set should cover, and ...

Get Ceph Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.