Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Add TCP Healthcheck Listener To STUN Service #1

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

arparsec
Copy link

@arparsec arparsec commented Feb 20, 2022

Update: Based on some awesome feedback from the team, I have split the health-check functionality into a side-car service which tests STUN protocol health over localhost. I have also updated the Dockerfile, and added a bootstrap script to launch both of the services.

The health-check service is HTTP based, it responds with HTTP status code 200 if the STUN service is healthy, and it responds with HTTP status code 503 if the STUN service is unhealthy.

Reference: https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-healthchecks.html#health-check-configuration


The intent of this PR is to add a simple TCP listener to the STUN service that is suitable to handle AWS TCP health checks. This service is optional, and defaults to disabled.

Copy link

@jakelazaroff jakelazaroff left a comment

Choose a reason for hiding this comment

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

I mostly wanted to use that GIF but hopefully my other comment isn't totally useless

main.go Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants