Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the file access order? #113

Closed
MomentQYC opened this issue Aug 13, 2024 · 3 comments
Closed

What is the file access order? #113

MomentQYC opened this issue Aug 13, 2024 · 3 comments

Comments

@MomentQYC
Copy link

I noticed that Synapse will store the files locally at the same time, so does Synapse prioritize reading from local, prioritize reading from the S3 service when it needs to read the files, or both? If the latter two, is there any way to change to the first read order?

@erikjohnston
Copy link
Member

Synapse will try to read from the local disk first, and then will try reading from each storage provider (in the order defined in the Synapse config).

@MomentQYC
Copy link
Author

Synapse will try to read from the local disk first, and then will try reading from each storage provider (in the order defined in the Synapse config).

Does Synapse still request files from S3 after reading them locally?

@erikjohnston
Copy link
Member

Synapse will return the file once it's found it, so no it won't try other storage providers (e.g. S3) if the file is found locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants