atomix / copycat

A novel implementation of the Raft consensus algorithm
http://atomix.io/copycat
Apache License 2.0
581 stars 156 forks source link

Alternative discovery methods #201

Open electrical opened 8 years ago

electrical commented 8 years ago

Not sure if it belongs here, but it would be nice if we could facilitate discovery on things like EC2. With EC2 you can put the same nodes in a security group and use the api to discover those nodes so you don't have to maintain the list of nodes. I know Elasticsearch uses this for EC2, im sure we can implement same kind of solution

electrical commented 8 years ago

Possible settings.

discovery.method: 'static', 'ec2'

# Static host list
discovery.static.seed.1: host1
discovery.static.seed.2: host2

# EC2 discovery
discovery.ec2.access_key: 
discovery.ec2.secret_key: 
discovery.ec2.region: 
discovery.ec2.protocol: 'https', 'http'
discovery.ec2.groups:
discovery.ec2.host_type: 'private_ip', 'public_ip', 'private_dns', 'public_dns'
discovery.ec2.availability_zones:
electrical commented 8 years ago

We could create a separate module of it so that people don't need the extra libraries ( amazon sdk ) by default.