Reserved connection for healthcheck requests #545
-
Hi! In our previous implementation, we split connections into two categories:
We would like to reproduce this with Granian. Do we already have this capability with Granian, or would it be possible to add this as a new feature? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You should use
How did you do that with uWSGI? Sounds hard to add facilities for smth like this in Granian: there's no request processing (eg host/url check for routing) performed at all, everything gets just passed to the wsgi application. Also, on a side note, I personally find this kind of approach quite weird: if I have an healthcheck it should report the real application status, not the fact the server is running. So having the healthcheck splitted from everything else, I would say it reports its own status rather than the application one: if all the application requests are stuck, why the healthcheck should report a good status? Kinda misleading. |
Beta Was this translation helpful? Give feedback.
If you set the backlog taking into account
backpressure
would bebacklog / workers
then it's the same. Just remember your "django instance" will match to the single worker, as workers are independent processes and each of them will load your application independently.