Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
New version of consul uses http-addr instead of rpc-addr
Browse files Browse the repository at this point in the history
  • Loading branch information
brikis98 committed Sep 19, 2017
1 parent 3daf78e commit 4a1d07a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/consul-examples-helper/consul-examples-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function wait_for_all_consul_servers_to_register {
log_info "Running 'consul members' command against server at IP address $server_ip"
# Intentionally use local and readonly here so that this script doesn't exit if the consul members or grep commands
# exit with an error.
local readonly members=$(consul members -rpc-addr="$server_ip:8400")
local readonly members=$(consul members -http-addr="$server_ip:8500")
local readonly server_members=$(echo "$members" | grep "server")
local readonly num_servers=$(echo "$server_members" | wc -l | tr -d ' ')

Expand Down Expand Up @@ -157,7 +157,7 @@ function print_instructions {
local instructions=()
instructions+=("\nYour Consul servers are running at the following IP addresses:\n\n${server_ips[@]/#/ }\n")
instructions+=("Some commands for you to try:\n")
instructions+=(" consul members -rpc-addr=$server_ip:8400")
instructions+=(" consul members -http-addr=$server_ip:8500")
instructions+=(" consul kv put -http-addr=$server_ip:8500 foo bar")
instructions+=(" consul kv get -http-addr=$server_ip:8500 foo")
instructions+=("\nTo see the Consul UI, open the following URL in your web browser:\n")
Expand Down
2 changes: 1 addition & 1 deletion modules/consul-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Your Consul servers are running at the following IP addresses:
You can use one of these IP addresses with the `members` command to see a list of cluster nodes:

```
> consul members -rpc-addr=11.22.33.44:8400
> consul members -http-addr=11.22.33.44:8500
Node Address Status Type Build Protocol DC
i-0051c3ea00e9691a0 172.31.35.148:8301 alive client 0.8.0 2 us-east-1
Expand Down

0 comments on commit 4a1d07a

Please sign in to comment.