Project

General

Profile

Actions

Support #64021

open

CephFS first read after write:

Added by Nishit Khosla 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Performance/Resource Usage
Target version:
-
% Done:

0%

Tags:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

We are working with k8s and implemented cephfs. We have an application that scales out with replica pods and mounts the same PVC in different replica pods running on different worker nodes. As per observation, if there is only 1 pod reading/writing to cephfs, then we are able to achieve first read from client cache after write. However, when the pods are scaled up (i.e. replica > 1), then it is observed that after writing file(different pod writting to different files) to CephFS from a k8s pod, the first read from the same pod is not served from the client cache. This is degrading the read performance while scaling. What setting can be done to achieve the first reads to be served from the client cache as long as data is available in cache if the file is written from same pod?

We were looking at client capabilities but could not find a way to modify capabilities provided by MDS to ceph client to read from client cache.

Actions

Also available in: Atom PDF