{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/4068","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/4068/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/4068/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/4068/events","html_url":"https://github.com/hashicorp/consul/issues/4068","id":318852162,"number":4068,"title":"Consul Doubts","user":{"login":"banank1989","id":10813537,"avatar_url":"https://avatars2.githubusercontent.com/u/10813537?v=4","gravatar_id":"","url":"https://api.github.com/users/banank1989","html_url":"https://github.com/banank1989","followers_url":"https://api.github.com/users/banank1989/followers","following_url":"https://api.github.com/users/banank1989/following{/other_user}","gists_url":"https://api.github.com/users/banank1989/gists{/gist_id}","starred_url":"https://api.github.com/users/banank1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banank1989/subscriptions","organizations_url":"https://api.github.com/users/banank1989/orgs","repos_url":"https://api.github.com/users/banank1989/repos","events_url":"https://api.github.com/users/banank1989/events{/privacy}","received_events_url":"https://api.github.com/users/banank1989/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T10:55:05Z","updated_at":"2018-04-30T22:03:44Z","closed_at":null,"author_association":"NONE","body":"I know its not the issue actually but I have some doubts.\r\n\r\na) Are agents single point of failure? What happens when  agent dies?\r\nAs for example I have two boxes A & B, each have 5 java services running,\r\n\r\nNow lets say consul agent on A dies. Now will services of A registers via consul agent of B? How does consul server keeps current state of services of A?\r\n\r\nAlso what about health checkup now? Who will do the health checkup of services on A box?\r\n\r\nb) Considering every thing works fine, how are the health checkup of consul agents(clients & servers) done? I mean agents keep polling services for health checkup. \r\n\r\nc)I want to integrate Consul with haproxy. Is there some documentation how to do that via consul-template."},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/385542551","html_url":"https://github.com/hashicorp/consul/issues/4068#issuecomment-385542551","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/4068","id":385542551,"user":{"login":"jhmartin","id":367824,"avatar_url":"https://avatars3.githubusercontent.com/u/367824?v=4","gravatar_id":"","url":"https://api.github.com/users/jhmartin","html_url":"https://github.com/jhmartin","followers_url":"https://api.github.com/users/jhmartin/followers","following_url":"https://api.github.com/users/jhmartin/following{/other_user}","gists_url":"https://api.github.com/users/jhmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/jhmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhmartin/subscriptions","organizations_url":"https://api.github.com/users/jhmartin/orgs","repos_url":"https://api.github.com/users/jhmartin/repos","events_url":"https://api.github.com/users/jhmartin/events{/privacy}","received_events_url":"https://api.github.com/users/jhmartin/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T22:03:44Z","updated_at":"2018-04-30T22:03:44Z","author_association":"CONTRIBUTOR","body":"The agent is a SPOF for the machine on which it lives. If it dies, the services on the machine will be marked as unavailable for the rest of the environment. It is responsible for performing the healthchecks of the apps on that node as well -- other nodes won't do it.\r\n\r\nb) The agents all healthcheck each other (consul-only), so a loss of a agent will be quickly noticed by the environment.  Everything otherwise health-checks itself.\r\n\r\nc) https://github.com/hashicorp/consul-template should cover that, plus I found http://sirile.github.io/2015/05/18/using-haproxy-and-consul-for-dynamic-service-discovery-on-docker.html#testing-template-generation."}}
{"actor":{"display_login":"jhmartin"}}