S3 updated, but NFS share on the file gateway is not

0

Hello,
We noticed that when S3 updated, NFS share on file gateway still has an old copy. I know we can force the update, but what needs to be done, so, it work automatically.
Thanks
Egor

질문됨 5년 전606회 조회
3개 답변
0

Egor,

The behavior you reported is as per design. Gateway assumes that all the write activity to the S3 occurs through itself. If you have workflow that writes to S3 directly, then you need to use the RefreshCache API to trigger the gateway to read the latest from the S3 bucket associated with the FileShare.

Please refer to the following links. We made an enhancement to the RefreshCache API recently to be able to specify list of folders instead of the root of the bucket.

https://docs.aws.amazon.com/storagegateway/latest/userguide/managing-gateway-file.html#refresh-cache
https://docs.aws.amazon.com/storagegateway/latest/APIReference/API_RefreshCache.html

Shashi

AWS
답변함 5년 전
0

Shashi,
Do you have code examples that done the refresh? Do you recommend to use lambda to update on schedule? or something else?
Egor

답변함 5년 전
0

Egor,

It depends on your workflow and how frequently objects are getting uploaded to S3 and how soon you need to access those objects through Storage Gateway. If you control the workflow that uploads the objects to S3, you can make it invoke the RefreshCache API through the AWS CLI/SDK at logical points (e.g: Uploading data in a folder) after a upload is complete. Alternately you can use Lambda to invoke the API on schedule.

To reduce the processing associated with the RefreshCache API specify the folder list when possible. At any point, Gateway only accepts two RefreshCache API requests. If you send a 3rd request while two requests are pending, it will be rejected with error "ThrottlingException".

Shashi

AWS
답변함 5년 전

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

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

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

관련 콘텐츠