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...
Now that we have a cache tier configured, we need to set some recommended configuration options for the cache pool:
- If looking to use a cache-tier in a production deployment, you should use the bloom filters data structure after careful review of the cache-tier considerations:
# ceph osd pool set cache-pool hit_set_type bloom
hit_set_count
defines how much time in seconds each hit set should cover, andhit_set_period
defines how many such hit...