Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd also love to see support for draining - and it seems like we might be in luck in the near future:

https://forums.aws.amazon.com/thread.jspa?threadID=61278&sta...

^-- BenF@AWS commented on June 10th saying that amazon is now actively working on it!



Draining is easy. Your health check should be hitting a url like '/ping' anyway which responds with an OK if the box is in a reasonable state and willing to serve traffic.

I always add an additional check to see if a file called /tmp/down exists, and if it does, return a 500 for the health checks. Existing clients will continue to be served but that instance will get no new connections.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: