A file descriptor is an object a process uses to read or write to an open file and open network sockets (although there are other uses).
Operating systems place limits on the number of file descriptors a process can open. In addition to per-process limits, an OS also has a global limit on the number of file descriptors that all its processes, together, may consume.
A common bottleneck in the default Linux operating system configuration is a lack of file descriptors.
An ElectricFlow Server uses approximately one file descriptor per running job step and three per uncompleted job.
- You must tell ElectricFlow to use the new limits. Add the following line to the init script for the Flow Server (in /etc/init.d/commander) before the su - command:
- Restart the ElectricFlow server:
An ElectricFlow Agent uses at least two file descriptors per running job step.
It is important to make sure that operating systems on high traffic sites are configured to provide sufficient numbers of file descriptors to ElectricFlow.
The following example describes how to raise the maximum number of file descriptors to 32768 for the ElectricFlow process on the RedHat Linux distribution:
- Allow all users to modify their file descriptor limits from an initial value of 1024 up to the maximum permitted value of 32768 by changing /etc/security/limits.conf. The following two lines should be part of the file contents:
- soft nofile 1024
- hard nofile 32768
- In /etc/pam.d/login, add the following line if it does not already exist:
- You must tell ElectricFlow to use the new limits. Add the following line to the init script for the Flow Agent (in /etc/init.d/ecmdrAgent or /etc/init.d/commanderAgent):
- Restart the ElectricFlowagent: