i-dot-ai / redbox

Bringing Generative AI to the way the Civil Service works
https://i-dot-ai.github.io/redbox/
MIT License
83 stars 27 forks source link

[AWS SUPPORT] Add Open Port for Health Check in Worker Application #783

Open tom1322s opened 1 month ago

tom1322s commented 1 month ago

Description:

We need to add an open port to the worker application to facilitate health checks. This is essential for implementing a green-blue deployment strategy.

Rationale:

A health check endpoint is necessary to ensure that our deployment process can reliably determine whether the worker application has started and is functioning correctly. This endpoint will be used in a green-blue deployment setup, which offers significant advantages over traditional deployment methods.

Advantages of Green-Blue Deployment:

Requirements:

Proposal:

gecBurton commented 1 month ago

hi @tom1322s , all ECS tasks do have a health endpoint, they are:

tom1322s commented 1 month ago

Hi @gecBurton

I know that the current worker isn't an http application, but to use green blue deployment, I need an http health check. Could you provide a simple http response just to monitor if app is working and isn't blocked?