Using a node web server (like koa), is there a way to see how many requests are currently in progress? Either from the node side or even the nginx side (since the node server will be behind nginx)? I'd like to know when it's safe to take the server offline for maintenance but I don't want to kill any requests that are in the process of being executed.For example can I put the server into a "don't accept new connections" mode so that it can keep working on existing requests but refuses any new connections? Then when all existing requests have finished I can kill the server. Is there some kind of clean shutdown command on the node or nginx side that takes care of this?Is anything like this possible?
Submitted July 11, 2019 at 11:21AM by nowboarding
No comments:
Post a Comment