Hacker News new | past | comments | ask | show | jobs | submit login

Really?

We register for notifications from the GC using a magic threshold number that could mean anything.

Then we quickly notify the rest of the webs a GC is pending on our "message bus". They let us know they are safe from GC at the moment. If they are not you are in a pickle.

Then we notify HAProxy that we are about to run a GC and ask it to tell us when it is done draining the current requests and taking our web offline.

Once notified we perform the GC manually

Then we notify HAProxy that we are done with the GC so it can add us back to the pool.

What could possibly go wrong?




2 magic threshold numbers that could mean anything :)


Or you could just tell haproxy you're going to be low priority for a little bit and not worry about every single last request never being processed on GCing server.


you do realise that only about 0.09% of our requests were affected by this, catching them all is the whole point here.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: