{"action":"created","issue":{"url":"https://api.github.com/repos/lokalebasen/central_settings_client/issues/13","repository_url":"https://api.github.com/repos/lokalebasen/central_settings_client","labels_url":"https://api.github.com/repos/lokalebasen/central_settings_client/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/lokalebasen/central_settings_client/issues/13/comments","events_url":"https://api.github.com/repos/lokalebasen/central_settings_client/issues/13/events","html_url":"https://github.com/lokalebasen/central_settings_client/pull/13","id":132751815,"number":13,"title":"Increase data-fetch timeout","user":{"login":"SqREL","id":154947,"avatar_url":"https://avatars.githubusercontent.com/u/154947?v=3","gravatar_id":"","url":"https://api.github.com/users/SqREL","html_url":"https://github.com/SqREL","followers_url":"https://api.github.com/users/SqREL/followers","following_url":"https://api.github.com/users/SqREL/following{/other_user}","gists_url":"https://api.github.com/users/SqREL/gists{/gist_id}","starred_url":"https://api.github.com/users/SqREL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SqREL/subscriptions","organizations_url":"https://api.github.com/users/SqREL/orgs","repos_url":"https://api.github.com/users/SqREL/repos","events_url":"https://api.github.com/users/SqREL/events{/privacy}","received_events_url":"https://api.github.com/users/SqREL/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-10T16:37:59Z","updated_at":"2016-02-10T16:51:21Z","closed_at":"2016-02-10T16:50:27Z","pull_request":{"url":"https://api.github.com/repos/lokalebasen/central_settings_client/pulls/13","html_url":"https://github.com/lokalebasen/central_settings_client/pull/13","diff_url":"https://github.com/lokalebasen/central_settings_client/pull/13.diff","patch_url":"https://github.com/lokalebasen/central_settings_client/pull/13.patch"},"body":"Everything is ok except timeout.\r\n\r\nThe error looks random because it happens only if `central-settings` is \"cold\".\r\nAfter doing some benchmarking i found out, that on my machine fetching and parsing data using cold `central-settings` took ~ 0.7sec, and when app is heated up ~ 0.3 sec.\r\n\r\nI made timeout 1.5 sec because i don't know how to scale my machine to the production one, but i think it's okay to have a large timeout, because as far as i know we fetch settings only on startup."},"comment":{"url":"https://api.github.com/repos/lokalebasen/central_settings_client/issues/comments/182475849","html_url":"https://github.com/lokalebasen/central_settings_client/pull/13#issuecomment-182475849","issue_url":"https://api.github.com/repos/lokalebasen/central_settings_client/issues/13","id":182475849,"user":{"login":"SqREL","id":154947,"avatar_url":"https://avatars.githubusercontent.com/u/154947?v=3","gravatar_id":"","url":"https://api.github.com/users/SqREL","html_url":"https://github.com/SqREL","followers_url":"https://api.github.com/users/SqREL/followers","following_url":"https://api.github.com/users/SqREL/following{/other_user}","gists_url":"https://api.github.com/users/SqREL/gists{/gist_id}","starred_url":"https://api.github.com/users/SqREL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SqREL/subscriptions","organizations_url":"https://api.github.com/users/SqREL/orgs","repos_url":"https://api.github.com/users/SqREL/repos","events_url":"https://api.github.com/users/SqREL/events{/privacy}","received_events_url":"https://api.github.com/users/SqREL/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T16:51:21Z","updated_at":"2016-02-10T16:51:21Z","body":"yes, i'll do this"}}