GithubHelp home page GithubHelp logo

Comments (4)

tjcorr avatar tjcorr commented on August 27, 2024

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.

kenden avatar kenden commented on August 27, 2024

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.

prashantchitta avatar prashantchitta commented on August 27, 2024

@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.

prashantchitta avatar prashantchitta commented on August 27, 2024

I fixed it for domain names. regex has to be changed to the following
[-a-z0-9.]*\)

from etcd-aws-cluster.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.