Git Product home page Git Product logo

Comments (4)

ypujante avatar ypujante commented on August 23, 2024

The code : https://github.com/linkedin/glu/blob/master/agent/org.linkedin.glu.agent-server-impl/src/main/groovy/org/linkedin/glu/agent/server/AgentMain.groovy#L138 is where it is happening.

The name (the one you modified) has no effect and is actually supposed to be a nice name so that in the console you don't end with an ip address.

I could use this instead: http://www.kiwidoc.com/java/l/p/java/j2se/1.6/p/java.net/c/InetAddress#getHostAddress%28%29

Since I am not a network expert and I don'k know too much about how people configure their hostname vs dns, etc.. I am not entirely sure which one is going to be always the correct one (canonical host name ? vs host name ? vs ip address ?).

Probably the best solution is to leave it the way it is but provide a way to configure it like you can change the name. Would that work for you ?

Yan

from glu.

aantono avatar aantono commented on August 23, 2024

Yan, you should use the ip address as it is always routable, i.e. No need for a DNS resolution, if the address is physically reachable, you are all good. :)
Since the display name is, as you say, different from what is actually being used, that could be the canonical host name, but use the ip internally, that way it will be a lot safer. Or add a configuration to define if one want to use DNS canonical host names or IPs, with default being an IP.

Alex

from glu.

ypujante avatar ypujante commented on August 23, 2024

I will do this.

Yan

from glu.

ypujante avatar ypujante commented on August 23, 2024

Implemented with 1.7.0

from glu.

Related Issues (20)

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.