{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/4945","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/4945/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/4945/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/4945/events","html_url":"https://github.com/hashicorp/consul/issues/4945","id":379743457,"node_id":"MDU6SXNzdWUzNzk3NDM0NTc=","number":4945,"title":"have a tag to detect consul leader: leader.consul.service.consul","user":{"login":"maxadamo","id":1710103,"node_id":"MDQ6VXNlcjE3MTAxMDM=","avatar_url":"https://avatars1.githubusercontent.com/u/1710103?v=4","gravatar_id":"","url":"https://api.github.com/users/maxadamo","html_url":"https://github.com/maxadamo","followers_url":"https://api.github.com/users/maxadamo/followers","following_url":"https://api.github.com/users/maxadamo/following{/other_user}","gists_url":"https://api.github.com/users/maxadamo/gists{/gist_id}","starred_url":"https://api.github.com/users/maxadamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxadamo/subscriptions","organizations_url":"https://api.github.com/users/maxadamo/orgs","repos_url":"https://api.github.com/users/maxadamo/repos","events_url":"https://api.github.com/users/maxadamo/events{/privacy}","received_events_url":"https://api.github.com/users/maxadamo/received_events","type":"User","site_admin":false},"labels":[{"id":64219393,"node_id":"MDU6TGFiZWw2NDIxOTM5Mw==","url":"https://api.github.com/repos/hashicorp/consul/labels/enhancement","name":"enhancement","color":"c5def5","default":true},{"id":261101470,"node_id":"MDU6TGFiZWwyNjExMDE0NzA=","url":"https://api.github.com/repos/hashicorp/consul/labels/waiting-reply","name":"waiting-reply","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-12T11:54:04Z","updated_at":"2018-11-12T13:20:22Z","closed_at":null,"author_association":"NONE","body":"#### Feature Description\r\n\r\nLet's assume we have `consul.service.consul`\r\nIt would be handy a tag the will return: `leader.consul.service.consul`\r\n\r\n#### Use Case(s)\r\n\r\n- no need to query APIs to get the leader.\r\n- writing directly to leader avoiding the stale slave entries. \r\n- maybe handy to put the leader behind haproxy/nginx\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/437877103","html_url":"https://github.com/hashicorp/consul/issues/4945#issuecomment-437877103","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/4945","id":437877103,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzg3NzEwMw==","user":{"login":"maxadamo","id":1710103,"node_id":"MDQ6VXNlcjE3MTAxMDM=","avatar_url":"https://avatars1.githubusercontent.com/u/1710103?v=4","gravatar_id":"","url":"https://api.github.com/users/maxadamo","html_url":"https://github.com/maxadamo","followers_url":"https://api.github.com/users/maxadamo/followers","following_url":"https://api.github.com/users/maxadamo/following{/other_user}","gists_url":"https://api.github.com/users/maxadamo/gists{/gist_id}","starred_url":"https://api.github.com/users/maxadamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxadamo/subscriptions","organizations_url":"https://api.github.com/users/maxadamo/orgs","repos_url":"https://api.github.com/users/maxadamo/repos","events_url":"https://api.github.com/users/maxadamo/events{/privacy}","received_events_url":"https://api.github.com/users/maxadamo/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T13:20:22Z","updated_at":"2018-11-12T13:20:22Z","author_association":"NONE","body":"thanks for your prompt reply. \r\nIn the past I've tried to implement Consul as a backend to Hiera with Puppet. \r\nThe problem with it, is that it was too slow (tremendously slow) and I had to switch to Redis. \r\nMy impression (correct me if I'm wrong) is that every time I was hitting a \"slave\" (I know it's not a slave, but allow me to use the word for simplicity :) ), the slave was contacting the leader to ensure that this entry was not stale. \r\nI don't really know if that was the only problem, maybe my redis is also faster because I'm using the Unix socket (p.s.: would it be an option, to add Unix socket to the linux version of consul? I could raise another request... in this case I could add a cluster member locally and connect through the socket)"}}
{"actor":{"display_login":"maxadamo"}}