Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Velotio - HashiCorp Consul Part 1 - Consul Agent Configuration
$ consul agent -dev -config-dir=./consul.d
==> Starting Consul agent...
==> Consul agent running!
Version: 'v1.4.2'
Node ID: '810f4804-dbce-03b1-056a-a81269ca90c1'
Node name: 'devcube'
Datacenter: 'dc1' (Segment: '<all>')
Server: true (Bootstrap: false)
Client Addr: [127.0.0.1] (HTTP: 8500, HTTPS: -1, gRPC: 8502, DNS: 8600)
Cluster Addr: 127.0.0.1 (LAN: 8301, WAN: 8302)
Encrypt: Gossip: false, TLS-Outgoing: false, TLS-Incoming: false
==> Log data will now stream in as it occurs:
2019/03/04 00:55:28 [DEBUG] agent: Using random ID "810f4804-dbce-03b1-056a-a81269ca90c1" as node ID
2019/03/04 00:55:28 [INFO] raft: Initial configuration (index=1): [{Suffrage:Voter ID:810f4804-dbce-03b1-056a-a81269ca90c1 Address:127.0.0.1:8300}]
2019/03/04 00:55:28 [INFO] raft: Node at 127.0.0.1:8300 [Follower] entering Follower state (Leader: "")
2019/03/04 00:55:28 [INFO] serf: EventMemberJoin: devcube.dc1 127.0.0.1
2019/03/04 00:55:28 [INFO] serf: EventMemberJoin: devcube 127.0.0.1
2019/03/04 00:55:28 [INFO] consul: Adding LAN server devcube (Addr: tcp/127.0.0.1:8300) (DC: dc1)
2019/03/04 00:55:28 [DEBUG] agent/proxy: managed Connect proxy manager started
2019/03/04 00:55:28 [INFO] consul: Handled member-join event for server "devcube.dc1" in area "wan"
2019/03/04 00:55:28 [INFO] agent: Started DNS server 127.0.0.1:8600 (udp)
2019/03/04 00:55:28 [INFO] agent: Started DNS server 127.0.0.1:8600 (tcp)
2019/03/04 00:55:28 [INFO] agent: Started HTTP server on 127.0.0.1:8500 (tcp)
2019/03/04 00:55:28 [INFO] agent: started state syncer
2019/03/04 00:55:28 [INFO] agent: Started gRPC server on 127.0.0.1:8502 (tcp)
2019/03/04 00:55:28 [WARN] raft: Heartbeat timeout from "" reached, starting election
2019/03/04 00:55:28 [INFO] raft: Node at 127.0.0.1:8300 [Candidate] entering Candidate state in term 2
2019/03/04 00:55:28 [DEBUG] raft: Votes needed: 1
2019/03/04 00:55:28 [DEBUG] raft: Vote granted from 810f4804-dbce-03b1-056a-a81269ca90c1 in term 2. Tally: 1
2019/03/04 00:55:28 [INFO] raft: Election won. Tally: 1
2019/03/04 00:55:28 [INFO] raft: Node at 127.0.0.1:8300 [Leader] entering Leader state
2019/03/04 00:55:28 [INFO] consul: cluster leadership acquired
2019/03/04 00:55:28 [INFO] consul: New leader elected: devcube
2019/03/04 00:55:28 [INFO] connect: initialized primary datacenter CA with provider "consul"
2019/03/04 00:55:28 [DEBUG] consul: Skipping self join check for "devcube" since the cluster is too small
2019/03/04 00:55:28 [INFO] consul: member 'devcube' joined, marking health alive
2019/03/04 00:55:28 [DEBUG] agent: Skipping remote check "serfHealth" since it is managed automatically
2019/03/04 00:55:28 [INFO] agent: Synced service "web"
2019/03/04 00:55:28 [DEBUG] agent: Node info in sync
2019/03/04 00:55:29 [DEBUG] agent: Skipping remote check "serfHealth" since it is managed automatically
2019/03/04 00:55:29 [DEBUG] agent: Service "web" in sync
2019/03/04 00:55:29 [DEBUG] agent: Node info in sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.