{"action":"created","issue":{"url":"https://api.github.com/repos/leo-project/leofs/issues/325","labels_url":"https://api.github.com/repos/leo-project/leofs/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/leo-project/leofs/issues/325/comments","events_url":"https://api.github.com/repos/leo-project/leofs/issues/325/events","html_url":"https://github.com/leo-project/leofs/issues/325","id":60047906,"number":325,"title":"[leo_gateway] Reduce network traffic between leo_gateway and leo_storage","user":{"login":"mocchira","id":279052,"avatar_url":"https://avatars.githubusercontent.com/u/279052?v=3","gravatar_id":"","url":"https://api.github.com/users/mocchira","html_url":"https://github.com/mocchira","followers_url":"https://api.github.com/users/mocchira/followers","following_url":"https://api.github.com/users/mocchira/following{/other_user}","gists_url":"https://api.github.com/users/mocchira/gists{/gist_id}","starred_url":"https://api.github.com/users/mocchira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mocchira/subscriptions","organizations_url":"https://api.github.com/users/mocchira/orgs","repos_url":"https://api.github.com/users/mocchira/repos","events_url":"https://api.github.com/users/mocchira/events{/privacy}","received_events_url":"https://api.github.com/users/mocchira/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/leo-project/leofs/labels/Improve","name":"Improve","color":"FFA500"},{"url":"https://api.github.com/repos/leo-project/leofs/labels/Priority-MIDDLE","name":"Priority-MIDDLE","color":"fef2c0"},{"url":"https://api.github.com/repos/leo-project/leofs/labels/_leo_gateway","name":"_leo_gateway","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"mocchira","id":279052,"avatar_url":"https://avatars.githubusercontent.com/u/279052?v=3","gravatar_id":"","url":"https://api.github.com/users/mocchira","html_url":"https://github.com/mocchira","followers_url":"https://api.github.com/users/mocchira/followers","following_url":"https://api.github.com/users/mocchira/following{/other_user}","gists_url":"https://api.github.com/users/mocchira/gists{/gist_id}","starred_url":"https://api.github.com/users/mocchira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mocchira/subscriptions","organizations_url":"https://api.github.com/users/mocchira/orgs","repos_url":"https://api.github.com/users/mocchira/repos","events_url":"https://api.github.com/users/mocchira/events{/privacy}","received_events_url":"https://api.github.com/users/mocchira/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/leo-project/leofs/milestones/41","html_url":"https://github.com/leo-project/leofs/milestones/1.4.0-pre2","labels_url":"https://api.github.com/repos/leo-project/leofs/milestones/41/labels","id":1135016,"number":41,"title":"1.4.0-pre2","description":"","creator":{"login":"yosukehara","id":148770,"avatar_url":"https://avatars.githubusercontent.com/u/148770?v=3","gravatar_id":"","url":"https://api.github.com/users/yosukehara","html_url":"https://github.com/yosukehara","followers_url":"https://api.github.com/users/yosukehara/followers","following_url":"https://api.github.com/users/yosukehara/following{/other_user}","gists_url":"https://api.github.com/users/yosukehara/gists{/gist_id}","starred_url":"https://api.github.com/users/yosukehara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosukehara/subscriptions","organizations_url":"https://api.github.com/users/yosukehara/orgs","repos_url":"https://api.github.com/users/yosukehara/repos","events_url":"https://api.github.com/users/yosukehara/events{/privacy}","received_events_url":"https://api.github.com/users/yosukehara/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"closed","created_at":"2015-05-27T01:22:52Z","updated_at":"2015-11-02T01:35:45Z","due_on":"2015-10-30T15:00:00Z","closed_at":"2015-11-02T01:35:45Z"},"comments":9,"created_at":"2015-03-06T02:01:20Z","updated_at":"2015-11-10T07:03:30Z","closed_at":"2015-09-08T05:28:35Z","body":"## Problem\r\n### When\r\n- A cache is EXPIRED\r\n- Its size is very large\r\n- There are lots of concurrent requests trying to retrieve the EXPIRED object\r\n\r\n### What happen\r\n- Massive amount of rpc between leo_gateway and leo_strage will happen then result in causing lots of timeouts\r\n\r\n## Solution\r\nThere are some rooms to reduce network traffic between leo_gateway and leo_storage(s) by tracking ongoing requests.\r\n\r\nFor example, \r\nIf 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\r\nwaiting for the request and after finishing the request, \r\ngo forward with the cache on leo_gateway.\r\n"},"comment":{"url":"https://api.github.com/repos/leo-project/leofs/issues/comments/155331864","html_url":"https://github.com/leo-project/leofs/issues/325#issuecomment-155331864","issue_url":"https://api.github.com/repos/leo-project/leofs/issues/325","id":155331864,"user":{"login":"mocchira","id":279052,"avatar_url":"https://avatars.githubusercontent.com/u/279052?v=3","gravatar_id":"","url":"https://api.github.com/users/mocchira","html_url":"https://github.com/mocchira","followers_url":"https://api.github.com/users/mocchira/followers","following_url":"https://api.github.com/users/mocchira/following{/other_user}","gists_url":"https://api.github.com/users/mocchira/gists{/gist_id}","starred_url":"https://api.github.com/users/mocchira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mocchira/subscriptions","organizations_url":"https://api.github.com/users/mocchira/orgs","repos_url":"https://api.github.com/users/mocchira/repos","events_url":"https://api.github.com/users/mocchira/events{/privacy}","received_events_url":"https://api.github.com/users/mocchira/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T07:03:30Z","updated_at":"2015-11-10T07:03:30Z","body":"@windkit thanks!"}}