Skip to content

fix(boot.go,src/healthsrv): add readiness and liveness probes#57

Merged
arschles merged 14 commits into
deis:masterfrom
arschles:health-check
Feb 5, 2016
Merged

fix(boot.go,src/healthsrv): add readiness and liveness probes#57
arschles merged 14 commits into
deis:masterfrom
arschles:health-check

Conversation

@arschles

@arschles arschles commented Feb 4, 2016

Copy link
Copy Markdown
Member

Fixes #54

After this is merged and a new container is built, deis/charts#86 needs to be done

@arschles arschles self-assigned this Feb 4, 2016
@arschles arschles added this to the v2.0-beta1 milestone Feb 4, 2016
@arschles arschles changed the title fix(boot.go,src/healthsrv): add readiness and liveness probes (WIP) fix(boot.go,src/healthsrv): add readiness and liveness probes Feb 5, 2016
Comment thread glide.lock Outdated
version: bb44bb2e4817fe71ba7082d351fd582e7d40e3ea
- name: github.com/fsouza/go-dockerclient
version: 76fd6c68cf24c48ee6a2b25def997182a29f940e
version: ""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why glide did this. Investigating...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bacongobbler after running glide up again (more precisely, make glideup), this version number didn't come back. In arschles@08099c9, however, another version number did come back for a launchpad.net dependency...

@technosophos suggested that I file an issue on glide for this, so I'm working on getting a solid set of repro steps down before I do.

@krancour

krancour commented Feb 5, 2016

Copy link
Copy Markdown
Contributor

I'm torn on whether it might be better to create the minio client used by the health check in / closer to the healthcheck code instead of doing so in boot.go and passing it in. On the one hand, the complexity of creating that client seems like it should be handled a little closer to where it's used rather than the boot script which really handles overall orchestration. On the other hand, secrets are used in constructing the minio client and you probably don't want to moves dependencies on kubernetes down into the healthcheck code. Given that I can see both sides of this, I wouldn't let this stand in the way of my LGTM, but I just figured I'd mention it in case it inspires you in some way.

@krancour krancour added the LGTM1 label Feb 5, 2016
@arschles

arschles commented Feb 5, 2016

Copy link
Copy Markdown
Member Author

@krancour good point, and thanks for that. I think the other option for minio client creation location is in the Serve function in the ./src/healthsrv package. I don't think it would harm anything, but it seemed like it was more prudent to create it inside boot.go, since it may be used elsewhere in the future. Also, it may be beneficial for tests, in the case where I may want to test the Serve function in the future (I don't right now though since it's very basic)

gets a version back for launchpad
@mboersma

mboersma commented Feb 5, 2016

Copy link
Copy Markdown
Member

This code looks good to me once the glide issue with go-dockerclient is sorted out.

@mboersma mboersma added the LGTM2 label Feb 5, 2016
also re-run ‘glide up’, which adds versions back in for github
repositories.

finally, set the minio version to latest (as of this writing)
@arschles

arschles commented Feb 5, 2016

Copy link
Copy Markdown
Member Author

@mboersma @bacongobbler after running a glide up, it looks like there are no more empty versions for github projects left

Comment thread glide.lock
version: 68415e7123da32b07eab49c96d2c4d6158360e9b
repo: https://github.com/golang/protobuf
version: ""
repo: https://code.google.com/p/goprotobuf

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code.google.com no longer exists. Any idea how this would occur?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no idea. glide seems to toggle that just about every time I run glide up

arschles added a commit that referenced this pull request Feb 5, 2016
fix(boot.go,src/healthsrv): add readiness and liveness probes
@arschles arschles merged commit 8a743ba into deis:master Feb 5, 2016
@arschles arschles deleted the health-check branch February 5, 2016 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants