project-iris / iris

Decentralized cloud messaging
iris.karalabe.com
Other
571 stars 32 forks source link

Rework the bootstrapper, add CoreOS etcd support #55

Open karalabe opened 9 years ago

karalabe commented 9 years ago

The bootstrapper is one of the oldest components of the system and should really be rewritten. As part of that effort, I'd also like to add seamless coreos/etcd integration to take advantage of its discovery service if available. Although this is not really a necessity per se, but it's fairly simple to do and could make converging on CoreOS clusters extremely fast.

For details, please see the below discussions:

coopernurse commented 9 years ago

Excellent!

karalabe commented 9 years ago

I've reworked mostly the bootstrapper. It should theoretically take into accound local etcd instances to use as seed servers. Couple issues currently:

coopernurse commented 9 years ago

Great, does this require any user configuration, or does it look for etcd on localhost:4001?

I wonder if we need to make this etcd endpoint configurable. With CoreOS/Docker I believe we'd want to connect to etcd running on the CoreOS host.

karalabe commented 9 years ago

Localhost 7001 (and the newly allocated IANA port), both IPv4 and 6. I don't think a configuration is warranted. I see no reason for people to override the etcd ports, especially if running stock CoreOS on cloud machines.