Replies: 1 comment 2 replies
-
No, there's currently no support for that. Using a proxy server like HAProxy or similar is the correct way to go for this.
Granian runs 2 different loops (at least in ASGI and RSGI protocols), so you might want to run NCpu/2 workers. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Is there anyway to use cookies to specify which worker to route specific requests to? The reason this is important for us is because we store state in a local dictionary which is much faster to access than going to Redis or Mongo.
Currently, I'm running 4 separate instances of Granian and use HAProxy for sticky routing. However some of the Granian processes seem to be running on the same cores.
Thanks!
Joe
Beta Was this translation helpful? Give feedback.
All reactions