I asked this question because if one uses 17 instances to handle 1M connections, for each instance is around 50k. I am more interested in knowing the possibility and performance for one machine to handle 1M connections.
I asked this question because if one uses 17 instances to handle 1M connections, for each instance is around 50k. I am more interested in knowing the possibility and performance for one machine to handle 1M connections.
It's a solved problem for me. That is why I don't understand why many high profile realtime web startups (like Convore), still using inferior solutions, like Python eventlib or gevent, which at most let them handle hundreds-to-thousands of clients.
EDIT: metabrew has very good tutorial - which should be a starting point for everybody new to this space!
http://www.metabrew.com/article/a-million-user-comet-applica...
http://www.metabrew.com/article/a-million-user-comet-applica...
By Richard Jones of the Last.fm?
Thank you for your replying. The original C10k from Dan Kegel was a guideline for me when I worked on project during 2003 - 2006. I am wondering what is the latest progress in this area. I am glad this problem is solved to you. I will check out niver tech in future when the problem comes up.
LocalIP:LocalPort -> ServerIP,ServerPort
So even if number of ports is limited by 64K, total number of incoming sockets per IP address isn't.
And thus, the total amount of sockets you can have open to that server is limited by the amount of IP's your machine has.