hashicorp / hashicorp/consul

registered with client and replicated

Open
#6,985 1 comment 0 reactions 0 assignees View on GitHub
type/question
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

I am just started playing with consul, I have setup a 3 server,1 client cluster, the three servers joined each other, and elected a leader.

I am using this for service discovery, and registered the services by client node,but the services are not forwarded to server by rpc ,they stored on the client node。

In addition, when I am registered the services with one of the follower servers in the cluster.However the data is not getting replicated to other servers in the cluster.

server1:
consul agent -server -ui -bind=172.17.3.1 -data-dir /data/consul -node=server1 -client=0.0.0.0 -bootstrap-expect=3
server2:
consul agent -server -ui -bind=172.17.3.2 -data-dir /data/consul -node=server2 -client=0.0.0.0 -join 172.17.3.1
server3:
consul agent -server -ui -bind=172.17.3.3 -data-dir /data/consul -node=server3 -client=0.0.0.0 -join 172.17.3.1
client:
consul agent -ui -bind=172.17.3.4 -data-dir /data/consul -node=client1 -client=0.0.0.0 -join 172.17.3.1

consul members:
Node Address Status Type Build Protocol DC Segment
server1 172.17.3.1:8301 alive server 1.6.2 2 dc1
server2 172.17.3.2:8301 alive server 1.6.2 2 dc1
server3 172.17.3.3:8301 alive server 1.6.2 2 dc1
client1 172.17.3.4:8301 alive client 1.6.2 2 dc1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.