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

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

Open
tom1322s opened this issue Jul 15, 2024 · 2 comments
Open

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

tom1322s opened this issue Jul 15, 2024 · 2 comments

Comments

@tom1322s
Copy link

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:

  • Minimized Downtime: By running two identical production environments (green and blue), we can switch traffic between them with minimal downtime.
  • Immediate Rollback: If a problem is detected in the new version, we can quickly revert to the previous stable version.
  • Staged Rollout: This approach allows for a gradual rollout of new features, reducing the risk of widespread issues.
  • Zero Downtime Deployments: Users experience no downtime as traffic is shifted seamlessly between the environments.

Requirements:

  • Health Check Endpoint: The worker application should have a designated port open that responds to health check requests.
  • Simple Confirmation: The health check endpoint needs only to confirm that the application has started and is operational.

Proposal:

  • Use existing port 5000 to the worker application specifically for health check purposes.
  • Implement a simple endpoint (e.g., /health) that returns a status indicating the application's health.
  • Ensure the endpoint returns an HTTP 200 status code when the application is running correctly.
    Integrate this health check endpoint with the load balancer to enable automated traffic management during deployments.
@gecBurton
Copy link
Collaborator

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

@tom1322s
Copy link
Author

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?

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

No branches or pull requests

2 participants