Comments (6)
Maybe it's better that check-http in docker-consul is silent by default when healthy. Do you want to submit that as an issue against docker-consul?
from registrator.
Sure, I will move that to docker-consul were it belong indeed. I will test a few thing and open a PR and an issue there.
Thinking about it, I feel it would be best to remove the timestamp on both success and failure condition. Otherwise, a lasting failed check will also cause consul-haproxy to also reload itself each 5 minutes.
from registrator.
Right ... what's producing the timestamp?
from registrator.
It's from the http header 'Date' being display by curl in docker-consul:check-http
[default command used]
curl --silent --show-error --fail --dump-header /dev/stderr --retry 2 $opts http://www.google.com > /dev/null
HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Location: http://www.google.ca/?gfe_rd=cr&ei=En5sVLnlNsSD8Qfft4GgBg <---------
Content-Length: 258
Date: Wed, 19 Nov 2014 11:25:06 GMT <----------
Server: GFE/2.0
Alternate-Protocol: 80:quic,p=0.01
The 'Location' header could also be problematic if it change on each check. Possibly others.
What about a default check-http without --dump-header ? It will be clean and we still have some reporting in case of 4xx/5xx error. This will not trigger constant consul sync as the output won't change at each check, be it a fail or success.
from registrator.
Yeah I guess you can always add --dump-header if you want it.
On Wed, Nov 19, 2014 at 5:49 AM, pfcarrier [email protected] wrote:
It's from the http header 'Date' being display by curl in
docker-consul:check-http[default command used]
curl --silent --show-error --fail --dump-header /dev/stderr --retry 2
$opts http://www.google.com > /dev/nullHTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Location: http://www.google.ca/?gfe_rd=cr&ei=En5sVLnlNsSD8Qfft4GgBg
<---------
Content-Length: 258
Date: Wed, 19 Nov 2014 11:25:06 GMT <----------
Server: GFE/2.0
Alternate-Protocol: 80:quic,p=0.01The 'Location' header could also be problematic if it change on each
check. Possibly others.What about a default check-http without --dump-header ? It will be clean
and we still have some reporting in case of 4xx/5xx error. This will not
trigger constant consul sync as the output won't change at each check, be
it a fail or success.—
Reply to this email directly or view it on GitHub
https://github.com/progrium/registrator/issues/20#issuecomment-63628721.
Jeff Lindsay
http://progrium.com
from registrator.
Dropping support for check-http
since Consul has native HTTP checks supported by Registrator now.
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.