TwistedWeb on multicore/multiprocessor

前端 未结 3 408
庸人自扰
庸人自扰 2020-12-13 01:07

What techniques are people using to utilize multiple processors/cores when running a TwistedWeb server? Is there a recommended way of doing it?

My twisted.web based

3条回答
  •  眼角桃花
    2020-12-13 01:26

    The recommended way IMO is to use haproxy (or another load balancer) like you already are, the bottleneck shouldn't be the load balancer if configured correctly. Besides, you'll want to have some fallover method which haproxy provides in case one of your processes goes down.

    It isn't possible to bind multiple processes to the same TCP socket, but it is possible with UDP.

提交回复
热议问题