GithubHelp home page GithubHelp logo

Comments (5)

samwiseg0 avatar samwiseg0 commented on May 12, 2024 2

Made the change to be able to specify just a hostname.

from varken.

dirtycajunrice avatar dirtycajunrice commented on May 12, 2024

We applied regex style parameters to urls to ensure integrity before creating a session with the host. Hostnames alone will not match this regex as its not an fqdn or IP. If you define an IP you must define a port, if you define a url you MAY define a port. These were both intentional and allow for sane logic in debugging.

As a side note, i worked in networking support for a long time. When you query within the same layer2 domain, you should always use an IP:PORT over dns whether hostname or fqdn. This removes any issues with dns that cause cascading application failures unnecessarily. when crossing layer3 you should use either an IP:PORT or FQDN. There is never a circumstance where you should rely on hostnames alone. even with dns-search/append applied to your nic

from varken.

MaartenMol avatar MaartenMol commented on May 12, 2024

So when using Docker I should config the url as: influxdb:8023 for example. And should I ignore the port setting or fill that with the same port?

from varken.

dirtycajunrice avatar dirtycajunrice commented on May 12, 2024

No, IP address or domain name. That is a hostname. And influxdb port is an argument not a url so it is defined as it’s own var

from varken.

MaartenMol avatar MaartenMol commented on May 12, 2024

You really should reconsider this then. Things like Docker are build to be dynamic. Using container names (hostnames) in configuration is one of the things that makes Docker dynamic. So you are not stuck to static config. With this requirement (IP or domain name) you need to forward ports of the container to your host (to use a domain name) or set a static IP in your Docker environment for that container (to use an IP).

A container does not have a domain name. Using the name of the container in configuration makes your environment dynamic and easy to manage and troubleshoot.

Don't get me wrong, I like Varken. But I just don't get this IP/domain name requirement.

from varken.

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.