saltstack/salt — Issue #806: Gracefully log when the too many open files limit has been reached
Author: SEJeff
Created: 2012-03-01 17:59:28+00:00
State: open

Salt needs no less than 2 sockets per host that connects to each master. One for the Publisher and one for response port.

If you restart a master that has more than the output of: ```ulimit -n``` divided by the number of minions x 2, you get gems like this in your log and the minions won't connect:

12:45:29,289 [salt.master ][INFO ] Starting Salt worker process 38
Too many open files
sock != -1 (tcp_listener.cpp:335)

Figure out a way to gracefully detect this situation and log the error plus some tuning suggestions (ie: upping the ulimit).

Bonus points for adding this to the documentation