{"action":"created","issue":{"url":"https://api.github.com/repos/google/cluster-insight/issues/82","labels_url":"https://api.github.com/repos/google/cluster-insight/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/google/cluster-insight/issues/82/comments","events_url":"https://api.github.com/repos/google/cluster-insight/issues/82/events","html_url":"https://github.com/google/cluster-insight/issues/82","id":88465068,"number":82,"title":"request latency","user":{"login":"EranGabber","id":10833558,"avatar_url":"https://avatars.githubusercontent.com/u/10833558?v=3","gravatar_id":"","url":"https://api.github.com/users/EranGabber","html_url":"https://github.com/EranGabber","followers_url":"https://api.github.com/users/EranGabber/followers","following_url":"https://api.github.com/users/EranGabber/following{/other_user}","gists_url":"https://api.github.com/users/EranGabber/gists{/gist_id}","starred_url":"https://api.github.com/users/EranGabber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EranGabber/subscriptions","organizations_url":"https://api.github.com/users/EranGabber/orgs","repos_url":"https://api.github.com/users/EranGabber/repos","events_url":"https://api.github.com/users/EranGabber/events{/privacy}","received_events_url":"https://api.github.com/users/EranGabber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/cluster-insight/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/google/cluster-insight/labels/priority/P1","name":"priority/P1","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"EranGabber","id":10833558,"avatar_url":"https://avatars.githubusercontent.com/u/10833558?v=3","gravatar_id":"","url":"https://api.github.com/users/EranGabber","html_url":"https://github.com/EranGabber","followers_url":"https://api.github.com/users/EranGabber/followers","following_url":"https://api.github.com/users/EranGabber/following{/other_user}","gists_url":"https://api.github.com/users/EranGabber/gists{/gist_id}","starred_url":"https://api.github.com/users/EranGabber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EranGabber/subscriptions","organizations_url":"https://api.github.com/users/EranGabber/orgs","repos_url":"https://api.github.com/users/EranGabber/repos","events_url":"https://api.github.com/users/EranGabber/events{/privacy}","received_events_url":"https://api.github.com/users/EranGabber/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-06-15T15:48:11Z","updated_at":"2015-06-16T15:05:59Z","closed_at":null,"body":"The elapsed time of the collector fetching data for the first time from a cluster is more than 10 seconds, which seems like an eternity.\r\n\r\nNote that the collector should use parallelism for extract the data, so this may be a bug somewhere."},"comment":{"url":"https://api.github.com/repos/google/cluster-insight/issues/comments/112463521","html_url":"https://github.com/google/cluster-insight/issues/82#issuecomment-112463521","issue_url":"https://api.github.com/repos/google/cluster-insight/issues/82","id":112463521,"user":{"login":"EranGabber","id":10833558,"avatar_url":"https://avatars.githubusercontent.com/u/10833558?v=3","gravatar_id":"","url":"https://api.github.com/users/EranGabber","html_url":"https://github.com/EranGabber","followers_url":"https://api.github.com/users/EranGabber/followers","following_url":"https://api.github.com/users/EranGabber/following{/other_user}","gists_url":"https://api.github.com/users/EranGabber/gists{/gist_id}","starred_url":"https://api.github.com/users/EranGabber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EranGabber/subscriptions","organizations_url":"https://api.github.com/users/EranGabber/orgs","repos_url":"https://api.github.com/users/EranGabber/repos","events_url":"https://api.github.com/users/EranGabber/events{/privacy}","received_events_url":"https://api.github.com/users/EranGabber/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T15:05:59Z","updated_at":"2015-06-16T15:05:59Z","body":"It takes about 1 second for Docker to return the details of this container. This time varies from 0.6 seconds to 1.1 seconds. Note that the \"docker inspect\" command returns over 8 MB of data. Caching at the cluster-insight minion should eliminate the long latency of reading the raw data from Docker.\r\n\r\n$ time sudo docker inspect 5e9a552724da | wc\r\n 109457  109561 8312039\r\n\r\nreal\t0m0.594s\r\nuser\t0m0.268s\r\nsys\t0m0.028s\r\n$ time sudo docker inspect 5e9a552724da | wc\r\n 109458  109562 8312115\r\n\r\nreal\t0m1.104s\r\nuser\t0m0.248s\r\nsys\t0m0.020s\r\n$ time sudo docker inspect 5e9a552724da | wc\r\n 109458  109562 8312115\r\n\r\nreal\t0m0.949s\r\nuser\t0m0.244s\r\nsys\t0m0.016s\r\n$ time sudo docker inspect 5e9a552724da | wc\r\n 109458  109562 8312115\r\n\r\nreal\t0m0.648s\r\nuser\t0m0.272s\r\nsys\t0m0.008s\r\n"}}