File descriptors settings for a large number of connections

Hi

I’m using nginx in front of a long-polling comet app.
What are the required settings in order to allow a large number of open
connections?
For example, what do I need to use for 10k concurrent open connections?

Are there OS settings I need in addition to nginx?
I’m using ubuntu.

Thanks