Git Product home page Git Product logo

Comments (13)

progrium avatar progrium commented on May 24, 2024

Can you give me a more detailed example scenario of what it would look like
and do?

On Tue, Sep 9, 2014 at 4:20 AM, Miguel Angel Guillén <
[email protected]> wrote:

I have a couple of containers that are launched with --net=host, by
default registrator only add to consul container with exposed ports but
could be a very helpful to add support for containers with the host net
option, maybe adding a env variable (like the exposed port) for registrator
get the values to register in consul.


Reply to this email directly or view it on GitHub
https://github.com/progrium/registrator/issues/19.

Jeff Lindsay
http://progrium.com

from registrator.

topochan avatar topochan commented on May 24, 2024

Yes, I have some containers that they need to run with net=host because uses scala+akka app and akka don't support port redirection (thats why I need to launch with this param) but I have another container (nginx) that need to get in consul a list of this apps to proxy them but because they are not been registered because they are launched with net=host param

from registrator.

progrium avatar progrium commented on May 24, 2024

It seems like you can just manually set the ports the same on the host
interface without using net=host ... alternatively you can use ambassadord
to route to the right port. Because of those workarounds and not a lot of
demand, this feature is likely to stay deprioritized for a while.

On Tue, Sep 9, 2014 at 10:14 AM, Miguel Angel Guillén <
[email protected]> wrote:

Yes, I have some containers that they need to run with net=host because
uses scala+akka app and akka don't support port redirection (thats why I
need to launch with this param) but I have another container (nginx) that
need to get in consul a list of this apps to proxy them but because they
are not been registered because they are launched with net=host param


Reply to this email directly or view it on GitHub
https://github.com/progrium/registrator/issues/19#issuecomment-54984426.

Jeff Lindsay
http://progrium.com

from registrator.

progrium avatar progrium commented on May 24, 2024

I'm warming up to this feature. Just requires some more thought to implement it. I agree that if you use net=host then your services should still be registered...

from registrator.

doktoric avatar doktoric commented on May 24, 2024

#64 fixing this issues or not? Could you check the pull request?

from registrator.

mikljohansson avatar mikljohansson commented on May 24, 2024

One of the changesets in #64 should solve this feature request. I had the same problem with Apache Mesos that needs net=host. The docker metadata is slightly different for a net=host container. Notably the NetworkSettings.Ports section isn't populated. However the same info is in HostConfig.Ports if you specify e.g. "--net=host -p 5050". #64 adds support for defaulting to HostConfig.Ports if there are no matching port in NetworkSettings.Ports

from registrator.

defender avatar defender commented on May 24, 2024

It will be great when we get this fix , this issue super important for example, in case you want to improve your network performance : redis , db etc ... Docker suggest to work net=host.

Please merge this fix ASAP :)
Thanks.

from registrator.

pfcarrier avatar pfcarrier commented on May 24, 2024

Indeed, It appear that some workload could benefit from running with --net=host. Workloads with high packet rates would avoid some overhead.

Reference ( figure 13,14 and surrounding text ) :
http://domino.research.ibm.com/library/cyberdig.nsf/papers/0929052195DD819C85257D2300681E7B/$File/rc25482.pdf

At the moment, the only workaround ( I can think of ) to benefit from --net=host in a registrator/consul.io setup is to run consul agent directly in the docker that need to register. But this is far from ideal.

👍

from registrator.

defender avatar defender commented on May 24, 2024

Why it is impossible to push the fix?

On 12 בדצמ׳ 2014, at 19:01, pfcarrier [email protected] wrote:

Indeed, It appear that some workload could benefit from running with --net=host. Workloads with high packet rates would avoid some overhead.

Reference ( figure 13,14 and surrounding text ) :
http://domino.research.ibm.com/library/cyberdig.nsf/papers/0929052195DD819C85257D2300681E7B/$File/rc25482.pdf

At the moment, the only workaround ( I can think of ) to benefit from --net=host in a registrator/consul.io setup is to run consul agent directly in the docker that need to register. But this is far from ideal.


Reply to this email directly or view it on GitHub.

from registrator.

keithchambers avatar keithchambers commented on May 24, 2024

+1

from registrator.

defender avatar defender commented on May 24, 2024

Any news ?

from registrator.

mainframe avatar mainframe commented on May 24, 2024

Whats the status of it? --net=host -p XXXX would be ok to use I guess. Fix still not merged?

from registrator.

progrium avatar progrium commented on May 24, 2024

Merged.

from registrator.

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.