Comments (4)
I'm not sure I understand what you are asking for. Are you suggesting that instead of using the IP address for the peer URLs we would replace them with the AWS DNS entries (like ec2-34-197-7-63.compute-1.amazonaws.com
vs 34.197.7.63
)? If so I'm not what would be the benefit.
from etcd-aws-cluster.
If we have etcd in an autoscaling group, it could be nice to have an ELB sending request from etcd clients to the etcd ec2 instances members of this autoscaling group.
And if we have an ELB, it's would be nice we have a better DNS/Route53 endpoint pointing to it.
from etcd-aws-cluster.
@tj-corrigan I am using DNS names like https://ip-10-0-0-181.us-west-2.compute.internal:2379
. As a result its failing the regex validation and unable to find the bad peer even though bad peer exists. This is the error it throws
peer_regexp=https://ip-10-0-0-126.us-west-2.compute.internal:2379 or https://ip-10-0-0-129.us-west-2.compute.internal:2379 or https://ip-10-0-0-181.us-west-2.compute.internal:2379
jq: error: syntax error, unexpected ':', expecting ';' or ')' (Unix shell quoting issues?) at <top-level>, line 1:
.[] | map(select(.peerURLs[] | https://ip-10-0-0-126.us-west-2.compute.internal:2379 or https://ip-10-0-0-129.us-west-2.compute.internal:2379 or https://ip-10-0-0-181.us-west-2.compute.internal:2379 | not )) | .[].id
jq: 1 compile error
bad_peer=
bad_peer is empty as a result of above error.
Is it possible to change the regex to accommodate DNS entries like above?
from etcd-aws-cluster.
I fixed it for domain names. regex has to be changed to the following
[-a-z0-9.]*\)
from etcd-aws-cluster.
Related Issues (10)
- Docker image not up to date HOT 1
- Bug - Problem with spaces in autoscaling group HOT 2
- etcd_initial_cluster question HOT 2
- Having issues with autoscaling. HOT 8
- Port settings broken because of merge conflict HOT 5
- curl -f -s http://ASG_SERVER_IP:2379/v2/members hangs HOT 8
- Update to use 3.6
- Licensing Question HOT 1
- Bootstrap script should handle clusters set up to use client certs
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 etcd-aws-cluster.