Giter VIP home page Giter VIP logo

Comments (4)

jpignata avatar jpignata commented on August 16, 2024 4

Sure, that's certainly doable. We'd have to add the toggles to the service create command as those properties are in the target group IIRC.

from fargatecli.

agwaltz avatar agwaltz commented on August 16, 2024

Adding the "Health check grace period" also would be excellent.

ecs-cli compose service --health-check-grace-period

from fargatecli.

andrewodri avatar andrewodri commented on August 16, 2024

Just want to 👍 this and clarify a few things:

  • The health check that is associated specifically with the target group, and not the load balancer
  • We would need to be able to define the following values:
    • Protocol
    • Path
    • Port
    • Healthy threshold
    • Unhealthy threshold
    • Timeout
    • Interval
    • Success codes

I've encountered issues with the default settings, where the path "/" returns a 302 status code, which results in instance draining continually. Being able to specify our own health check would really help in providing a more robust configuration (especially when it comes to setting up a workflow of other developers).

And of course, the grace period would be really helpful too...

Also, thanks so much for providing this tool!

from fargatecli.

holyjak avatar holyjak commented on August 16, 2024

We had two problems: 1) Our / requires authentication, so it would help to be able to specify another path that is open, e.g. /health. 2) Our service takes way too long to start so LB concluded it unhealthy before the web server had time to get up and start responding. Therefore we would need to either be able to disable health checks or, perhaps better, increase the Interval. Even better would be to be able to set the healthCheckGracePeriodSeconds.

To set the grace period manually:

aws ecs update-service --cluster fargate --service $SERVICE_NAME --health-check-grace-period-seconds 360

Reference: https://docs.aws.amazon.com/sdk-for-go/api/service/elbv2/#CreateTargetGroupInput

from fargatecli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.