I've been reading the following article:
- http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-1
- More than 65536 TCP connections on Linux
And wondering if there's anything else i need to know about tuning linux to handle 1million tcp connections? So far i've narrowed it down to the following:
- Configuring the kernel to support 1mil connections, system wide (sysctl.conf)
- Configuring to have 1mil connections for the specific user (/etc/security/limits.conf)
- Configuring tcp stack memory settings (sysctl.conf?)
Is there anything else i need to configure? (this is for an EC2 large 64-bit server)
-edit-
It's not apache, its a libev-based custom coded C server FYI. It'll scale to 1mil just fine, its the kernel that's my worry :)