Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Commit

Permalink
0.3.1 and bootstrap expect
Browse files Browse the repository at this point in the history
  • Loading branch information
progrium committed Aug 20, 2014
1 parent f7513e2 commit e56ee0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM progrium/busybox
MAINTAINER Jeff Lindsay <[email protected]>

ADD https://dl.bintray.com/mitchellh/consul/0.3.0_linux_amd64.zip /tmp/consul.zip
ADD https://dl.bintray.com/mitchellh/consul/0.3.1_linux_amd64.zip /tmp/consul.zip
RUN cd /bin && unzip /tmp/consul.zip && chmod +x /bin/consul && rm /tmp/consul.zip

ADD https://dl.bintray.com/mitchellh/consul/0.3.0_web_ui.zip /tmp/webui.zip
ADD https://dl.bintray.com/mitchellh/consul/0.3.1_web_ui.zip /tmp/webui.zip
RUN cd /tmp && unzip /tmp/webui.zip && mv dist /ui && rm /tmp/webui.zip

RUN opkg-install curl bash
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ And the third host with an IP of 10.0.1.3:

Once the third host is running, you want to go back to the second host, kill the container, and run it again just as before but without the `-bootstrap` flag. You'd then have a full cluster running in production on a private network.

There is currently an issue when you restart the bootstrap node as a new container with the same publish IP that will cause heartbeats to fail and the node will flap. This is because of an ARP table cache problem. If you wait about 3-5 minutes before starting again, it should work fine. This issue will be dissolved with the "auto-bootstrapping" capability of Consul 0.4.0.
There is currently an issue when you restart the bootstrap node as a new container with the same published ports that will cause heartbeats to fail and the node will flap. I believe this is because of an ARP table caching problem. If you wait about 3 minutes before starting again, it should work fine. This issue will be dissolved with the "auto-bootstrapping" capability of Consul 0.4.0.

## Opinionated Configuration

Expand Down
2 changes: 1 addition & 1 deletion start
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cmd-run() {

IFS=':' read external_ip join_ip <<< "${ip_def/::/:}"
if [[ -z "$join_ip" ]]; then
run_mode="-bootstrap"
run_mode="-bootstrap-expect 3"
else
run_mode="-join $join_ip"
fi
Expand Down

0 comments on commit e56ee0d

Please sign in to comment.