{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/3142","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/3142/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/3142/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/3142/events","html_url":"https://github.com/hashicorp/consul/pull/3142","id":235217484,"number":3142,"title":"Option to set \"stale\" consistency by default for http requests.","user":{"login":"wojtkiewicz","id":11539876,"avatar_url":"https://avatars1.githubusercontent.com/u/11539876?v=3","gravatar_id":"","url":"https://api.github.com/users/wojtkiewicz","html_url":"https://github.com/wojtkiewicz","followers_url":"https://api.github.com/users/wojtkiewicz/followers","following_url":"https://api.github.com/users/wojtkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/wojtkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtkiewicz/subscriptions","organizations_url":"https://api.github.com/users/wojtkiewicz/orgs","repos_url":"https://api.github.com/users/wojtkiewicz/repos","events_url":"https://api.github.com/users/wojtkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/wojtkiewicz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-06-12T12:33:25Z","updated_at":"2017-06-21T08:36:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/consul/pulls/3142","html_url":"https://github.com/hashicorp/consul/pull/3142","diff_url":"https://github.com/hashicorp/consul/pull/3142.diff","patch_url":"https://github.com/hashicorp/consul/pull/3142.patch"},"body":"Hi,\r\nThis PR introduces option to set **stale** consistency by default for **http requests** when client didn't explicitly asked for any consistency in particular. Such behaviour is possible to accomplish using dns endpoint at the moment but not when client is asking using REST api.  \r\n\r\nThis feature is especially useful when consul cluster is used by few hundred micro-services and without using **stale** all requests are handled by cluster leader which doesn't help to scale cluster horizontally. When dealing with lots of services asking every team to specify **stale** consistency explicitly is doable but very impractical.\r\n\r\nThis new feature has to be explicitly turned on. By default nothing is changed in how default consistency is handled.\r\n\r\nSample configuration:\r\n`{\"http_api_stale_by_default\": true}`"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/310007949","html_url":"https://github.com/hashicorp/consul/pull/3142#issuecomment-310007949","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/3142","id":310007949,"user":{"login":"magiconair","id":229005,"avatar_url":"https://avatars0.githubusercontent.com/u/229005?v=3","gravatar_id":"","url":"https://api.github.com/users/magiconair","html_url":"https://github.com/magiconair","followers_url":"https://api.github.com/users/magiconair/followers","following_url":"https://api.github.com/users/magiconair/following{/other_user}","gists_url":"https://api.github.com/users/magiconair/gists{/gist_id}","starred_url":"https://api.github.com/users/magiconair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magiconair/subscriptions","organizations_url":"https://api.github.com/users/magiconair/orgs","repos_url":"https://api.github.com/users/magiconair/repos","events_url":"https://api.github.com/users/magiconair/events{/privacy}","received_events_url":"https://api.github.com/users/magiconair/received_events","type":"User","site_admin":false},"created_at":"2017-06-21T08:36:06Z","updated_at":"2017-06-21T08:36:06Z","body":"Sounds good. Enjoy the conference :)"}}
{"actor":{"display_login":"magiconair"}}