Skip to content

fix: add http connector service to serve health check#3543

Merged
mxyng merged 3 commits intomainfrom
mxyng/http-connector
Nov 3, 2022
Merged

fix: add http connector service to serve health check#3543
mxyng merged 3 commits intomainfrom
mxyng/http-connector

Conversation

@mxyng
Copy link
Collaborator

@mxyng mxyng commented Nov 2, 2022

Summary

The connector has a single HTTPS service which is problematic for most health checkers as they tend to default to TCP. This causes an incomplete TLS handshake which shows up in logs as http: TLS handshake error from <addr>:<port>: EOF. Adding a HTTP service mitigates this since the health checker does not attempt an TLS handshake

@mxyng
Copy link
Collaborator Author

mxyng commented Nov 2, 2022

Helm lint failure is related to #3544

@mxyng mxyng force-pushed the mxyng/http-connector branch from 1381f19 to 3084888 Compare November 2, 2022 23:07
Copy link
Collaborator

@BruceMacD BruceMacD left a comment

Choose a reason for hiding this comment

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

lgtm once tests pass (looks like it will pass if re-run)

Copy link
Contributor

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

I've seen TestConnector_Run flake a few times now, I'l look into that

@dnephin
Copy link
Contributor

dnephin commented Nov 3, 2022

OH, it's not a test flake, it's actually failing correctly I think. The test needs to be updated to set the address to :0.

@dnephin
Copy link
Contributor

dnephin commented Nov 3, 2022

I pushed a commit to fix the test failure and fix shutdown of the connector. The pattern in the connector is not quite as nice as what we have in the server. We have to add an explicit shutdown. We should look to use the server.routine pattern in the connector as well at some point.

@mxyng mxyng merged commit f55e99b into main Nov 3, 2022
@mxyng mxyng deleted the mxyng/http-connector branch November 3, 2022 21:24
mxyng added a commit that referenced this pull request Nov 3, 2022
This reverts commit f55e99b, reversing
changes made to 50a9ffc.
mxyng added a commit that referenced this pull request Nov 4, 2022
Revert "Merge pull request #3543 from infrahq/mxyng/http-connector"
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.

3 participants