Comments (12)
Not initially. You can after it's started using the API. What is the
scenario?
On Wednesday, October 15, 2014, Yaron Rosenbaum [email protected]
wrote:
Hi
Is it possible to -join multiple ips?
β
Reply to this email directly or view it on GitHub
#27.
Jeff Lindsay
http://progrium.com
from docker-consul.
For us it would be a self-assembling cluster where the join IPs are gathered from outside the cluster, such as etcd on coreos. We aim to solve this with sidekick systemd units to do explicit joins using docker exec. A PR may be incoming ;-)
from docker-consul.
hey @justinclayton,
would a fleet systemd file, like so: https://gist.github.com/skippy/94645f8442203dc37b5b
help?
from docker-consul.
+1. Multiple join IPs are useful to increase failure tolerance. Given just one IP, an agent will fail joining the cluster when the target machine is down.
@progrium, here is the scenario: suppose that we have 3 cluster servers: 10.0.0.1, 10.0.0.2 and 10.0.0.3, and 10.0.0.1 is down. The cluster still has the quorum and thus available. New client agents will be able to join the cluster if we provide them with all three join IPs, but will fail given just 10.0.0.1.
from docker-consul.
You all know you can do more joins via the API once it's booted, right?
On Sun, Jan 11, 2015 at 9:42 AM, Π‘Π΅ΠΌΡΠ½ [email protected] wrote:
+1. Multiple join IPs are useful to increase failure tolerance. Given just
one IP, agent may fail to join the cluster when the target machine is down.β
Reply to this email directly or view it on GitHub
#27 (comment)
.
Jeff Lindsay
http://progrium.com
from docker-consul.
@progrium yes, that's how we're solving for this. Each consul server has a sidekick unit file that puts its ip into etcd and then periodically does an explicit join of the others that have already done so using docker exec. There's probably a more elegant solution somewhere, but it works for us.
from docker-consul.
@progrium, yes, but specifying multiple join ips when starting a new agent is just much simpler when there is a fixed list of server agents with static ips. Otherwise, as @justinclayton mentioned, you'll have to use docker exec
, which is buggy at the moment.
Anyway, thank you for all the great and inspiring work! =)
from docker-consul.
π
from docker-consul.
+1
from docker-consul.
I would really like this as well, same usecase as above systemd script that takes many ipaddress (some might be dead) and tries to join all of them. a single --join= --join= would be easier than looping until ew find something to join.
from docker-consul.
π
from docker-consul.
You can do multiple joins or whatever Consul arguments you like now.
from docker-consul.
Related Issues (20)
- error: No cluster leader when reboot HOT 4
- Build 0.6.3 - server HOT 4
- Consul container immediately shuts down HOT 5
- Failed to heartbeat after deliberately killing cluster leader
- Docker Hub failed to build consul-server and consul-agent against 0.6.4 HOT 4
- consul on swarm multi-node
- Tag for 0.6.4
- docker consul-server not exposing port HOT 3
- Docker deployment of services, can not modify the registered address of docker-consul
- Docker deployment of services, can not modify the registered address of docker-consul
- Add a DEPRECATION notice HOT 2
- Add nc to image?
- Error 500 when accesing web UI
- [ERR] agent: failed to sync remote state: No cluster leader
- I wonder if any notes on how to consul supports scalability HOT 1
- Dockerfiles not exposing ports
- How to configure the docker-consul for security ?
- CONSUL_BIND_INTERFACE not working?
- advertise flag ignored HOT 1
- Need help with "docker swarm init" and Consul HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-consul.