[zeromq-dev] Handling high socket or connection counts

Michel Pelletier pelletier.michel at gmail.com
Thu Feb 6 18:50:04 CET 2014


I was wrong by a similar order of magnitude, it's per port per client.

http://stackoverflow.com/questions/2332741/what-is-the-theoretical-maximum-number-of-open-tcp-connections-that-a-modern-lin

It's basically unlimited.

-Michel


On Thu, Feb 6, 2014 at 9:41 AM, Michel Pelletier <pelletier.michel at gmail.com
> wrote:

> On Thu, Feb 6, 2014 at 7:09 AM, Goswin von Brederlow <goswin-v-b at web.de>wrote:
>
>> On Thu, Feb 06, 2014 at 01:38:48PM +0100, Olaf Mandel wrote:
>> > Hello,
>> >
>>
>
>
>>  But what if you don't use threads? Then inproc won't work. But also
>>
>> you don't have a limit of 1024 sockets. Only 1024 file descriptors per
>> executable. By forking or starting seperate executables you can have
>> many more sockets, colletively. How much more? There are only 65536
>> ports and 0-1023 is reserved for root. So you won't get verry far with
>> tcp.
>>
>
> It's true a client can only make ~60K outgoing connections (due to
> ephemeral port exhaustion) but a server with bound sockets can have up to
> 64K connections _per port_.  Here's a blog post from urban airship
> detailing their experiments with pushing connection limits up to 500K on a
> single machine:
>
> http://urbanairship.com/blog/2010/08/24/c500k-in-action-at-urban-airship/
>
> -Michel
>
>
>
>> If you need more then you need to use multiple hosts or at least
>> containers with different IPs.
>>
>> Or use unix domain sockets so you are not limited by the number of
>> ports for tcp.
>>
>> MfG
>>         Goswin
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140206/1e3691d2/attachment.htm>


More information about the zeromq-dev mailing list