Comments (13)
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.
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.
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.
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.
#64 fixing this issues or not? Could you check the pull request?
from registrator.
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.
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.
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.
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.pdfAt 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.
+1
from registrator.
Any news ?
from registrator.
Whats the status of it? --net=host -p XXXX would be ok to use I guess. Fix still not merged?
from registrator.
Merged.
from registrator.
Related Issues (20)
- Not able to get POD IP for registration in EKS
- unsupported protocol scheme ""
- Cannot unmarshal number into Go value of type string HOT 1
- Support for newer versions of Consul HOT 10
- Support for 3.x version of etcd HOT 2
- Dead link in website
- cannot connect to Docker endpoint
- Unregister on 'stop'
- Health checks with SERVICE_CHECK_SCRIPT doesn't work HOT 1
- Possible bug (or by-design behavior) of using IPv6 addresses to register TCP health check to `Consul`?
- http://gliderlabs.com/ is down HOT 1
- Image docker.io/gliderlabs/registrator:latest uses outdated schema1 manifest format HOT 2
- Require image for ARM64 architecture HOT 3
- gliderlabs.com is down HOT 1
- All service names start with sha265 when containers are started with the new compose-cli HOT 3
- Takeover the project HOT 7
- I would like to add support for excluding some containers
- Not an issues | Registrator Updated / Fork HOT 2
- Fork of this project and an open invitation to participate. HOT 1
- Registrator not picking the events everytime
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 registrator.