-
Notifications
You must be signed in to change notification settings - Fork 155
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
Parallel access to same file locked #907
Comments
This is because of the attempt to fix the issue when multiple clients reading the same object without disk cache #433
I will try to fix the issue, fallback to parallel fetching when there is no disk cache. |
SGTM. |
I agree with your idea. |
Yes, got it, thank you! Could you also clarify if i understand correctly. If disk cache enabled and empty, 2 clients(1 with slow connection and 2nd with fast connection) at same time try to obtain same large file, and slow client start downloading first, does it mean that 2nd(fast) client now limited in downloading speed that has 1st client and need to wait until 1st client fill up cache with this file, right ? |
@Tremax Yes that's true, it depends on the rate of the 1st client. Just to clarify, 2nd client would not wait until the whole file is cached, it would read from the disk cache as long as there is new data. But yes, if 1st client has a slow connection, it would be the bottleneck. Something we may consider optimizing it. |
@Tremax Please help to test it again with the develop branch and see if the problem persists. |
Will check fix this weekend. |
Just checked with develop branch and was able to download same file from separate client instances. Seems to be resolved. |
@Tremax thanks for testing |
Setup Leofs cluster with 3 storage nodes and upload large file(1GB) to cluster -- all works just fine for uploading/downloading with 1 client. But once 2 separate downloads started of same file(i use s3cmd), 2nd one waiting until 1st one not finish downloading, no upload process running while downloading.
Noting strange in log. I also try to sniff traffic for 2nd client and it is hangs in GET request to file until s3cmd timeout occurred.
Config of cluster:
On storage side almost all config by default.
Parallel access to same file possible without blocking ?
The text was updated successfully, but these errors were encountered: