Is it possible to disable file caching when using EFS with Lambda?

0

Accessing a file concurrently on EFS does not seem to be working as expected. Specifically, any writes to a file does not appear to be read the same from two different Lambda environments.

  • Two Lambda function invocations read the same file on an EFS volume concurrently (different execution environments), they see the same data.
  • Function 1 updates the file and closes the file. Function 1 reads the file and sees the updated data.
  • Function 2 reads the file again, but reads stale data (from nfs cache setting?).

How do I ensure that all function invocations see the newly written data in the file?

  • Looks like I need to set mount options for the NFS client, specifically noac, but I'm not seeing any documentation on how to set NFS mount options with Lambda.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠