-
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
[leo_gateway] Reduce network traffic between leo_gateway and leo_storage #325
Comments
I take over this issue and will implement based on https://github.com/leo-project/leo_gateway/pull/20/files and https://github.com/leo-project/leo_tran |
@mocchira This fix seems blocking others until the whole object is sent to the client. This also causes part of the problem with Issue #429 With code Indeed, It would guarantee only one 'thread' would retrieve the object from |
@windkit it's currently working as you described above. |
@mocchira Oh, I misunderstood the flow, sorry for that (miss the I got this error with my testing though, it seems to happen when no disk cache is configured?
|
@windkit This error has happened at the above line.
might be. |
@mocchira Yep, I have tested with disk cache configured and it works fine and as expected :) Client can read the partial disk cache. But should we fix this as user may not use disk cache? |
@windkit yep. please file as another issue. |
Filed as #433 |
@windkit thanks! |
Problem
When
What happen
Solution
There are some rooms to reduce network traffic between leo_gateway and leo_storage(s) by tracking ongoing requests.
For example,
If there is a request already trying to retrieve the same key and the object size is larger than a specified threshold and the built-in cache mechanism is enabled then
waiting for the request and after finishing the request,
go forward with the cache on leo_gateway.
The text was updated successfully, but these errors were encountered: