Hello everyone, my current method to start the service is:
sockets = tornado.netutil.bind_sockets (options.options.port)
tornado.process.fork_processes (0)
server = HTTPServer (app, xheaders=True)
server.add_sockets (sockets)
ioloop.IOLoop.instance (). Start ()
then the concurrency ability is very low. With nginx, I have also made some optimizations for nginx, and the worker number is not high. All the functions called in the code use @ asynchronous @ gen.coroutine also use coroutine, to return data through yield. The number of worker is 8
.
ask for advice on how to improve concurrency. At present, the concurrency is only more than 90 per second. Thank you,