<p>So Ceph has a user-space page cache implementation in librbd. Does it allow users to mention how much page cache to allocate to each pod? If yes, can we dynamically change the allocations? </p>

<p>There is no reference to page cache allocation at the POD level according to documentation and issues in the project github.</p>

<blockquote>
  <p>Ceph supports write-back caching for RBD. To enable it, add rbd cache = true to the [client] section of your <code>ceph.conf</code> file. By default <code>librbd</code> does not perform any caching. Writes and reads go directly to the storage cluster, and writes return only when the data is on disk on all replicas. With caching enabled, writes return immediately, unless there are more than <code>rbd cache max dirty</code> unflushed bytes. In this case, the write triggers writeback and blocks until enough bytes are flushed.</p>
</blockquote>

<p>This are the currently supported RDB Cache parameters and they must be inserted in the client section of your <code>ceph.conf</code> file:</p>

<p><strong><code>rbd cache</code></strong> = The RBD cache size in bytes. | <em>Type: Boolean, Required: No, Default: false</em></p>

<p><strong><code>rbd cache size</code></strong> = Enable caching for RADOS Block Device (RBD). | <em>Type: 64-bit Integer, Required: No, Default: 32 MiB</em></p>

<p><strong><code>rbd cache max dirty</code></strong> = The <code>dirty</code> limit in bytes at which the cache triggers write-back. | If <code>0</code>, uses write-through caching.
<em>Type: 64-bit Integer, Required: No, Constraint: Must be less than <code>rbd cache size</code>, Default: 24 MiB</em></p>

<p><strong><code>rbd cache target dirty</code></strong> = The  <code>dirty target</code>  before the  cache  begins writing data to the data storage. Does not block writes to the cache. | <em>Type: 64-bit Integer, Required: No, Constraint: Must be less than <code>rbd cache max dirty</code>, Default: 16 MiB</em></p>

<p><strong><code>rbd cache max dirty age</code></strong> = The number of seconds dirty data is in the  cache  before writeback starts. | <em>Type: Float, Required: No, Default: 1.0</em>
rbd  cache  max  dirty  age</p>

<p><strong><code>rbd cache writethrough until flush</code></strong> = Start out in write-through mode, and switch to write-back after the first flush request is received. Enabling this is a conservative but safe setting in case VMs running on rbd are too old to send flushes, like the virtio driver in Linux before 2.6.32. | <em>Type: Boolean, Required: No, Default: false</em></p>
