Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thrift: Support health check type in Health endpoint #696

Merged
merged 2 commits into from
Jun 12, 2018
Merged

Conversation

prashantv
Copy link
Contributor

Currently, the Health handler does not take any arguments, so there's no
way to add the health check type (process vs traffic) to the existing
handler.

Add a new handler to accept health requests as an argument, which will
contain the type of health check.

This allows services to remain healthy according to the process health
checks, while refusing traffic from production.

This change includes the latest meta.thrift from tchannel

Currently, the Health handler does not take any arguments, so there's no
way to add the health check type (process vs traffic) to the existing
handler.

Add a new handler to accept health requests as an argument, which will
contain the type of health check.

This allows services to remain healthy according to the process health
checks, while refusing traffic from producton.
@codecov
Copy link

codecov bot commented Jun 8, 2018

Codecov Report

Merging #696 into dev will increase coverage by 0.27%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             dev     #696      +/-   ##
=========================================
+ Coverage   87.1%   87.37%   +0.27%     
=========================================
  Files         40       40              
  Lines       4047     4047              
=========================================
+ Hits        3525     3536      +11     
+ Misses       394      386       -8     
+ Partials     128      125       -3
Impacted Files Coverage Δ
connection.go 80.85% <0%> (-2.78%) ⬇️
outbound.go 86.2% <0%> (ø) ⬆️
relay.go 81.81% <0%> (+0.62%) ⬆️
inbound.go 81.05% <0%> (+1.57%) ⬆️
mex.go 80% <0%> (+7.9%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e76f85...610c610. Read the comment docs.

@prashantv prashantv merged commit a44ec2b into dev Jun 12, 2018
@prashantv prashantv deleted the health_type branch June 12, 2018 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants