Sign inSign up

me2digital/fastcgi-healthcheck

By me2digital

•Updated over 2 years ago

The fastcgi-healthcheck receives a http request and check if the configured FCGI server is reachable

Image
0

91

me2digital/fastcgi-healthcheck repository overview

⁠Introduction

Due to the fact that in the container world is a health check quite essential and I haven’t found any simple fastcgi (fcgi) client with make such check's have I decided to create one in rust.

At the current time is the HTTP Protocol widely supported for health checks but not the fastcgi protocol.

The fastcgi-healthcheck tool exists for only one purpose, it calls a fcgi server with a specific URL and expect a specific answer. Based on that answer will the tool return a 200 or a 404 HTTP code to the requester.

⁠Environment Variables

VariableDescriptionDefault value
SERVERThe Server and Port combination on which the tool should listen127.0.0.1:8080
DESTINATIONThe FCGI destination address, this can be a name or ip127.0.0.1
DESTINATION_PORTThe FCGI destination port9000
PING_PATHThe Ping URL on the FCGI Server/fpm-ping
PING_RESPONSEThe Ping response from the FCGI Serverpong

I use for the FCGI call this library https://github.com/Icelk/fastcgi-client-rs⁠

⁠Own health endpoints

This tool have it's own health endpoints /health and /healthz.

⁠github repository

https://github.com/git001/fastcgi-healthcheck⁠

Tag summary

Content type

Image

Digest

sha256:f8651069e…

Size

35.2 MB

Last updated

over 2 years ago

docker pull me2digital/fastcgi-healthcheck:0.2.0