How to determine the size of pool of gen_tcp acceptor processes?

Kaiduan Xie kaiduanx@REDACTED
Sat Dec 11 16:48:19 CET 2010


Hi, all,

>From the manual of gen_tcp,

"It is worth noting that the accept call does not have to be issued
from the socket owner process. Using version 5.5.3 and higher of the
emulator, multiple simultaneous accept calls can be issued from
different processes, which allows for a pool of acceptor processes
handling incoming connections."

What are the factors to be considered when setting the size of the
pool? Does it have any connection with the number of CPU cores?

I am running a test SSL server with pool size of 1, and 10, however
there is no noticeable difference from the connection establishment
rate point of view when running on a one-core box.

Any comments are welcome.

Best regards,

/Kaiduan


More information about the erlang-questions mailing list