N
N
Nodar2015-07-19 15:26:38
Tornado
Nodar, 2015-07-19 15:26:38

Running multiple Tornado or Tornado WSGI/Gunicorn processes?

Hello.
I have been working with Tornado for a long time with its non-blocking API building features (Tornado+Motor). But what if I want to use Tornado as the basis of a web service that does not require work in a non-blocking manner (Lots of work with data that clutters up 1 thread)?
As far as I understand from the docks to Gunicorn - this server runs 2xNumber of cores - processes. Will it be equivalent if I start the same number of Tornado processes? Or do Gunicorn and similar servers start so many master processes, and these master processes fork for every new connection?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
menshenin_hm, 2015-09-10
@menshenin_hm

I have several Tornados running behind Nginx balancing them, the flight is normal, maybe this solution will suit you too.
As for blocking calls...
www.tornadoweb.org/en/latest/faq.html
Point 3.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question